/* =========================================================
   CART PAGE
   Corporate palette:
   accent #aa0100
   UI     #398387
   bg     #f8f9fa
   ========================================================= */

:root {
    --cart-accent: #aa0100;
    --cart-accent-dark: #850100;
    --cart-accent-soft: rgba(170, 1, 0, .07);

    --cart-ui: #398387;
    --cart-ui-dark: #2d6c70;
    --cart-ui-soft: rgba(57, 131, 135, .08);

    --cart-bg: #f8f9fa;
    --cart-surface: #ffffff;

    --cart-text: #333;
    --cart-muted: #687078;

    --cart-border: #e4e8eb;
    --cart-border-soft: #edf0f2;

    --cart-success: #198754;

    --cart-radius: 14px;
    --cart-radius-lg: 20px;

    --cart-shadow:
        0 8px 30px rgba(22, 31, 38, .06);

    --cart-shadow-hover:
        0 14px 36px rgba(22, 31, 38, .10);
}


/* =========================================================
   BASE
   ========================================================= */

body.cart-page {
    min-height: 100vh;
    color: var(--cart-text);
    background: var(--cart-bg);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.cart-page a {
    text-decoration: none;
}

.cart-page button,
.cart-page input,
.cart-page textarea {
    font-family: inherit;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.cart-navbar {
    min-height: 66px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--cart-border);
    backdrop-filter: blur(12px);
}

.cart-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cart-text);
    font-size: 14px;
    font-weight: 700;
}

.cart-brand:hover {
    color: var(--cart-text);
}

.cart-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #fff;
    background: var(--cart-accent);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
}

.cart-navbar-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #495057;
    font-size: 13px;
    font-weight: 600;
}

.cart-navbar-link:hover {
    color: var(--cart-ui);
}

.cart-navbar-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 7px 12px;
    color: var(--cart-ui);
    background: var(--cart-ui-soft);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 650;
}

.cart-navbar-cart:hover {
    color: var(--cart-ui-dark);
    background: rgba(57, 131, 135, .12);
}

.cart-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    color: var(--cart-accent);
    background: #fff;
    border-radius: 5px;
    border: 1px solid var(--cart-accent);
    font-size: 13px;
    font-weight: 500;
}


/* =========================================================
   HERO
   ========================================================= */

.cart-hero {
    padding: 48px 0 42px;
    overflow: hidden;
}

.cart-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--cart-muted);
    font-size: 12px;
    font-weight: 600;
}

.cart-back-link:hover {
    color: var(--cart-accent);
}

.cart-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cart-accent);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cart-hero-title {
    max-width: 820px;
    margin: 12px 0 16px;
    color: var(--cart-text);
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.04em;
}

/* =========================================================
   MAIN
   ========================================================= */

.cart-main {
    padding: 0 0 58px;
}

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

.cart-section-heading h2 {
    margin: 5px 0 0;
    color: var(--cart-text);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.025em;
}

.cart-items-count {
    color: var(--cart-muted);
    font-size: 12px;
}


/* =========================================================
   CART ITEMS
   ========================================================= */

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px;
    overflow: hidden;
    background: var(--cart-surface);
    border: 1px solid var(--cart-border);
    border-radius: var(--cart-radius);
    box-shadow: 0 3px 14px rgba(22, 31, 38, .035);
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.cart-item:hover {
    border-color: rgba(57, 131, 135, .28);
    box-shadow: var(--cart-shadow);
    transform: translateY(-1px);
}

.cart-item-image-wrap {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #eef0f2;
    border-radius: 10px;
}

.cart-item-image {
    width: 100%;
    height: 100%;
    padding: 7px;
    object-fit: contain;
}

.cart-item-placeholder {
    color: #c3c9ce;
    font-size: 22px;
}

.cart-item-content {
    flex: 1 1 auto;
    min-width: 0;
}

.cart-item-category {
    display: inline-block;
    margin-bottom: 4px;
    color: var(--cart-ui);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cart-item-title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #333;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cart-item-title a {
    color: inherit;
}

.cart-item-title a:hover {
    color: var(--cart-ui);
}

.cart-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    margin-top: 10px;
    color: #858c93;
    font-size: 12px;
}

.cart-item-meta strong {
    color: #626970;
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.cart-item-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #9ca3aa;
    background: transparent;
    border: 1px solid #e7eaed;
    border-radius: 8px;
    transition:
        color .15s ease,
        background .15s ease,
        border-color .15s ease;
}

.cart-item-remove:hover {
    color: var(--cart-accent);
    background: var(--cart-accent-soft);
    border-color: rgba(170, 1, 0, .15);
}

.cart-item-removing {
    opacity: 0;
    transform: translateX(-15px);
}


/* =========================================================
   CART FOOTER
   ========================================================= */

.cart-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--cart-border);
}

.cart-continue-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--cart-ui);
    font-size: 11px;
    font-weight: 650;
}

.cart-continue-link:hover {
    color: var(--cart-ui-dark);
}

.cart-clear-button {
    padding: 0;
    color: #969da4;
    background: transparent;
    border: 0;
    font-size: 10px;
}

.cart-clear-button:hover {
    color: var(--cart-accent);
}


/* =========================================================
   EMPTY
   ========================================================= */

.cart-empty {
    padding: 60px 30px;
    background: #fff;
    border: 1px dashed #dfe3e6;
    border-radius: var(--cart-radius-lg);
    text-align: center;
}

.cart-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    color: var(--cart-ui);
    background: var(--cart-ui-soft);
    border-radius: 50%;
    font-size: 24px;
}

.cart-empty h3 {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
}

.cart-empty p {
    max-width: 480px;
    margin: 0 auto 22px;
    color: var(--cart-muted);
    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   BUTTON
   ========================================================= */

.cart-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 17px;
    color: #fff;
    background: var(--cart-accent);
    border: 1px solid var(--cart-accent);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 650;
}

.cart-btn-primary:hover {
    color: #fff;
    background: var(--cart-accent-dark);
    border-color: var(--cart-accent-dark);
}


/* =========================================================
   CHECKOUT
   ========================================================= */

@media (min-width: 992px) {
    .cart-checkout-sticky {
        position: sticky;
        top: 88px;
    }
}

.cart-checkout-card {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--cart-border);
    border-radius: var(--cart-radius-lg);
    box-shadow: var(--cart-shadow);
}

.cart-checkout-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.cart-checkout-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--cart-accent);
    background: var(--cart-accent-soft);
    border-radius: 11px;
    font-size: 17px;
}

.cart-checkout-top h2 {
    margin: 3px 0 0;
    font-size: 18px;
    font-weight: 700;
}

.cart-checkout-description {
    margin-bottom: 20px;
    color: var(--cart-muted);
    font-size: 12px;
    line-height: 1.55;
}

.cart-field {
    margin-bottom: 15px;
}

.cart-field .form-label {
    margin-bottom: 6px;
    color: #454b50;
    font-size: 11px;
    font-weight: 650;
}

.cart-optional {
    color: #a1a7ad;
    font-size: 9px;
}

.cart-input-wrap {
    position: relative;
}

.cart-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 12px;
    z-index: 2;
    color: #a2a9af;
    font-size: 12px;
    transform: translateY(-50%);
}

.cart-input-wrap .form-control {
    height: 44px;
    padding-left: 36px;
}

.cart-checkout-card .form-control {
    color: #343a40;
    background: #fafbfb;
    border: 1px solid #e3e7e9;
    border-radius: 9px;
    font-size: 14px;
}

.cart-checkout-card .form-control::placeholder {
    color: #a1a7ad;
}

.cart-checkout-card .form-control:hover {
    border-color: #d5dade;
}

.cart-checkout-card .form-control:focus {
    background: #fff;
    border-color: var(--cart-ui);
    box-shadow: 0 0 0 3px rgba(57, 131, 135, .10);
}

.cart-textarea {
    min-height: 78px;
    padding: 11px 12px;
    resize: vertical;
}

.cart-submit-button {
    min-height: 48px;
    margin-top: 4px;
    color: #fff;
    background: var(--cart-accent);
    border: 1px solid var(--cart-accent);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    transition:
        background .15s ease,
        border-color .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}

.cart-submit-button:hover {
    color: #fff;
    background: var(--cart-accent-dark);
    border-color: var(--cart-accent-dark);
    box-shadow: 0 8px 20px rgba(170, 1, 0, .16);
    transform: translateY(-1px);
}

.cart-submit-button:disabled {
    opacity: .65;
    transform: none;
}

.cart-submit-default,
.cart-submit-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.cart-checkout-status {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 10px;
    line-height: 1.45;
    text-align: left;
}

.cart-checkout-status.status-loading {
    color: var(--cart-ui-dark);
    background: var(--cart-ui-soft);
}

.cart-checkout-status.status-success {
    color: #146c43;
    background: #eaf8f1;
}

.cart-checkout-status.status-error {
    color: #8c1a1a;
    background: #fff0f0;
}


/* =========================================================
   HOW IT WORKS
   ========================================================= */

.cart-how {
    padding: 54px 0;
    background: #fff;
    border-top: 1px solid var(--cart-border);
    border-bottom: 1px solid var(--cart-border);
}

.cart-section-heading-center {
    justify-content: center;
    margin-bottom: 28px;
    text-align: center;
}

.cart-how-card {
    position: relative;
    height: 100%;
    padding: 24px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--cart-border);
    border-radius: var(--cart-radius);
}

.cart-how-number {
    position: absolute;
    top: 12px;
    right: 16px;
    color: #edf0f2;
    font-size: 34px;
    font-weight: 800;
}

.cart-how-card > i {
    margin-bottom: 18px;
    color: var(--cart-ui);
    font-size: 22px;
}

.cart-how-card h3 {
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 700;
}

.cart-how-card p {
    margin: 0;
    color: var(--cart-muted);
    font-size: 10px;
    line-height: 1.55;
}


/* =========================================================
   FAQ
   ========================================================= */

.cart-faq {
    padding: 54px 0 70px;
}

.cart-faq-accordion {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--cart-border);
    border-radius: var(--cart-radius);
}

.cart-faq-accordion .accordion-item {
    border: 0;
    border-bottom: 1px solid var(--cart-border-soft);
}

.cart-faq-accordion .accordion-item:last-child {
    border-bottom: 0;
}

.cart-faq-accordion .accordion-button {
    padding: 17px 18px;
    color: #343a40;
    background: #fff;
    box-shadow: none;
    font-size: 16px;
    font-weight: 650;
}

.cart-faq-accordion .accordion-button:not(.collapsed) {
    color: var(--cart-ui);
    background: rgba(57, 131, 135, .035);
}

.cart-faq-accordion .accordion-button:focus {
    box-shadow: none;
}

.cart-faq-accordion .accordion-body {
    padding: 18px;
    color: var(--cart-muted);
    font-size: 16px;
    line-height: 1.65;
}


/* =========================================================
   SUCCESS
   ========================================================= */

.success-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 22, 27, .62);
    backdrop-filter: blur(7px);
}

.success-dialog {
    width: min(100%, 520px);
    padding: 42px 34px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .18);
    text-align: center;
    animation: cartSuccessShow .32s ease;
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    color: #fff;
    background: var(--cart-success);
    border-radius: 50%;
    font-size: 26px;
}

.success-dialog h2 {
    margin: 7px 0 10px;
    font-size: 24px;
    font-weight: 750;
}

.success-dialog p {
    max-width: 410px;
    margin: 0 auto 22px;
    color: var(--cart-muted);
    font-size: 12px;
    line-height: 1.65;
}

@keyframes cartSuccessShow {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {

    .cart-hero {
        padding: 38px 0 34px;
    }

    .cart-main {
        padding: 38px 0 48px;
    }

    .cart-checkout-card {
        margin-top: 6px;
    }

}


@media (max-width: 767.98px) {

    .cart-trust-item {
        align-items: flex-start;
    }

    .cart-trust-item span {
        display: none;
    }

    .cart-item {
        align-items: flex-start;
    }

    .cart-item-image-wrap {
        width: 62px;
        height: 62px;
    }

    .cart-item-actions {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .cart-item-content {
        padding-right: 28px;
    }

    .cart-list-footer {
        align-items: flex-start;
        flex-direction: column;
    }

}


@media (max-width: 575.98px) {

    .cart-navbar {
        min-height: 58px;
    }

    .cart-brand {
        font-size: 11px;
    }

    .cart-brand-mark {
        width: 31px;
        height: 31px;
    }

    .cart-hero-title {
        font-size: 29px;
    }

    .cart-hero-text {
        font-size: 13px;
    }

    .cart-trust-strip {
        padding: 14px 0;
    }

    .cart-trust-item strong {
        font-size: 9px;
    }

    .cart-section-heading {
        align-items: flex-start;
    }

    .cart-section-heading h2 {
        font-size: 19px;
    }

    .cart-item {
        gap: 11px;
        padding: 12px;
    }

    .cart-item-image-wrap {
        width: 54px;
        height: 54px;
    }

    .cart-checkout-card {
        padding: 20px;
    }

    .cart-how,
    .cart-faq {
        padding: 42px 0;
    }

}

/* =========================================================
   CONTACT CHANNEL
   ========================================================= */

.cart-channel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.cart-channel-chip {
    margin: 0;
    cursor: pointer;
}

.cart-channel-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cart-channel-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    min-height: 34px;
    padding: 6px 11px;

    color: #667178;
    background: #fff;

    border: 1px solid #dfe5e8;
    border-radius: 8px;

    font-size: 11px;
    font-weight: 600;

    transition:
        border-color .15s ease,
        color .15s ease,
        background-color .15s ease;
}

.cart-channel-chip:hover span {
    color: #398387;
    border-color: rgba(57, 131, 135, .4);
}

.cart-channel-chip input:checked + span {
    color: #398387;
    background: rgba(57, 131, 135, .07);
    border-color: #398387;
}

.cart-channel-chip input:focus-visible + span {
    outline: 2px solid rgba(57, 131, 135, .2);
    outline-offset: 2px;
}


/* =========================================================
   CHANNEL INPUT
   ========================================================= */

.cart-channel-input-wrap {
    position: relative;
}

.cart-channel-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 14px;

    z-index: 2;

    color: #929ca1;
    font-size: 12px;

    transform: translateY(-50%);

    pointer-events: none;
}


/* =========================================================
   SAVE CONTACTS
   ========================================================= */

.cart-save-contacts {
    margin: -2px 0 20px;
}

.cart-save-contacts .form-check {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 0;
}

.cart-save-contacts .form-check-input {
    flex: 0 0 auto;
    margin-top: 3px;
}

.cart-save-contacts .form-check-label {
    color: #939a9e;
    font-size: 11px;
    font-weight: 400;
    cursor: pointer;
    margin: auto 0;
}

.cart-save-hint {
    margin-top: 4px;
    padding-left: 23px;

    color: #9aa3a8;
    font-size: 9px;
    line-height: 1.45;
}


/* =========================================================
   PRIVACY
   ========================================================= */

.cart-privacy-consent {
    margin-top: 14px;
}

.cart-privacy-consent .form-check {
    display: flex;
    align-items: flex-start;
    gap: 7px;

    margin: 0;
}

.cart-privacy-consent .form-check-input {
    flex: 0 0 auto;
    margin-top: 3px;
}

.cart-privacy-consent .form-check-label {
    color: #7a858b;

    font-size: 9px;
    line-height: 1.5;

    cursor: pointer;
}

.cart-privacy-consent a {
    color: #398387;
    font-weight: 600;
    text-decoration: none;
}

.cart-privacy-consent a:hover {
    text-decoration: underline;
}

.cart-privacy-consent.has-error .form-check-label {
    color: #8f3434;
}

.cart-privacy-consent.has-error .form-check-input {
    border-color: #aa0100;
}

.cart-consent-error {
    margin-top: 5px;
    padding-left: 23px;
    font-size: 9px;
}

.cart-privacy-consent.has-error .cart-consent-error {
    display: block;
}