/* Public website palette and navbar dimensions from Docusaurus shared-navbar.css. */
.customer-site {
    --customer-ink: #0b1220;
    --customer-paper: #f7f9fc;
    --customer-blue: #0954c7;
    --customer-blue-hover: #0745a3;
    --customer-muted: #5c6b7d;
    --customer-line: #dbe3ef;
    --bs-body-color: var(--customer-ink);
    --bs-secondary-color: var(--customer-muted);
    --bs-border-color: var(--customer-line);
    --bs-tertiary-bg: var(--customer-paper);
    --bs-link-color-rgb: 9, 84, 199;
    --bs-link-hover-color-rgb: 7, 69, 163;
    background: var(--customer-paper);
    color: var(--customer-ink);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    color-scheme: light;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.customer-site-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    height: 72px;
    padding-inline: 1rem;
    border-bottom: 1px solid #dbe3ef;
    background: rgba(247, 249, 252, .88);
    backdrop-filter: blur(14px);
    color: #0b1220;
    font: 400 1rem/1.65 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
}

.customer-site .modal { --bs-modal-zindex: 1220; }
.customer-site .modal-backdrop { --bs-backdrop-zindex: 1210; }

.customer-site-header.is-scrolled { background: rgba(247, 249, 252, .72); }

.customer-header-inner {
    --customer-nav-gap: clamp(.2rem, .8vw, .75rem);
    display: flex;
    align-items: center;
    gap: var(--customer-nav-gap);
    max-width: 1600px;
    height: 72px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 3rem);
}

.customer-brand {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: .45rem;
    color: #072b61;
    font: 800 1.26rem/1 Arial, Helvetica, sans-serif;
    letter-spacing: -.045em;
    text-decoration: none;
}

.customer-brand__home { display: inline-flex; flex: 0 0 auto; text-decoration: none; }
.customer-brand__home img { display: block; width: 42px; height: 42px; }
.customer-brand__identity { display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: 3px; }
.customer-brand__wordmark { display: block; width: max-content; color: #072b61; text-decoration: none; }
.customer-brand__wordmark:hover { color: #072b61; text-decoration: none; }
.customer-brand__identity .customer-product-name {
    align-self: flex-start;
    margin: 0;
    color: #405875;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .01em;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
}
.customer-brand__identity .customer-product-name:hover,
.customer-brand__identity .customer-product-name:focus-visible { color: #0954c7; text-decoration: none; }
.customer-brand span span { color: #e32f00; }
.customer-public-nav,
.customer-header-actions {
    display: flex;
    align-items: center;
    gap: var(--customer-nav-gap);
}

.customer-public-nav { margin-left: auto; }

.customer-nav-link {
    display: inline-flex;
    align-items: center;
    padding: .25rem clamp(.3rem, .55vw, .55rem);
    border: 0;
    background: transparent;
    color: #405875;
    font-family: inherit;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.customer-nav-link:hover,
.customer-nav-link:focus-visible,
.customer-nav-link[aria-expanded="true"] { color: var(--customer-blue); }

.customer-header-actions .customer-nav-link { padding: .25rem .5rem; color: inherit; }
.customer-header-actions .customer-nav-link:hover,
.customer-header-actions .customer-nav-link:focus-visible { color: var(--customer-blue); }
.customer-cart-icon { display: inline-flex; position: relative; }
.customer-cart-badge {
    align-items: center;
    background: #e32f00;
    border: 2px solid #f7f9fc;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: .6rem;
    font-weight: 800;
    height: 1rem;
    justify-content: center;
    line-height: 1;
    min-width: 1rem;
    padding: 0 .18rem;
    position: absolute;
    right: -.55rem;
    top: -.55rem;
}
.customer-cart-badge[hidden] { display: none; }

.customer-header-actions svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.customer-menu-toggle,
.customer-menu-toggle .customer-menu-close-icon,
.customer-menu-toggle[aria-expanded="true"] .customer-menu-open-icon { display: none; }
.customer-menu-toggle[aria-expanded="true"] .customer-menu-close-icon { display: initial; }

.customer-public-nav .customer-company-panel {
    width: 250px;
    padding: 8px;
    border: 1px solid #cbd9e8;
    border-radius: 10px;
    box-shadow: 0 16px 36px rgb(20 54 92 / 20%);
}

.customer-company-panel .dropdown-item {
    padding: 10px 14px;
    border-radius: 6px;
    color: #173b82;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.customer-company-panel .dropdown-item:hover,
.customer-company-panel .dropdown-item:focus-visible {
    background: #eef5ff;
    color: #0954c7;
}

.customer-section {
    border-bottom: 1px solid var(--customer-line);
    background: #fff;
}

/* Match the public site's footer utilities without importing Infima into Bootstrap pages. */
.customer-site .footer {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
    line-height: 1.65;
}

.customer-site .footer::before {
    position: absolute;
    top: -1px;
    left: 0;
    width: min(18rem, 35vw);
    height: 2px;
    background: #f04b16;
    content: "";
}

.customer-site .footer > .container-fluid {
    max-width: 1140px;
    padding-inline: 1rem;
}

.customer-site .footer__links > .footer__col {
    padding-inline: 1rem;
}

.customer-site .footer__items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.customer-site .footer__bottom { text-align: center; }

@media (min-width: 1440px) {
    .customer-site .footer > .container-fluid { max-width: 1320px; }
}

@media (max-width: 996px) {
    .customer-site .footer__col { margin-bottom: 3rem; }
    .customer-site .footer__link-item {
        display: block;
        width: fit-content;
    }
}

.customer-section-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .65rem 1rem;
    padding-block: .85rem;
}

.customer-section-title {
    color: var(--customer-ink);
    font-weight: 650;
    text-decoration: none;
}

.customer-section .portal-links { font-size: .9rem; }

.customer-content {
    flex: 1;
    padding-block: clamp(1.5rem, 4vw, 3.5rem);
}

.customer-content h1,
.customer-content h2,
.customer-content h3 {
    color: var(--customer-ink);
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: -.025em;
}

.customer-content h1 { font-size: clamp(2rem, 4vw, 3rem); }
.customer-content .portal-card h2 { font-size: 1.5rem; }
.customer-content .portal-card { padding: clamp(1rem, 3vw, 2rem); }
.customer-content .portal-auth { margin-block: 0 1.5rem; }

.customer-password-field {
    position: relative;
}

.customer-password-field .form-control {
    padding-inline-end: 3rem;
}

.customer-password-toggle {
    position: absolute;
    inset-block: 0;
    inset-inline-end: .25rem;
    display: grid;
    place-items: center;
    width: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: .375rem;
    background: transparent;
    color: var(--bs-secondary-color);
}

.customer-password-toggle:hover {
    color: var(--customer-ink);
}

.customer-password-toggle:focus-visible {
    outline: 2px solid var(--customer-blue);
    outline-offset: -3px;
}

.customer-password-field:has(.customer-password-toggle:not(.d-none)) input::-ms-reveal {
    display: none;
}


.customer-content .btn-primary {
    --bs-btn-bg: var(--customer-blue);
    --bs-btn-border-color: var(--customer-blue);
    --bs-btn-hover-bg: var(--customer-blue-hover);
    --bs-btn-hover-border-color: var(--customer-blue-hover);
    --bs-btn-active-bg: var(--customer-blue-hover);
    --bs-btn-active-border-color: var(--customer-blue-hover);
    --bs-btn-disabled-bg: var(--customer-blue);
    --bs-btn-disabled-border-color: var(--customer-blue);
}

@media (max-width: 1180px) {
    .customer-brand { font-size: 1.15rem; }
    .customer-company-dropdown > button { font-size: 12px; }
}

@media (min-width: 901px) {
    .customer-public-nav.collapse { display: flex; }
    .customer-public-nav > .customer-nav-link,
    .customer-public-nav .dropdown > button { height: 72px; }
    .customer-products-dropdown > button { padding-inline: .5rem; color: #0b1220; }
    .customer-products-dropdown > button:hover,
    .customer-products-dropdown > button:focus-visible,
    .customer-products-dropdown > button[aria-expanded="true"] { color: var(--customer-blue); }
    .customer-company-dropdown > button { padding-inline: 0; }
    .customer-public-nav .customer-company-panel { top: 62px; right: 0; left: auto; margin: 0; }
    .customer-header-actions a:nth-child(2) { padding-right: 0; }
    .customer-header-actions a:nth-child(2) svg { width: 1.15rem; height: 1.15rem; }
}

@media (max-width: 900px) {
    .customer-site-header { padding-inline: 0; }
    .customer-header-inner { gap: .5rem; padding-inline: 1rem; }
    .customer-header-actions { gap: .5rem; margin-left: auto; }
    .customer-header-actions .customer-nav-link {
        justify-content: center;
        width: 36px;
        height: 42px;
        padding: 0;
        color: #173b82;
    }
    .customer-header-actions .customer-menu-toggle {
        display: inline-flex;
        width: 42px;
        border: 1px solid #c8d4e3;
        border-radius: 7px;
    }
    .customer-menu-toggle svg { width: 23px; height: 23px; }
    .customer-public-nav {
        position: absolute;
        inset: 100% 0 auto;
        margin: 0;
        padding: .5rem 1rem 1rem;
        max-height: calc(100dvh - 72px);
        overflow-y: auto;
        border-top: 1px solid #dbe3ef;
        background: rgba(247, 249, 252, .98);
        box-shadow: 0 18px 35px rgb(11 18 32 / 16%);
    }
    .customer-public-nav.show { display: block; }
    .customer-public-nav .customer-nav-link {
        display: flex;
        width: 100%;
        min-height: 44px;
        padding: .72rem .55rem;
        border-bottom: 1px solid #e2e9f2;
        color: #173b82;
        font-size: 15px;
        font-weight: 700;
    }
    .customer-public-nav .dropdown-menu { position: static; transform: none; }
}

.customer-legacy-login { scroll-margin-top: 5.5rem; }

.portal-disclosure > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    list-style: none;
    cursor: pointer;
}

.portal-disclosure > summary::-webkit-details-marker { display: none; }
.portal-disclosure > summary > h2 { margin-bottom: 0; }

.portal-disclosure > summary::after {
    content: "";
    flex: none;
    width: .65rem;
    height: .65rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.portal-disclosure[open] > summary { margin-bottom: 1rem; }
.portal-disclosure[open] > summary::after { transform: rotate(225deg); }

/* Match the public Products panel's grouped cards and blue heading bands. */
.customer-public-nav .customer-products-panel {
    padding: 0;
    overflow: auto;
    border: 1px solid #cbd9e8;
    border-radius: 10px;
    box-shadow: 0 16px 36px rgb(20 54 92 / 20%);
}

.customer-products-panel.show { display: grid; }
.customer-product-group { min-width: 0; }
.customer-product-heading {
    padding: .75rem 1.125rem;
    background: #eef5ff;
}

.customer-product-heading h2 {
    margin: 0;
    color: #123a83;
    font-size: 1.25rem;
    font-weight: 800;
}

.customer-product-heading p {
    margin: .2rem 0 0;
    color: #55709f;
    font-size: .875rem;
}

.customer-product-list { padding: .75rem 1.125rem; }
.customer-product-link {
    display: flex;
    align-items: center;
    gap: .875rem;
    min-height: 52px;
    padding: .25rem .625rem;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #123a83;
    text-decoration: none;
}

.customer-product-link:hover,
.customer-product-link:focus-visible {
    border-color: #d5dbe4;
    background: #fff;
    box-shadow: 0 4px 10px rgb(31 41 55 / 9%);
    color: #123a83;
}

.customer-product-link img { flex: 0 0 auto; object-fit: contain; }
.customer-product-link strong,
.customer-product-link small { display: block; }
.customer-product-link strong { font-size: .9375rem; line-height: 1.2; }
.customer-product-link small { margin-top: .2rem; color: #55709f; font-size: .6875rem; line-height: 1.3; }
.customer-product-cloud { background: #fbfdff; }

@media (min-width: 901px) {
    .customer-products-dropdown { position: static; }
    .customer-public-nav .customer-products-panel {
        top: 62px;
        left: 50%;
        width: min(900px, calc(100% - 2rem));
        max-height: calc(100dvh - 72px);
        margin: 0;
        transform: translateX(-50%);
        grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
    }
    .customer-product-group { display: flex; flex-direction: column; }
    .customer-product-group:nth-child(2) { border-left: 1px solid #dce5ef; }
    .customer-product-group:nth-child(2) .customer-product-list {
        display: grid;
        flex: 1;
        grid-template-rows: repeat(4, 1fr);
    }
    .customer-product-cloud { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .customer-public-nav .customer-products-panel { max-height: none; }
}

.customer-content .btn-primary.customer-login-button,
.customer-content .btn-primary.portal-agreement-button,
.customer-content .btn-primary.portal-register-machine-button {
    --bs-btn-bg: var(--portal-button-blue);
    --bs-btn-border-color: var(--portal-button-blue);
    --bs-btn-hover-bg: var(--portal-button-blue-hover);
    --bs-btn-hover-border-color: var(--portal-button-blue-hover);
    --bs-btn-active-bg: var(--portal-button-blue-hover);
    --bs-btn-active-border-color: var(--portal-button-blue-hover);
    --bs-btn-disabled-bg: var(--portal-button-blue);
    --bs-btn-disabled-border-color: var(--portal-button-blue);
}

.customer-content .customer-login-button {
    width: 100%;
    min-height: 46px;
}

.customer-content .customer-social-button {
    display: flex;
    align-items: center;
    padding: 2px;
}

.customer-social-button img {
    flex: 0 0 40px;
    border-radius: 2px;
    background: #fff;
}

.customer-social-button span {
    flex: 1;
    padding-inline: .5rem;
    text-align: center;
}

.customer-login-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-block: .65rem;
    color: var(--customer-muted);
}

.customer-login-divider::before,
.customer-login-divider::after {
    flex: 1;
    border-top: 1px solid var(--customer-line);
    content: "";
}
