/* ==========================================================================
   WELCOME BANNER DESIGN TOKENS
   Defines component-level design variables matching Salesforce DXP structure.
   ========================================================================== */
:root {
    /* Layout & Sizing */
    --dxp-c-welcome-banner-width: 100%;
    --dxp-c-welcome-banner-max-width: 720px;
    --dxp-c-welcome-banner-gap: 16px;
    --dxp-c-welcome-banner-padding-block: clamp(24px, 4vw, 48px);
    --dxp-c-welcome-banner-padding-inline: clamp(16px, 4vw, 48px);

    /* Text & Content Elements */
    --dxp-c-welcome-banner-text-max-width: 624px;
    
    /* Typography: Title */
    --dxp-c-welcome-banner-title-font-size: clamp(32px, 2.8vw, 40px);
    --dxp-c-welcome-banner-title-line-height: clamp(40px, 3.5vw, 50px);
    --dxp-c-welcome-banner-title-font-weight: 700;
    --dxp-c-welcome-banner-title-letter-spacing: -0.5px;
    
    /* Typography: Body Text */
    --dxp-c-welcome-banner-body-font-size: 20px;
    --dxp-c-welcome-banner-body-line-height: 28px;
    --dxp-c-welcome-banner-body-font-weight: 400;

    /* Theme Colors (Maps custom values to fallback design choices) */
    --dxp-c-welcome-banner-color-text: #FFFFFF;
    --dxp-c-welcome-banner-color-highlight: #A8DCD9;

    --dxp-g-root-font-family: 'ProximaNovaSoft-Regular', sans-serif !important;
    --lwc-fontFamily: 'ProximaNovaSoft-Regular', sans-serif !important;
    font-family: 'ProximaNovaSoft-Regular', sans-serif !important;
     
     --bonnell-midnight: #171f29;
    --bonnell-navy: #004d5d;

    --bonnell-font-size-sm: 13px;
    --bonnell-font-size-md: 16px;
    --bonnell-font-size-xl: 32px;

    --bonnell-spacing-xxs: 5px;
    --bonnell-spacing-md: 24px;
    --bonnell-spacing-lg: 32px;
    --bonnell-spacing-xl: 40px;
}

/* ==========================================================================
   COMPONENT STYLES
   Uses modern logical properties and removes heavy reliance on !important.
   ========================================================================== */

.welcome-banner-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    box-sizing: border-box;
    text-align: left;
    margin: 0;
    
    /* Variable assignments */
    width: var(--dxp-c-welcome-banner-width);
    max-width: var(--dxp-c-welcome-banner-max-width);
    gap: var(--dxp-c-welcome-banner-gap);
    
    /* Logical spacing equivalents mapping to top/bottom & left/right */
    padding-block: var(--dxp-c-welcome-banner-padding-block);
    padding-inline: var(--dxp-c-welcome-banner-padding-inline);

    /* 1-Second Delay  */
    opacity: 0; /* Starts the entire banner as invisible */
    animation: revealBanner 0.7s ease 0.9s forwards; /* Waits 1s, then fades in over 0.5s */
}

/* NEW: The animation that brings the banner back */
@keyframes revealBanner {
    to { opacity: 1; }
}
.welcome-banner-title {
    margin: 0;
    text-transform: uppercase;
    width: var(--dxp-c-welcome-banner-width);
    max-width: var(--dxp-c-welcome-banner-text-max-width);
    
    /* Variable assignments */
    font-size: var(--dxp-c-welcome-banner-title-font-size);
    line-height: var(--dxp-c-welcome-banner-title-line-height);
    font-weight: var(--dxp-c-welcome-banner-title-font-weight);
    letter-spacing: var(--dxp-c-welcome-banner-title-letter-spacing);
    color: var(--dxp-c-welcome-banner-color-text);
}

.welcome-banner-highlight {
    color: var(--dxp-c-welcome-banner-color-highlight);
}

.welcome-banner-text {
    margin: 0;
    width: var(--dxp-c-welcome-banner-width);
    max-width: var(--dxp-c-welcome-banner-text-max-width);
    
    /* Variable assignments */
    font-size: var(--dxp-c-welcome-banner-body-font-size);
    line-height: var(--dxp-c-welcome-banner-body-line-height);
    font-weight: var(--dxp-c-welcome-banner-body-font-weight);
    color: var(--dxp-c-welcome-banner-color-text);
}

/* Custom CSS for Footer */

@media screen and (min-width: 767px) {
    .footer-policy-links ul {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        list-style: none;
        margin-top: -2.5rem;
        padding-left: 4rem;
    }
  
    .footer-policy-links li {
        display: inline-flex;
    }
  }
  
  .footer-contact-support-btn .slds-button{
    display:inline-flex;
    align-items:center;
    gap:0.5rem
  }
  .footer-contact-support-btn .slds-button::before{
    content:"";
    width:1rem;
    height:1rem;
    flex:0 0 1rem;
    background-image: url("Footer_Button_Lightning_Icon");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    flex-shrink: 0;
  }
  
  @media (max-width: 1024px) {
    .footer-contact-support-btn {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .footer-contact-support-btn .slds-button {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center;
    }
    .footer-bonnell-logo img {
        width: 10rem !important;        
        height: auto !important;         
        max-height: 3.75rem !important; 
        object-fit: contain !important;  
      }
  }

/* Custom CSS for capitalizing text in desktop and mobile mode for navlinks */
.exp-mega-menu__nav-bar__item {
    text-transform: uppercase !important;
}

/* Keep underline on the active/open page (matches the hover underline) */
.exp-mega-menu__nav-bar__item a[aria-current="page"],
.exp-mega-menu__nav-bar__item a[aria-current="true"],
.exp-mega-menu__nav-bar__item[aria-current="page"] a,
.exp-mega-menu__nav-bar__item:has(a[aria-current="page"]) {
    box-shadow: inset 0 -3px 0 0 rgba(0, 131, 126, 1) !important;
}

.exp-mobile-mega-menu__main-list-item a,
.exp-mobile-mega-menu__main-list-item button,
.exp-mobile-mega-menu__main-list-item p {
        text-transform: uppercase !important;
}
   /* Targets the flow navigation bar specifically and removes the top border */
   .navigationBar.slds-card__footer {
    border-top: none !important;
    }
/* ==========================================================================
   MOBILE ORIENTATION STABILITY FIXES
   Prevents intermittent disappearing logo/button after device rotation.
   ========================================================================== */

/* Header logo (split header/store logo) and footer critical elements */
b2c_lite_commerce-store-logo-cms,
b2c_lite_commerce-store-logo-cms img,
.footer-bonnell-logo,
.footer-bonnell-logo img,
.footer-contact-support-btn,
.footer-contact-support-btn .slds-button {
    visibility: visible !important;
    opacity: 1 !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

/* Ensure button remains rendered as an interactive control */
.footer-contact-support-btn .slds-button {
    display: inline-flex !important;
}

/* Force repaint on orientation transitions (iOS/Android Chrome rendering quirk) */
@keyframes orientationRepaint {
    from { opacity: 0.99; }
    to { opacity: 1; }
}

@media screen and (orientation: portrait), screen and (orientation: landscape) {
    b2c_lite_commerce-store-logo-cms,
    .footer-bonnell-logo,
    .footer-contact-support-btn {
        animation: orientationRepaint 0.01s linear 1;
    }
}

/* Removing White Space above footer in all pages */

community_layout-hidden-region,
community_layout-hidden-region .component-wrapper-spacer {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
}

.slds-tabs_default__item.slds-is-active::after,
.slds-tabs_default__item.slds-is-active:hover::after {
  background-color: rgba(0, 77, 93, 1) !important;
}

/* ==========================================================================
   DIES & PARTS FILTER DRAWER — PAGE SCROLL LOCK
   Toggled via class on <html> from diesAndPartsContainer LWC.
   ========================================================================== */

html.dp-page-scroll-locked {
  overflow: hidden;
}

html.dp-page-scroll-locked body {
  overflow: hidden;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  top: var(--dp-scroll-lock-top, 0);
}
.invoice_download_button {
    display: block;
    margin: auto;      /* This pushes equally on the left and right */
    width: fit-content;  /* Ensures the wrapper doesn't stretch to 100% width */
    text-align: center;
}