/* AtlasRoute shopping cart: header count, mini cart drawer, cart page. */

.header-cart-link {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.header-cart-count {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    margin-left: 4px;
    padding: 0 5px;
    place-items: center;
    border: 1px solid #d7e0ea;
    border-radius: 999px;
    background: #f5f8fb;
    color: #697b8e;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
}

.header-cart-count.is-active {
    border-color: rgba(201, 164, 93, .55);
    background: #c9a45d;
    color: #03346b;
}

.site-header--overlay:not(.is-scrolled):not(.is-menu-open) .header-cart-count {
    border-color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.site-header--overlay:not(.is-scrolled):not(.is-menu-open) .header-cart-count.is-active {
    border-color: rgba(225, 194, 124, .8);
    background: #d5ad61;
    color: #052f5d;
}

body.cart-drawer-open {
    overflow: hidden;
}

.cart-drawer[hidden] {
    display: none !important;
}

.cart-drawer {
    position: fixed;
    z-index: 320;
    inset: 0;
}

.cart-drawer__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(2, 27, 57, .55);
    cursor: pointer;
    backdrop-filter: blur(2px);
}

.cart-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: min(430px, calc(100% - 28px));
    height: 100%;
    flex-direction: column;
    background: #fff;
    box-shadow: -18px 0 60px rgba(3, 31, 67, .22);
}

.cart-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 24px 20px;
    border-bottom: 1px solid #e2e8ef;
}

.cart-drawer__header p {
    margin: 0 0 3px;
    color: #a17a36;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .15em;
}

.cart-drawer__header h2 {
    margin: 0;
    color: #03346b;
    font-size: 23px;
}

.cart-drawer__close {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 1px solid #d7e0ea;
    border-radius: 50%;
    background: #fff;
    color: #37516d;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}

.cart-drawer__close:hover {
    border-color: #b9c8d8;
    background: #f6f9fc;
}

.cart-drawer__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 24px 22px;
}

.cart-drawer__empty {
    display: grid;
    min-height: 310px;
    place-items: center;
    align-content: center;
    text-align: center;
}

.cart-drawer__empty > span {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    place-items: center;
    border-radius: 14px;
    background: #c9a45d;
    color: #03346b;
    font-size: 22px;
    font-weight: 900;
}

.cart-drawer__empty strong {
    color: #03346b;
    font-size: 20px;
}

.cart-drawer__empty p {
    margin: 7px 0 0;
    color: #7a8795;
    font-size: 13px;
}

.cart-drawer__items {
    display: grid;
}

.cart-drawer-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 18px 0;
    border-bottom: 1px solid #edf1f5;
}

.cart-drawer-item__title {
    display: inline-block;
    color: #03346b;
    text-decoration: none;
    font-size: 16px;
    font-weight: 850;
}

.cart-drawer-item__title:hover {
    color: #075193;
}

.cart-drawer-item__content > p {
    margin: 3px 0 0;
    color: #6d7e91;
    font-size: 12px;
}

.cart-drawer-item__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 9px;
}

.cart-drawer-item__meta span {
    color: #8290a0;
    font-size: 11px;
}

.cart-drawer-item__meta strong {
    color: #03346b;
    font-size: 15px;
}

.cart-drawer-item__remove {
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #8b5960;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.cart-drawer-item__remove:hover {
    color: #b42318;
    text-decoration: underline;
}

.cart-drawer-item--unavailable {
    opacity: .72;
}

.cart-drawer__footer {
    flex: 0 0 auto;
    padding: 20px 24px 24px;
    border-top: 1px solid #e2e8ef;
    background: #f8fafc;
}

.cart-drawer__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.cart-drawer__total span {
    color: #6c7d8f;
    font-size: 12px;
    font-weight: 700;
}

.cart-drawer__total strong {
    color: #03346b;
    font-size: 24px;
}

.cart-drawer__checkout {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 10px 9px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #03346b 0%, #075193 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 850;
}

.cart-drawer__checkout:hover {
    color: #fff;
    box-shadow: 0 12px 28px rgba(3, 52, 107, .20);
}

.cart-drawer__checkout span:last-child {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
}

.cart-drawer__footer > p {
    margin: 9px 0 0;
    color: #8491a0;
    font-size: 10px;
    text-align: center;
}

.plan-cart-form {
    margin: 0;
}

.plan-cart-form .plan-button {
    width: 100%;
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.plan-cart-notice {
    width: min(100%, 875px);
    margin: 0 0 18px;
}

.cart-page {
    background:
        radial-gradient(circle at 90% 3%, rgba(201, 164, 93, .09), transparent 24%),
        #f5f8fc;
}

.cart-page__container {
    max-width: 1180px;
}

.cart-page__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.cart-page__heading h1 {
    margin: 4px 0 8px;
    color: #03346b;
}

.cart-page__heading p:last-child {
    margin: 0;
    color: #66788c;
    font-size: 14px;
}

.cart-page__continue {
    flex: 0 0 auto;
    padding: 9px 15px;
    border: 1px solid #cad6e2;
    border-radius: 999px;
    color: #31516f;
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
    background: #fff;
}

.cart-page__continue:hover {
    border-color: #8fa8bf;
    color: #03346b;
}

.cart-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    align-items: start;
}

.cart-items {
    display: grid;
    gap: 14px;
}

.cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 22px;
    padding: 25px 26px;
    border: 1px solid rgba(3, 52, 107, .11);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(3, 52, 107, .055);
}

.cart-item__badge {
    margin-bottom: 5px;
    color: #a17a36;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .14em;
}

.cart-item__main h2 {
    margin: 0;
    font-size: 22px;
}

.cart-item__main h2 a {
    color: #03346b;
    text-decoration: none;
}

.cart-item__spec {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 9px 0 0;
    color: #03346b;
}

.cart-item__spec strong {
    font-size: 25px;
}

.cart-item__spec span {
    color: #61758a;
    font-size: 13px;
    font-weight: 700;
}

.cart-item__unit-price {
    margin: 8px 0 0;
    color: #8290a0;
    font-size: 12px;
}

.cart-item__controls {
    display: grid;
    align-content: start;
    gap: 13px;
}

.cart-quantity-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.cart-quantity-form label > span {
    display: block;
    margin-bottom: 4px;
    color: #75869a;
    font-size: 10px;
    font-weight: 750;
}

.cart-quantity-form select {
    min-height: 40px;
}

.cart-item__update {
    min-height: 40px;
    padding: 7px 13px;
    border: 1px solid #c9d5e1;
    border-radius: 9px;
    background: #f7f9fc;
    color: #31516f;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.cart-item__subtotal {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding-top: 11px;
    border-top: 1px solid #edf1f5;
}

.cart-item__subtotal span {
    color: #718398;
    font-size: 11px;
}

.cart-item__subtotal strong {
    color: #03346b;
    font-size: 22px;
}

.cart-item__remove {
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: #7f5960;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.cart-item__remove:hover {
    color: #b42318;
    text-decoration: underline;
}

.cart-item--unavailable {
    border-color: #edcfcb;
    background: #fffafa;
}

.cart-item__unavailable-text {
    margin: 8px 0 0;
    color: #9c5550;
    font-size: 13px;
}

.cart-summary-card {
    position: sticky;
    top: 96px;
    padding: 25px;
    border: 1px solid rgba(3, 52, 107, .11);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(3, 52, 107, .08);
}

.cart-summary-card__eyebrow {
    margin: 0 0 4px;
    color: #a17a36;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .14em;
}

.cart-summary-card h2 {
    margin: 0 0 20px;
    font-size: 24px;
}

.cart-summary-card dl {
    margin: 0;
}

.cart-summary-card dl > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid #edf1f5;
}

.cart-summary-card dt {
    color: #718398;
    font-size: 12px;
}

.cart-summary-card dd {
    margin: 0;
    color: #03346b;
    font-weight: 800;
}

.cart-summary-card__total dd {
    font-size: 25px;
}

.cart-summary-card__note,
.cart-summary-card__phase-note {
    margin: 14px 0 0;
    color: #8491a0;
    font-size: 10px;
    line-height: 1.7;
}

.cart-summary-card__alert {
    margin-top: 15px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #fff0ee;
    color: #a0443c;
    font-size: 12px;
    font-weight: 700;
}

.cart-summary-card__checkout {
    width: 100%;
    margin-top: 20px;
}

.cart-summary-card__checkout:disabled {
    opacity: .48;
    cursor: not-allowed;
    box-shadow: none;
}

.cart-summary-card__clear {
    margin-top: 15px;
    text-align: center;
}

.cart-summary-card__clear button {
    border: 0;
    background: transparent;
    color: #7b8998;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.cart-summary-card__clear button:hover {
    color: #b42318;
    text-decoration: underline;
}

.cart-empty {
    padding: 70px 24px;
    border: 1px solid #dce5ee;
    border-radius: 22px;
    background: #fff;
    text-align: center;
    box-shadow: 0 12px 34px rgba(3, 52, 107, .06);
}

.cart-empty__mark {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 17px;
    place-items: center;
    border-radius: 15px;
    background: #c9a45d;
    color: #03346b;
    font-size: 23px;
    font-weight: 900;
}

.cart-empty h2 {
    margin: 0;
}

.cart-empty p {
    margin: 9px 0 22px;
    color: #77889b;
}

@media (max-width: 900px) {
    .main-nav .header-cart-link {
        justify-content: flex-start;
    }

    .cart-page__layout {
        grid-template-columns: 1fr;
    }

    .cart-summary-card {
        position: static;
    }
}

@media (max-width: 700px) {
    .cart-page__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .cart-item {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .cart-item__controls {
        padding-top: 15px;
        border-top: 1px solid #edf1f5;
    }

    .cart-drawer__header,
    .cart-drawer__body,
    .cart-drawer__footer {
        padding-right: 18px;
        padding-left: 18px;
    }
}

/* Responsive quick action bar: AI search, cart, back to top. */
.mobile-action-bar {
    display: none;
}

@media (max-width: 980px) {
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }

    .ai-search-fab,
    .footer-back-to-top {
        display: none !important;
    }

    .mobile-action-bar {
        position: fixed;
        z-index: 260;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        left: 10px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 46px;
        gap: 7px;
        max-width: 520px;
        margin: 0 auto;
        padding: 7px;
        border: 1px solid rgba(3,52,107,.12);
        border-radius: 17px;
        background: rgba(255,255,255,.94);
        box-shadow: 0 13px 38px rgba(2,31,65,.20);
        backdrop-filter: blur(14px);
    }

    .mobile-action-bar button {
        font: inherit;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-action-bar__action {
        position: relative;
        display: flex;
        min-width: 0;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 7px 10px;
        border: 0;
        border-radius: 12px;
        background: #03346b;
        color: #fff;
        font-size: 12px;
        font-weight: 850;
    }

    .mobile-action-bar__action:nth-child(2) {
        background: linear-gradient(135deg,#a97d34,#d0ad67);
        color: #052f5d;
    }

    .mobile-action-bar__action svg {
        width: 17px;
        height: 17px;
        flex: 0 0 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-action-bar__count {
        display: none;
        min-width: 19px;
        height: 19px;
        padding: 0 5px;
        place-items: center;
        border-radius: 999px;
        background: #fff;
        color: #03346b;
        font-size: 10px;
        font-weight: 900;
        line-height: 1;
    }

    .mobile-action-bar__count.is-active {
        display: inline-grid;
    }

    .mobile-action-bar__top {
        display: grid;
        width: 46px;
        height: 48px;
        place-items: center;
        padding: 0;
        border: 1px solid #d7e0ea;
        border-radius: 12px;
        background: #f7f9fc;
        color: #31516f;
    }

    .mobile-action-bar__top svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-action-bar__action:focus-visible,
    .mobile-action-bar__top:focus-visible {
        outline: 2px solid #c9a45d;
        outline-offset: 2px;
    }
}

@media (max-width: 420px) {
    .mobile-action-bar {
        right: 7px;
        left: 7px;
        gap: 5px;
        padding: 6px;
    }

    .mobile-action-bar__action {
        gap: 5px;
        padding-right: 7px;
        padding-left: 7px;
        font-size: 11px;
    }
}
