 :root {
    --c-b2bApplicationModalButtonFontSize: 14px;
    --c-b2bApplicationModalContentFontSize: 18px;
    --c-b2bApplicationModalHeaderFontSize: 24px;
    --c-b2bApplicationModalMaxWidth: 955px;
    --c-b2bApplicationModalSubTitleMaxWidth: 832px;
    --c-b2bBannerMaxWidth: 1440px;
    --c-b2bBreadcrumbColor: #63666A;
    --c-b2bBreadcrumbFontSize: 10px;
    --c-b2bColorAlmostBlack: #333333;
    --c-b2bColorBlack: #000000;
    --c-b2bColorBlue: var(--dxp-g-brand);
    --c-b2bColorDarkBlue: #151d51;
    --c-b2bColorBlue100: #7FA1D5;
    --c-b2bColorBlue200: #3AB0C8;
    --c-b2bColorDarkGray: #c1c2c3;
    --c-b2bColorGray: #e4e7ef;
    --c-b2bColorGray100: #e6eaea;
    --c-b2bColorGray200: #707070;
    --c-b2bColorGray300: #63666a;
    --c-b2bColorGray400: #2d2926;
    --c-b2bColorGreen: #e4e7ee;
    --c-b2bColorLightGray: #f4f6f7;
    --c-b2bColorRed: #ff0000;
    --c-b2bColorRed200: #F99600;
    --c-b2bColorRed300: #008001;
    --c-b2bColorRed400: #f0142f;
    --c-b2bColorRed500: #ff9999;
    --c-b2bColorWhite: #ffffff;
    --c-b2bColorBoxShadow: #d2dbe2;
    --c-b2bDefaultFontSize: 16px;
    --c-b2bFontSize10: 10px;
    --c-b2bFontSize11: 11px;
    --c-b2bFontSize12: 12px;
    --c-b2bFontSize13: 13px;
    --c-b2bFontSize14: 14px;
    --c-b2bFontSize18: 18px;
    --c-b2bFontSize20: 20px;
    --c-b2bFontSize24: 24px;
    --c-b2bFontSize26: 26px;
    --c-b2bFontSize28: 28px;
    --c-b2bFontSize36: 36px;
    --c-b2bFontSize8: 8px;
    --c-b2bFontWeightBold: 600;
    --c-b2bFontWeightLight: 100;
    --c-b2bFontWeightMedium: 400;
    --c-b2bHrColor: #85a1d1;
    --c-b2bInputHeight: 50px;
    --c-b2bInputLabelFontSize: 14px;
    --c-b2bInputPlaceHolderFontSize: 16px;
    --c-b2bMobileBoxShadow: 0px 1px 4px rgba(0, 0, 0, 25%);
    --c-b2bModalContentFontSize: 16px;
    --c-b2bModalWeightBold: 600;
    --c-b2bModalWeightMedium: 400;
    --c-b2bOpacity4: 0.4;
    --c-b2bOpacity5: 0.5;
    --c-b2bPageMaxWidth: 1238px;
    --c-b2bBoxShadowColor: #c6cacc;
    --c-colorBackground: rgb(243, 243, 243);
    --c-colorBackgroundButtonBrand: rgb(1, 118, 211);
    --c-colorBackgroundButtonBrandDisabled: rgb(243, 243, 243);
    --c-colorBackgroundInputDisabled: rgb(243, 243, 243);
    --c-colorTextInputDisabled: rgb(116, 116, 116);
    --c-colorTextDisabled: rgb(201, 201, 201);
    --c-b2bColorOutOfStock: rgb(240, 20, 47);
    --c-b2bColorAvailableInStock: rgb(0, 128, 0);
    --c-b2bColorLimitedStock: rgb(255, 147, 0);
    --c-b2bBorderColor: rgb(201, 201, 201);
    --c-b2bBorderColor2: #E5E5E5;
    --c-b2bTextColor: #4f4f4f;
 }

body{
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* {
    font-family: inherit;
}

html[lang^="ar"] {
    direction: rtl !important;

    .zoom-left,
    .recaptcha {
        direction: ltr !important;
    }
}

/* button, dropdown */
button.slds-button_outline-brand,
lightning-base-combobox button,
lightning-base-combobox .slds-listbox {
    background-color: var(--c-b2bColorWhite) !important;
}
button.slds-button_outline-brand:hover{
    background-color: var(--dxp-g-brand) !important;
}

commerce-quick-order-item .slds-input {
    height: var(--c-b2bInputHeight) !important;
    border-radius: 12px !important;
}

/* Inputs */
.slds-input{
    padding-left: 24px !important;
}
commerce-quantity-selector .slds-input{
    padding-left: 16px !important;
}
.slds-input, .slds-select, .slds-combobox__input {
    --slds-c-input-spacing-horizontal-start: 14px !important;
    --slds-c-input-color-border: var(--c-b2bColorDarkGray);
    height: var(--c-b2bInputHeight);
    min-height: unset;
    border-radius: 12px;
}
.slds-input[readonly] {
    --slds-c-input-color-background: var(--c-colorBackgroundInputDisabled);
    --slds-c-input-color-border: var(--c-b2bColorDarkGray);
    color: var(--c-colorTextInputDisabled);
    font-size: unset;
    font-weight: unset;
    cursor: not-allowed;
}
.slds-input[disabled] {
    background-color: var(--c-colorBackgroundInputDisabled) !important;
    border-color: var(--c-b2bColorDarkGray) !important;
    color: var(--c-colorTextInputDisabled) !important;
}

lightning-combobox lightning-base-combobox .slds-combobox__input,
lightning-input .slds-input{
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

lightning-base-combobox button,
lightning-select select,
.slds-input{
    border-color: var(--c-b2bColorDarkGray) !important;
}

/* profile menu dropdown */
html[lang="ar"]{
    .slds-input{
        padding-right: 24px !important;
    }
    .slds-input-has-icon .slds-input__icon {
        right: 8px !important;
    }
    commerce_builder-user-profile-menu .slds-dropdown_right{
        right: 16px !important;
    }
}

/* Theme header */
div.header{
    min-height: auto !important;
    height: auto !important;
}
div.header .component-wrapper-spacer{
    margin-bottom: 0 !important;
}
.theme-header-desktop{
    margin: auto;
    background-color: var(--c-b2bColorWhite);
    box-shadow: 0 1px 6px var(--c-b2bBoxShadowColor);
}
.theme-header-icon-mobile {
    display: flex;
    justify-content: center;
}
.theme-header-icon-mobile svg {
    height: 18px;
    width: 18px;
}
.theme-header-icon-mobile.cart-icon {
    border-left: 1px solid var(--c-b2bColorWhite);
    border-right: 1px solid var(--c-b2bColorWhite);
}
commerce_builder-cart-badge{
    position: relative !important;
    padding-right: 16px !important;
}
.theme-header-language-icon{
    position: relative;
    cursor: pointer;
}
.login-link:hover{
    background-color: var(--c-b2bColorDarkBlue) !important;
}
@media only screen and (min-width: 1025px) {
    commerce_my_account-user-profile-menu{
        position: relative !important;
    }
    commerce_my_account-user-profile-menu button.menu-button::after,
    .theme-header-language-icon::after{
        position: absolute;
        top: 10px;
        left: 24px;
        cursor: pointer;
    }
    /* country selector */
    c-b2b-country-selector .slds-is-open svg{
        fill: var(--c-b2bColorBlue200) !important;
	}

    /* profile icon */
    commerce_my_account-user-profile-menu .slds-dropdown-trigger button::after
    {
        content: url('/ksa/sfsites/c/cms/delivery/media/MCNYHUSDIWSFAO7GSJFO7EJAUIDA') !important;
        top: 0px !important;
        transform: none !important;
        transition: transform 150ms !important;
    }
    commerce_my_account-user-profile-menu .slds-dropdown-trigger.slds-is-open{
        svg{
            fill: var(--c-b2bColorBlue200) !important;
        }
    }
    commerce_my_account-user-profile-menu .slds-dropdown-trigger.slds-is-open button::after {
        top: 4px !important;
        transform: rotate(-180deg) !important;
    }
    .login-link:hover svg, .login-link svg{
        fill: var(--c-b2bColorAlmostBlack) !important;
    }
    .login-link:hover{
        background-color: var(--c-b2bColorWhite) !important;
    }
    .theme-header-language-icon::after {
        top: 2px;
        left: 24px;
    }
    html[lang="ar"]{
        commerce_builder-cart-badge{
            padding-right: 0 !important;
        }
    }
}
/* profile icon */
@media only screen and (min-width: 1025px) and (max-width: 1536px) {
    .dropdown-ctn.lwc-5uc1gleli5 {
        left: 60.5% !important;
        width: 300px !important;
    }
    html[lang="ar"]{
         commerce_my_account-user-profile-menu button.menu-button::after{
            left: 16px !important;
        }
         .dropdown-ctn.lwc-5uc1gleli5 {
            right: 78% !important;
        }
    }
}
@media only screen and (min-width: 1537px) {
     .dropdown-ctn.lwc-5uc1gleli5 {
        left: 64% !important;
        width: 300px !important;
    }
    html[lang="ar"]{
         commerce_my_account-user-profile-menu button.menu-button::after{
            left: 32px !important;
        }
         .dropdown-ctn.lwc-5uc1gleli5 {
            right: 78% !important;
        }
    }
}


commerce_my_account-user-profile-menu .menu-button:hover {
    background-color: var(--c-b2bColorWhite) !important;
}

/* guest user profile icon */
commerce_builder-user-profile-menu commerce_my_account-user-profile-menu a{
    display: flex;
}

/* Space between search, categories and the header */
commerce_builder-search-input.theme-search{
    margin-bottom: 16px !important;
}
.theme-header-desktop{
    padding-bottom: 8px !important;
}

/* Theme header Megamenu*/
.theme-header-megamenu .comm-drilldown-navigation__bar a,
.theme-header-megamenu .comm-drilldown-navigation__bar button {
    font-size: var(--c-b2bFontSize14);
    font-weight: var(--c-b2bModalWeightBold);
}
.theme-header-megamenu .comm-drilldown-navigation__bar > li > button[aria-expanded="true"] {
    color: var(--dxp-g-brand);
    box-shadow: inset 0 -4px 0 var(--dxp-g-brand);
}
 /* Arabic Theme header Megamenu */
 html[lang="ar"]{
    commerce-drilldown-navigation lightning-icon{
        padding-left: 0 !important;
        padding-right: 8px !important;
     }
     commerce-primitive-focus-trap-manager lightning-icon{
        transform: rotate(180deg) !important;
        padding-right: 0 !important;
        top: 15px !important;
        right: auto;
        left: 12px !important;
     }
     commerce-primitive-focus-trap-manager button[data-id="back"] lightning-icon{
        transform: none !important;
     }
 }

/* Search bar */
.theme-search, .theme-search-mobile{
    border: none !important;
    box-shadow: 0 0 9px #dbe3e6;
    font-size: var(--c-b2bFontSize12) !important;
}
.theme-search input, .theme-search-mobile input{
    padding-left: 8px !important;
}
.theme-search button, .theme-search-mobile button{
    padding-right: 0px !important;
}
.theme-search .input-wrapper, .theme-search button,
.theme-search-mobile .input-wrapper{
    border-color: var(--c-b2bColorWhite) !important;
}
.theme-search .input-container,
.theme-search button{
    height: 44px !important;
}
.theme-search-mobile .input-container,
.theme-search-mobile button{
    height: 50px !important;
}
.theme-search .input-wrapper,
.theme-search-mobile .input-wrapper{
    order: 1;
}
.theme-search .input-wrapper.active,
.theme-search-mobile .input-wrapper.active{
    box-shadow: none !important;
}
.theme-search .slds-icon-utility-clear svg{
    fill: var(--c-b2bColorBlue200) !important;
}
html[lang="ar"] .input-search-button{
    padding-right: 8px !important;
}

/* Icons */
.theme-header-profile-icon svg,
.theme-header-cart-icon svg {
    height: 23px;
    width: 23px;
}
.theme-header-profile-icon .slds-icon,
.theme-header-cart-icon .slds-icon {
    fill: var(--c-b2bColorAlmostBlack);
}
.theme-header-cart-icon commerce_cart-mini-cart-panel {
    z-index: 2;
}
.theme-header-cart-icon .slds-notification-badge {
    background-color: var(--c-b2bColorBlue200) !important;
}

/* Theme footer */
.theme-footer-desktop p, .theme-footer-mobile p{
    font-size: var(--c-b2bFontSize18);
    line-height: 18px;
}
.theme-footer-desktop a, .theme-footer-mobile a{
    color: var(--c-b2bColorWhite);
    font-size: var(--c-b2bDefaultFontSize);
    line-height: 24px;
}
.theme-footer-desktop a:hover, .theme-footer-mobile a:hover{
    text-decoration: underline;
    color: var(--c-b2bColorWhite);
}
.theme-footer-mobile .content{
    margin-top: 16px !important;
}
.theme-footer-mobile .content .component-wrapper-spacer{
    margin-bottom: 0px !important;
}
commerce_builder-layout-footer {
    margin-bottom: 0 !important;
}
.footer-copyright community_layout-section{
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}
html[lang="ar"]{
    .footer-copyright p{
        text-align: right !important;
    }
    .theme-footer-desktop p, .theme-footer-mobile p{
        text-align: right !important;
    }
    .theme-footer-desktop a, .theme-footer-mobile a{
        margin-right: 0 !important;
    }
    .theme-footer-mobile{
        direction: rtl;
    }
    .theme-footer-desktop dxp_base-button experience-responsive,
    .theme-footer-mobile dxp_base-button experience-responsive{
        margin-right: 0 !important;
    }
}

/* Copyright in the Footer */
.footer-copyright{
    font-size: var(--c-b2bFontSize12);
    line-height: 18px;
}
@media only screen and (max-width: 768px) {
    .footer-copyright community_layout-section{
        margin-top: -30px;
    }
    .footer-copyright p{
        font-size: var(--c-b2bFontSize11);
        line-height: 15.125px;
    }
    .language-selector-mobile{
        font-size: var(--c-b2bFontSize11);
        color: var(--dxp-g-brand);
    }
}
@media only screen and (max-width: 768px) {
    .footer-copyright community_layout-section{
        margin-top: -30px;
    }
    .footer-copyright p{
        font-size: var(--c-b2bFontSize11);
        line-height: 15.125px;
    }
    .language-selector-mobile{
        font-size: var(--c-b2bFontSize11);
        color: var(--dxp-g-brand);
    }
}

/* mobile styles */
@media only screen and (max-width: 768px) {
    /* header */
    .header:not(:has(header)) {
        min-height: unset !important;
        height: 64px;
    }
    /* header content */
    .theme-header-mobile commerce_my_account-user-profile-menu button::after, .theme-header-mobile commerce_builder-cart-badge::after {
        border-color: var(--c-b2bColorWhite);
    }
    .theme-header-mobile commerce_builder-cart-badge::after {
        left: 40px;
    }
    /* search input */
    .theme-search-mobile{
        margin-left: 0 !important;
    }
    .theme-search-mobile input{
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .input-search-button{
        border-color: transparent !important;
        background-color: transparent !important;
    }
    .input-clear-button-container{
        position: absolute !important;
        right: 20% !important;
    }
    .input-clear-button{
        position: relative !important;
    }
    .input-clear-button svg{
        fill: var(--c-b2bColorBlue200) !important;
    }
    .input-icon-container{
        padding: 0px !important;
    }
    b2b_search_suggestions-combobox button{
        padding-left: 0 !important;
    }
    commerce_builder-cart-badge{
        border: none !important;
    }
    dxp_content_layout-site-logo{
        margin-top: 0 !important;
    }
    commerce_cart-badge .slds-notification-badge{
        background-color: var(--c-b2bColorBlue200) !important;
    }
    commerce_builder-cart-badge::after{
        display: none !important;
    }
    commerce_my_account-user-profile-menu button::after{
        display: none !important;
    }
    commerce_my_account-user-profile-menu .menu-button:hover {
       background-color: var(--c-b2bColorDarkBlue) !important;
   }
    .theme-search, .theme-search-mobile{
       box-shadow: none !important;
   }
   commerce_builder-drilldown-navigation ul li button{
        padding-right: 35px !important;
   }
}
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .theme-header-mobile commerce_builder-cart-badge::after {
        position: relative;
        left: 8px;
    }
    .theme-search-mobile{
        margin-top: -16px !important;
    }
    commerce_builder-cart-badge{
        border-left: none !important;
        border-right: none !important;
    }
    commerce_my_account-user-profile-menu button::after, commerce_builder-cart-badge::after, .theme-header-language-icon::after {
        border-color: var(--c-b2bColorWhite) !important;
    }
}
@media only screen and (min-width: 1023px) and (max-width: 1024px) {
    .theme-search-mobile{
        margin-top: -12px !important;
        margin-left: -8px !important;
    }
}

@media only screen and (max-width: 1279px) {
    .theme-search-mobile input{
        text-align: left !important;
    }
    b2b_search_suggestions-combobox button{
        padding-left: 0 !important;
    }
}

 /* Arabic mobile search */
 @media only screen and (max-width: 768px) {
    html[lang="ar"]{
     .theme-search-mobile input{
         text-align: right !important;
     }
     .theme-search-mobile button{
         right: 16% !important;
         left: auto !important;
     }
     .input-clear-button-container {
        position: absolute !important;
        left: 0px !important;
    }
 }
}

/* b2b image gallery */
.mw-image-gallery .full-width-button .slds-button{
    width: 100% !important;
}
@media only screen and (max-width: 768px) {
    .mw-image-gallery .full-width-button .slds-button{
        display: none !important;
    }
}
.b2b-product-collection .swiper-slide:hover .full-width-button .slds-button,
.b2b-product-collection .full-width-button .slds-button:hover{
    background-color: var(--c-b2bColorBlue) !important;
    color: var(--c-b2bColorWhite) !important;
}

/* home */
.left-right-banner-section community_layout-column-spacer{
    padding: 0 !important;
}
@media only screen and (max-width: 768px) {
   .left-right-banner-section .hero-arrow{
       display: none !important;
   }
}

/* Desktop and mobile class */
.desktop {
    display: block;
}
.mobile {
    display: none;
}
@media only screen and (max-width: 960px) {
    .desktop {
        display: none;
    }
    .mobile {
        display: block;
    }
}

/* privacy policy */
[data-component-id="section-04b5"]{
    padding: 0 !important;
}
html[lang="ar"]{
    .privacy-policy-image .image-wrapper{
        justify-content: right !important;
    }
    .privacy-policy-content div{
        text-align: right !important;
    }
}

/* breadcrumbs */
.breadcrumb-list{
    font-size: var(--c-b2bBreadcrumbFontSize);
    line-height: 12px;

    a, p{
        color: var(--c-b2bBreadcrumbColor) !important;
    }
    li:last-child p, li:last-child a, li:last-child span{
        color: var(--c-b2bColorBlue200) !important;
    }
}
html[lang="ar"]{
    .breadcrumb-list p{
        float: left !important;
        margin-right: var(--slds-c-breadcrumbs-spacing-inline-end) !important;
        margin-left: var(--slds-c-breadcrumbs-spacing-inline-end) !important;
    }
}

/* White stripe above the footer */
.theme-footer-desktop, .theme-footer-mobile{
    margin-top: -32px !important;
}

/* Shipping and returns */
[data-component-id="section-346b"]{
    padding: 0 !important;
}

/* Terms and conditions */
[data-component-id="section-dc44"]{
    padding: 0 !important;
}

/* Mobile navigation */
@media only screen and (max-width: 960px) {
    html[lang="ar"]{
        .close-button-wrapper lightning-button-icon{
            right: auto !important;
            left: 8px !important;
        }
    }
}

/* Cart delete icon */
commerce_cart-item commerce-action-button button,
/* PLP and search grid */
.logged-user-product-grid commerce_search-product-card .callToActionButton button{
    font-size: 0px !important;
}
/* Cart delete icon */
commerce_cart-item commerce-action-button button:before{
    content: url('/ksa/sfsites/c/cms/delivery/media/MCHMXFO7ZZ4NBXVH2OGLR6RHTFLE') !important;
}
/* PLP and search grid */
.logged-user-product-grid commerce_search-product-card .callToActionButton button:before{
    content: url('/ksa/sfsites/c/cms/delivery/media/MCCGDEJUUWJFDQ7MY5NOOUIA45RY') !important;
}

/* Order confirmation - go to orders */
[data-component-id="button-2151"],
[data-component-id="button-493c"]{
    margin-top: -16px !important;
}

/* Quick order - home */
html[lang="ar"]{
    commerce_builder-quick-order .quantity{
        margin-left: 2.5rem !important;
        margin-right: 0 !important;
    }
}

/* Help tooltip */
lightning-helptext{
    margin-inline-start: 30px;
}
lightning-helptext button.slds-button_icon {
    color: var(--c-b2bColorBlue) !important;
}
lightning-helptext div{
    margin-top: -8px;
}
lightning-primitive-bubble .slds-popover{
    background-color: var(--c-b2bColorBlue) !important;
}
lightning-helptext svg {
    width: 14px !important;
    height: 16px !important;
}
html[lang="ar"]{
    lightning-helptext{
        margin-inline-start: 0;
    }
}

/* account creation tooltip */
c-b2b-account-creation-l-w-r lightning-helptext div{
    margin-top: 0 !important;
    margin-right: 8px;
}
html[lang="ar"]{
    c-b2b-account-creation-l-w-r lightning-helptext div{
        margin-left: 8px;
    }
}