/* FC Checkout App 0.1.25
 * Structural checkout colour surfaces.
 * FluentCart remains the checkout/payment engine and owns all native column,
 * shipping, payment/Square, responsive and height behaviour.
 */

.fc-checkout-app,
.fc-checkout-app * {
    box-sizing: border-box;
}

/* Preserve the established FC CCart placement/width contract. These are shell
 * sizing guards only; no FluentCart pane width, flex basis, gap or height is set. */
.fc-checkout-app-bricks-element {
    width: 100% !important;
    inline-size: 100% !important;
    max-width: 100vw !important;
    max-inline-size: 100vw !important;
    min-width: 0 !important;
    min-inline-size: 0 !important;
    align-self: stretch !important;
    box-sizing: border-box;
}

.fc-checkout-app {
    width: 100%;
    inline-size: 100%;
    max-width: 100vw;
    max-inline-size: 100vw;
    min-width: 0;
    min-inline-size: 0;
    position: relative;
    isolation: isolate;
    background-color: var(--fc-checkout-app-left-bg, #D4EBE1);
    /* 0.1.25 — surface spacing belongs to the FC CCart shell itself. Nothing
     * is inserted between FluentCart's native wrapper and checkout root. */
    padding-block-start: var(--fc-checkout-app-surface-top-desktop, 0px);
    padding-block-end: var(--fc-checkout-app-surface-bottom-desktop, 24px);
}

/* 0.1.23 — real, server-rendered colour surfaces. The split is represented by
 * two actual sibling elements, not a gradient and not a JS pixel coordinate.
 *
 * FluentCart's centered rail is max 1240px. Its native 55/45 flex row with a
 * 30px gap places the gap midpoint approximately 5% of the rail to the right of
 * center. `min(5%, 60.5px)` mirrors that paint relationship while capping at the
 * established 1240px rail. This affects background paint only. */
.fc-checkout-app__surfaces {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: grid;
    grid-template-columns: calc(50% + min(5%, 60.5px)) minmax(0, 1fr);
    pointer-events: none;
    overflow: hidden;
}

.fc-checkout-app__surface {
    min-width: 0;
    min-height: 100%;
}

.fc-checkout-app__surface--left {
    background-color: var(--fc-checkout-app-left-bg, #D4EBE1);
}

.fc-checkout-app__surface--right {
    background-color: var(--fc-checkout-app-right-bg, #EEF4F1);
}

/* The Bricks parent still receives the exact width guards required by the live
 * layout, but FC CCart no longer changes its background. Colour ownership is
 * entirely inside .fc-checkout-app. */
.fc-checkout-app-canvas > .brxe-container {
    width: 100% !important;
    inline-size: 100% !important;
    max-width: 100% !important;
    max-inline-size: 100% !important;
    min-width: 0 !important;
    min-inline-size: 0 !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
}

/* FC CCart owns only the centred maximum-width content rail. */
.fc-checkout-app__save-host,
.fc-checkout-app__native {
    width: 100%;
    inline-size: 100%;
    max-width: 1240px;
    max-inline-size: 1240px;
    min-width: 0;
    min-inline-size: 0;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.fc-checkout-app__save-host {
    z-index: 2;
    min-height: 0;
}

.fc-checkout-app__native {
    z-index: 1;
}

/* FluentCart can give its non-card structural shells a white background during
 * hydration. Neutralize only those shells permanently; the actual native left
 * and right panes below receive their own structural surface colours. No JS
 * class is needed for this rule, so async rerenders cannot expose a white rail. */
.fc-checkout-app__native,
.fc-checkout-app .fluent-cart-checkout-page,
.fc-checkout-app [data-fluent-cart-checkout-page],
.fc-checkout-app form.fct_checkout,
.fc-checkout-app [data-fluent-cart-checkout-page-checkout-form],
.fc-checkout-app .fct_checkout_inner {
    background-color: transparent !important;
    background-image: none !important;
}

/* FluentCart's native panes stay paint-transparent so the structural FC CCart
 * surfaces show through. Do not assign payment, Square, form or summary geometry. */
.fc-checkout-app .fct_checkout_form,
.fc-checkout-app .fct_checkout_summary {
    background-color: transparent !important;
    background-image: none !important;
}

/* Shrink-safety only. Do not assign native column widths or flex rules here. */
.fc-checkout-app .fluent-cart-checkout-page,
.fc-checkout-app [data-fluent-cart-checkout-page],
.fc-checkout-app form.fct_checkout,
.fc-checkout-app .fct_checkout_inner,
.fc-checkout-app .fct_checkout_form,
.fc-checkout-app .fct_checkout_summary {
    min-width: 0;
    min-inline-size: 0;
    max-width: 100%;
    max-inline-size: 100%;
    box-sizing: border-box;
}

/* JavaScript now supplies state only. It does not calculate a divider. When
 * FluentCart stacks, or Order Summary is collapsed, the right surface is simply
 * removed and the left surface fills FC CCart. */
.fc-checkout-app-canvas--stacked .fc-checkout-app__surfaces,
.fc-checkout-app-canvas--summary-collapsed .fc-checkout-app__surfaces {
    grid-template-columns: 1fr 0;
}

.fc-checkout-app-canvas--stacked .fc-checkout-app__surface--right,
.fc-checkout-app-canvas--summary-collapsed .fc-checkout-app__surface--right {
    display: none;
}

.fc-checkout-app-canvas--stacked .fc-checkout-app .fct_checkout_summary,
.fc-checkout-app-canvas--summary-collapsed .fc-checkout-app .fct_checkout_summary {
    background-color: transparent !important;
    background-image: none !important;
}

.fc-checkout-app-canvas--stacked .fc-checkout-app .fct_checkout_inner {
    margin-bottom: 0 !important;
}

/* Neutralize only retired FC Cart gradient artifacts if stale cached CSS is
 * present. FC CCart itself no longer paints a gradient anywhere. */
body.fc-checkout-app-mode :is(html, body, main).fc-cart-checkout-canvas,
body.fc-checkout-app-mode .fc-checkout-app :is(.fluent-cart-checkout-page, .fct_checkout_inner) {
    background-image: none !important;
}

.fc-checkout-app .fct_checkout_inner {
    position: relative;
    box-sizing: border-box;
}

.fc-checkout-app .fct_checkout_inner::before,
.fc-checkout-app .fct_checkout_inner::after {
    content: none !important;
    display: none !important;
}

/* Existing live appearance values, now scoped to the new app instead of FC
 * Cart's global checkout stylesheet. */
.fc-checkout-app #billing_personal_information_section,
.fc-checkout-app .fct_address_wrapper,
.fc-checkout-app .fct_checkout_shipping_methods .fct_shipping_methods_list,
.fc-checkout-app .fct_summary_box > .fct_checkout_form_section {
    border-color: var(--fc-checkout-app-border, #0B6B57) !important;
}

.fc-checkout-app #billing_personal_information_section > .fct_form_section_body > .fct_checkout_input_group {
    border-radius: 8px;
    box-shadow: 0 0 0 1px var(--fc-checkout-app-border, #0B6B57);
}

.fc-checkout-app .fct_address_wrapper {
    background: var(--fc-checkout-app-saved-address-bg, #F7FAF9) !important;
}

.fc-checkout-app .fct_coupon .fct_coupon_toggle {
    background: var(--fc-checkout-app-coupon-bg, #F2F8F6) !important;
}

.fc-checkout-app .fc-checkout-app-place-order {
    background-color: var(--fc-checkout-app-place-order-bg, #014D41) !important;
    background-image: none !important;
    color: var(--fc-checkout-app-place-order-text, #FFFFFF) !important;
    border-color: var(--fc-checkout-app-place-order-bg, #014D41) !important;
    box-shadow: none !important;
}

.fc-checkout-app .fc-checkout-app-place-order:hover,
.fc-checkout-app .fc-checkout-app-place-order:focus-visible {
    background-color: var(--fc-checkout-app-place-order-hover-bg, #003F36) !important;
    color: var(--fc-checkout-app-place-order-text, #FFFFFF) !important;
    border-color: var(--fc-checkout-app-place-order-hover-bg, #003F36) !important;
}

[data-fluent-cart-checkout-page-form-address-modal-body] .fct_address_modal_inner {
    border: 2px solid var(--fc-checkout-app-border, #0B6B57) !important;
}

[data-fluent-cart-checkout-page-form-address-modal-body] .fct_address_selector.selected {
    border-color: var(--fc-checkout-app-border, #0B6B57) !important;
    box-shadow: 0 0 0 1px var(--fc-checkout-app-border, #0B6B57);
}

[data-fluent-cart-checkout-page-form-address-modal-body] .fct_address_selector.selected .fct_address_selector_icon {
    color: var(--fc-checkout-app-border, #0B6B57) !important;
}

[data-fluent-cart-checkout-page-form-address-modal-apply-button],
[data-fluent-cart-checkout-page-form-address-show-add-new-modal-submit-button] {
    background: var(--fc-checkout-app-address-button-bg, #0B6B57) !important;
    color: var(--fc-checkout-app-address-button-text, #FFFFFF) !important;
    border-color: var(--fc-checkout-app-address-button-bg, #0B6B57) !important;
}

[data-fluent-cart-checkout-page-form-address-modal-apply-button]:hover,
[data-fluent-cart-checkout-page-form-address-show-add-new-modal-submit-button]:hover,
[data-fluent-cart-checkout-page-form-address-modal-apply-button]:focus-visible,
[data-fluent-cart-checkout-page-form-address-show-add-new-modal-submit-button]:focus-visible {
    background: var(--fc-checkout-app-address-button-hover-bg, #095947) !important;
    border-color: var(--fc-checkout-app-address-button-hover-bg, #095947) !important;
}

[data-fluent-cart-checkout-page-form-address-show-add-new-modal-cancel-button] {
    background: var(--fc-checkout-app-cancel-button-bg, #F5F6F7) !important;
    color: var(--fc-checkout-app-cancel-button-text, #565865) !important;
    border-color: var(--fc-checkout-app-cancel-button-border, #D6DAE1) !important;
}

/* 0.1.32 — checkout Terms reader aligned to the audited FCACR login legal-reader contract.
 * Checkbox + agreement copy + Read T&C stay on one line; Read T&C is a text link,
 * not a boxed button. The close control uses the same fixed square border and
 * clockwise inner-X motion as FCACR My Account. */
.fc-checkout-app .fct_checkout_agree_terms.fc-checkout-app-terms-host {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.fc-checkout-app .fct_checkout_agree_terms.fc-checkout-app-terms-host > div,
.fc-checkout-app .fc-checkout-app-terms-row {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.fc-checkout-app .fc-checkout-app-terms-row {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    white-space: nowrap !important;
}

.fc-checkout-app .fc-checkout-app-terms-row > input[type="checkbox"] {
    flex: 0 0 auto !important;
    margin-right: 8px !important;
}

.fc-checkout-app .fc-checkout-app-terms {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    margin-left: 8px;
    vertical-align: middle;
    white-space: nowrap;
}

.fc-checkout-app .fc-checkout-app-terms__toggle {
    display: inline !important;
    appearance: none;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: auto !important;
    height: auto !important;
    font: inherit !important;
    line-height: inherit !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    cursor: pointer;
}

.fc-checkout-app .fc-checkout-app-terms__panel {
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
    padding: 0;
    border: 1px solid var(--fc-checkout-app-border, #0B6B57);
    border-radius: 7px;
    background: var(--fc-checkout-app-terms-bg, #F3F8F5);
    box-sizing: border-box;
    overflow: hidden;
}

.fc-checkout-app .fc-checkout-app-terms__panel[hidden] {
    display: none !important;
}

.fc-checkout-app .fc-checkout-app-terms__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 60px;
    padding: 12px 52px 12px 16px;
    border-bottom: 1px solid rgba(11, 107, 87, .22);
    box-sizing: border-box;
}

.fc-checkout-app .fc-checkout-app-terms__title {
    font-weight: 700;
    letter-spacing: .02em;
}

.fc-checkout-app .fc-checkout-app-terms__close {
    position: absolute;
    top: 3px;
    right: 3px;
    box-sizing: border-box !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    place-items: center !important;
    appearance: none;
    border: 1px solid rgba(11, 107, 87, .32) !important;
    border-radius: 2px !important;
    background: rgba(255,255,255,.55) !important;
    color: var(--fc-checkout-app-border, #0B6B57) !important;
    box-shadow: none !important;
    cursor: pointer;
    overflow: hidden !important;
    transform: none !important;
}

.fc-checkout-app .fc-checkout-app-terms__close::before,
.fc-checkout-app .fc-checkout-app-terms__close::after {
    content: none !important;
    display: none !important;
}

.fc-checkout-app .fc-checkout-app-terms__close-glyph {
    position: relative !important;
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    background: transparent !important;
    transform: rotate(0deg) !important;
    transform-origin: 50% 50% !important;
    transition: transform .24s ease !important;
    animation: none !important;
    pointer-events: none !important;
    overflow: visible !important;
    will-change: transform !important;
}

.fc-checkout-app .fc-checkout-app-terms__close-glyph::before,
.fc-checkout-app .fc-checkout-app-terms__close-glyph::after {
    content: '' !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: currentColor !important;
    transform-origin: 50% 50% !important;
}

.fc-checkout-app .fc-checkout-app-terms__close-glyph::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

.fc-checkout-app .fc-checkout-app-terms__close-glyph::after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.fc-checkout-app .fc-checkout-app-terms__close.is-pressed > .fc-checkout-app-terms__close-glyph {
    transform: rotate(180deg) !important;
}

/* 7.0.7 — Checkout legal-reader gutter parity, audited against FCACR login T&C.
 * The login reader uses 18px top / 24px bottom breathing room. Keep these as
 * TRUE non-scrolling gutters so copy never touches the divider or lower border.
 * Preserve dots, inline agreement row, close animation, legal content source,
 * and all checkout/payment behavior. */
.fc-checkout-app .fc-checkout-app-terms__body-wrap {
    position: relative;
    height: 430px;
    padding: 18px 0 24px;
    box-sizing: border-box;
    overflow: hidden;
}

.fc-checkout-app .fc-checkout-app-terms__body {
    width: 100%;
    height: 100%;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    scrollbar-width: none;
    white-space: pre-wrap;
    line-height: 1.5;
    padding: 0 48px 0 16px;
    box-sizing: border-box;
    outline: none;
}

.fc-checkout-app .fc-checkout-app-terms__body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.fc-checkout-app .fc-checkout-app-terms__dots {
    position: absolute;
    top: 18px;
    right: 12px;
    bottom: 24px;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.fc-checkout-app .fc-checkout-app-terms__dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(11, 107, 87, .48);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.fc-checkout-app .fc-checkout-app-terms__dot.is-active {
    border-color: var(--fc-checkout-app-border, #0B6B57);
    background: var(--fc-checkout-app-border, #0B6B57);
}

@media (max-width: 767px) {
    .fc-checkout-app .fc-checkout-app-terms__body-wrap {
        height: 390px;
        padding-top: 18px;
        padding-bottom: 24px;
    }

    .fc-checkout-app .fc-checkout-app-terms__body {
        max-height: none;
        padding-right: 42px;
    }
}

/* FC CCart viewport surface spacing. These are shell padding values only;
 * the native FluentCart checkout remains auto-height and owns its breakpoints. */
@media (max-width: 1024px) {
    .fc-checkout-app {
        padding-block-start: var(--fc-checkout-app-surface-top-tablet, 0px);
        padding-block-end: var(--fc-checkout-app-surface-bottom-tablet, 24px);
    }
}

/* FluentCart stacks checkout at its container breakpoint. Keep a configurable
 * mobile bottom gap; Square is free to expand/retract above it. */
@media (max-width: 767px) {
    .fc-checkout-app {
        padding-block-start: var(--fc-checkout-app-surface-top-mobile, 0px);
        padding-block-end: var(--fc-checkout-app-surface-bottom-mobile, 24px);
    }
    .fc-checkout-app__surfaces {
        grid-template-columns: 1fr 0;
    }

    .fc-checkout-app__surface--right {
        display: none;
    }

    /* On true mobile, release the desktop rail gutter. FluentCart's own page
     * gets the established 7px edge clearance below. */
    .fc-checkout-app__save-host,
    .fc-checkout-app__native {
        width: 100%;
        inline-size: 100%;
        max-width: 100%;
        max-inline-size: 100%;
    }

    .fc-checkout-app .fluent-cart-checkout-page,
    .fc-checkout-app [data-fluent-cart-checkout-page] {
        padding-left: 7px !important;
        padding-right: 7px !important;
    }

    .fc-checkout-app .fct_checkout_inner {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .fc-checkout-app .fct_checkout_inner > .fct_checkout_summary {
        /* Mobile is stacked too: do not resurrect the retired right-column
         * paint underneath the summary card. */
        background: transparent !important;
    }
}


/* 0.1.26 — Empty-cart checkout safety.
 * When FluentCart is in its native empty-cart state, FC CCart must not paint a
 * split checkout canvas or mount Save Cart above an empty checkout form. */
.fc-checkout-app.fc-checkout-app--empty {
    background-color: var(--fc-checkout-app-left-bg, #D4EBE1) !important;
}

.fc-checkout-app.fc-checkout-app--empty .fc-checkout-app__surfaces,
.fc-checkout-app-canvas--empty .fc-checkout-app__surfaces {
    grid-template-columns: 1fr 0 !important;
}

.fc-checkout-app.fc-checkout-app--empty .fc-checkout-app__surface--right,
.fc-checkout-app-canvas--empty .fc-checkout-app__surface--right,
.fc-checkout-app.fc-checkout-app--empty .fc-checkout-app__save-host {
    display: none !important;
}

.fc-checkout-app.fc-checkout-app--empty .fc-checkout-app__native {
    z-index: 1;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 16px;
    background: transparent !important;
}

.fc-checkout-app.fc-checkout-app--empty .fc-checkout-app__native :where(svg, img) {
    max-width: 164px;
    max-height: 164px;
    width: auto;
    height: auto;
}

/* 0.1.27 — Compact empty-cart state.
 * Empty cart is not an active checkout. Keep the message clean and compact,
 * without the large FC CCart checkout canvas or Save Cart surface. */
.fc-checkout-app-canvas--empty,
.fc-checkout-app-canvas--empty > .brxe-container {
    background: transparent !important;
    min-height: 0 !important;
}

.fc-checkout-app.fc-checkout-app--empty {
    background: transparent !important;
    padding: 32px 16px !important;
    min-height: 0 !important;
}

.fc-checkout-app.fc-checkout-app--empty .fc-checkout-app__surfaces {
    display: none !important;
}

.fc-checkout-app.fc-checkout-app--empty .fc-checkout-app__save-host {
    display: none !important;
}

.fc-checkout-app.fc-checkout-app--empty .fc-checkout-app__native {
    width: min(100%, 520px) !important;
    max-width: 520px !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 30px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border: 1px solid var(--fc-checkout-app-border, #0B6B57) !important;
    border-radius: 7px !important;
    background: #F7FAF9 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .06) !important;
}

.fc-checkout-app.fc-checkout-app--empty .fc-checkout-app__native :where(svg, img) {
    max-width: 96px !important;
    max-height: 96px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto 12px !important;
}

.fc-checkout-app.fc-checkout-app--empty .fc-checkout-app__native :where(a, button) {
    color: var(--fc-checkout-app-border, #0B6B57) !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}

/* 0.1.31 — Edit cart items: refined icon and hidden whenever Order Summary is collapsed. */
.fc-checkout-app .fc-checkout-app-summary-with-edit {
    position: relative;
}

.fc-checkout-app .fc-checkout-app-edit-cart {
    position: absolute;
    top: 6px;
    right: 6px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #014D41;
    text-decoration: none;
    line-height: 1;
    z-index: 2;
}

.fc-checkout-app .fc-checkout-app-edit-cart:hover,
.fc-checkout-app .fc-checkout-app-edit-cart:focus-visible {
    color: #014D41;
    text-decoration: none;
}

.fc-checkout-app .fc-checkout-app-edit-cart__icon {
    display: block;
    width: 24px;
    height: 24px;
}

.fc-checkout-app .fc-checkout-app-edit-cart span {
    display: block;
    font-size: 8px;
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
}

.fc-checkout-app-canvas--summary-collapsed .fc-checkout-app-edit-cart {
    display: none !important;
}


/* 0.1.33 — checkout T&C parity correction.
 * Preserve all existing legal-reader features while matching the FCACR login
 * reader's header rhythm, divider, checkbox alignment, and close motion.
 * The close square remains fixed; only the inner X turns clockwise and it ends
 * as an X (90deg), never as a plus. */
.fc-checkout-app .fc-checkout-app-terms-row {
    align-items: center !important;
    line-height: 1.35 !important;
}

.fc-checkout-app .fc-checkout-app-terms-row > input[type="checkbox"] {
    flex: 0 0 16px !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    margin: 0 8px 0 0 !important;
    padding: 0 !important;
    align-self: center !important;
    vertical-align: middle !important;
    transform: none !important;
}

.fc-checkout-app .fc-checkout-app-terms {
    align-self: center !important;
    margin-left: 8px !important;
    line-height: inherit !important;
}

.fc-checkout-app .fc-checkout-app-terms__head {
    min-height: 44px !important;
    padding: 13px 48px 10px 18px !important;
    border-bottom: 1px solid rgba(11, 107, 87, .24) !important;
}

.fc-checkout-app .fc-checkout-app-terms__title {
    font-size: 16px !important;
    line-height: 1.2 !important;
}

/* 7.0.9 — CHECKOUT LEGAL CLOSE CONTRACT.
 * Source of truth: FCACR Welcome Back Terms reader. Keep the button/border fixed;
 * rotate only the inner glyph with the same 240ms ease + 180deg pressed state, ending as an X.
 * Do not replace with a separate keyframe/Web Animation path. */
.fc-checkout-app .fc-checkout-app-terms__close-glyph {
    transform: rotate(0deg) !important;
    transform-origin: 50% 50% !important;
    transition: transform .24s ease !important;
    animation: none !important;
}

.fc-checkout-app .fc-checkout-app-terms__close.is-pressed > .fc-checkout-app-terms__close-glyph {
    transform: rotate(180deg) !important;
    animation: none !important;
}

.fc-checkout-app .fc-checkout-app-terms__close.is-pressed {
    transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .fc-checkout-app .fc-checkout-app-terms__close-glyph {
        transition: none !important;
    }
}


/* 7.0.10 — CHECKOUT T&C CLOSE FINAL-ANGLE LOCK.
 * 180deg is intentional: the glyph begins as an X and must finish as an X.
 * 135deg produces a plus sign and must not be reintroduced. Border remains fixed. */


/* 7.0.11 — DESIGN / REGRESSION NOTE
 * Checkout Read T&C close motion is owned by the JS runtime contract copied from
 * FCACR Welcome Back Terms. Do not replace it with a checkout-only keyframe, Web
 * Animation, alternate angle, or immediate hide. The square stays fixed; only the
 * inner X turns clockwise 180deg over 240ms and the pane closes after that motion.
 * Preserve the legal pane, agreement row, gutters, dots, content, and checkout flow. */


/* 7.0.12 — FluentCRM email/SMS signup above Place Order.
 * DESIGN NOTE: consent stays optional/unselected. SMS uses billing phone; no second phone field.
 * Custom icon images may change from admin, but storefront geometry stays compact. */
.fc-checkout-app .fc-checkout-app-marketing{margin:10px 0 8px;display:block;width:100%;box-sizing:border-box}
.fc-checkout-app .fc-checkout-app-marketing__choices{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.fc-checkout-app .fc-checkout-app-marketing__choice{appearance:none;display:inline-flex;align-items:center;gap:6px;min-height:30px;margin:0;padding:4px 9px;border:1px solid color-mix(in srgb,var(--fc-checkout-app-border,#0B6B57) 38%,transparent);border-radius:6px;background:rgba(255,255,255,.58);color:#12312b;font:600 11px/1.1 inherit;box-shadow:none;cursor:pointer}
.fc-checkout-app .fc-checkout-app-marketing__choice:hover,.fc-checkout-app .fc-checkout-app-marketing__choice.is-open{border-color:var(--fc-checkout-app-border,#0B6B57)}
.fc-checkout-app .fc-checkout-app-marketing__choice.is-selected{background:color-mix(in srgb,var(--fc-checkout-app-border,#0B6B57) 9%,#fff);border-color:var(--fc-checkout-app-border,#0B6B57)}
.fc-checkout-app .fc-checkout-app-marketing__icon{width:17px;height:17px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 17px}
.fc-checkout-app .fc-checkout-app-marketing__icon svg,.fc-checkout-app .fc-checkout-app-marketing__icon img{display:block;width:17px;height:17px;object-fit:contain}
.fc-checkout-app .fc-checkout-app-marketing__detail{margin-top:7px;padding:9px 10px;border:1px solid color-mix(in srgb,var(--fc-checkout-app-border,#0B6B57) 28%,transparent);border-radius:6px;background:rgba(255,255,255,.42);font:400 9px/1.45 inherit;color:#203a35}
.fc-checkout-app .fc-checkout-app-marketing__detail[hidden]{display:none!important}
.fc-checkout-app .fc-checkout-app-marketing__consent{display:grid;grid-template-columns:14px minmax(0,1fr);gap:7px;align-items:start;margin:0;cursor:pointer}
.fc-checkout-app .fc-checkout-app-marketing__consent input{width:14px!important;height:14px!important;min-width:14px!important;margin:1px 0 0!important}
.fc-checkout-app .fc-checkout-app-marketing__billing-note{margin:5px 0 0 21px;font-size:8px;opacity:.78}
.fc-checkout-app .fc-checkout-app-marketing__legal{margin:5px 0 0 21px;font-size:8px}
.fc-checkout-app .fc-checkout-app-marketing__legal a{color:inherit;text-decoration:underline;text-underline-offset:2px}


/* 7.0.14 — CONSENT GROUP DESIGN / REGRESSION NOTE
 * Required checkout T&C and optional FluentCRM Email/SMS preferences are one compact
 * visual area but remain separate legal consents. IMPORTANT: marketing is a SIBLING of
 * .fct_checkout_agree_terms, never a child. FluentCart owns/re-renders the terms host.
 * Mounting marketing inside it causes the controls to disappear after checkout updates.
 */
.fc-checkout-app .fc-checkout-app-consent-anchor{margin-bottom:0!important}
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms{
  margin:4px 0 8px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  width:100%!important;
}
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__choices{gap:6px!important}
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__choice{
  min-height:26px!important;
  padding:3px 7px!important;
  border-radius:5px!important;
  font-size:10px!important;
}
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__icon,
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__icon svg,
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__icon img{
  width:14px!important;height:14px!important;flex-basis:14px!important;
}
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__detail{
  margin:4px 0 0!important;
  padding:3px 0 1px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  font-size:9px!important;
}
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__consent{
  grid-template-columns:14px minmax(0,1fr)!important;gap:6px!important;align-items:start!important;
}
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__billing-note,
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__legal{margin-left:20px!important}


/* 7.0.15 — MARKETING CHOICE CLARITY / REGRESSION NOTE
 * A bare envelope/phone icon is ambiguous. Keep the compact "Stay connected" context
 * and explicit channel labels visible whenever marketing is enabled. Email and SMS are
 * choices only; neither is consent until its independent checkbox is checked. SMS may
 * still be disabled in FC Cart settings. Backend icon previews remain intentionally tiny.
 */
.fc-checkout-app .fc-checkout-app-marketing__intro{
  display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;margin:0 0 5px;color:#203a35
}
.fc-checkout-app .fc-checkout-app-marketing__intro strong{font-size:11px;line-height:1.2;font-weight:700}
.fc-checkout-app .fc-checkout-app-marketing__intro span{font-size:9px;line-height:1.3;opacity:.78}
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__choice{
  font-weight:600!important;
}


/* 7.0.16 — STAY CONNECTED CARD / REGRESSION NOTE
 * Keep optional marketing preferences in their own compact box immediately ABOVE the
 * required T&C row. It must remain a sibling of FluentCart-owned terms markup. Do not
 * merge marketing consent with T&C consent. Hover/open states must remain in the site's
 * teal theme (never inherit a black/global button hover). SMS/email consent checkbox
 * must align to the first line of disclosure copy. Keep admin-configured icons intact. */
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms{
  margin:0 0 7px!important;
  padding:6px 8px!important;
  border:1px solid color-mix(in srgb,var(--fc-checkout-app-border,#0B6B57) 34%,transparent)!important;
  border-radius:7px!important;
  background:rgba(255,255,255,.32)!important;
  width:100%!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  gap:7px 9px!important;
  flex-wrap:wrap!important;
}
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__intro{
  display:inline-flex!important;
  align-items:baseline!important;
  gap:6px!important;
  flex-wrap:wrap!important;
  margin:0!important;
  color:#203a35!important;
}
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__intro strong{
  font-size:10px!important;line-height:1.15!important;font-weight:700!important;
}
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__intro span{
  font-size:8px!important;line-height:1.2!important;opacity:.75!important;
}
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__choices{
  display:inline-flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important;margin:0!important;
}
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__choice,
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__choice:hover,
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__choice:focus,
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__choice:focus-visible{
  min-height:24px!important;
  padding:2px 7px!important;
  border:1px solid color-mix(in srgb,var(--fc-checkout-app-border,#0B6B57) 48%,transparent)!important;
  border-radius:5px!important;
  background:rgba(255,255,255,.60)!important;
  color:#0b5f50!important;
  font-size:9px!important;
  font-weight:600!important;
  box-shadow:none!important;
  outline:none!important;
  filter:none!important;
}
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__choice:hover,
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__choice.is-open,
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__choice.is-selected{
  background:color-mix(in srgb,var(--fc-checkout-app-border,#0B6B57) 10%,#fff)!important;
  border-color:var(--fc-checkout-app-border,#0B6B57)!important;
  color:#084f43!important;
}
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__detail{
  flex:1 0 100%!important;
  width:100%!important;
  margin:0!important;
  padding:4px 0 0!important;
  border:0!important;
  background:transparent!important;
  font-size:9px!important;
}
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__consent{
  display:grid!important;
  grid-template-columns:14px minmax(0,1fr)!important;
  gap:6px!important;
  align-items:start!important;
  margin:0!important;
}
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__consent input{
  width:14px!important;height:14px!important;min-width:14px!important;
  margin:0!important;padding:0!important;align-self:start!important;transform:none!important;
}
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__consent span{
  display:block!important;line-height:1.4!important;margin:0!important;padding:0!important;
}
.fc-checkout-app .fc-checkout-app-consent-anchor{margin-top:0!important;margin-bottom:0!important}
@media (max-width:640px){
  .fc-checkout-app .fc-checkout-app-marketing--paired-with-terms{padding:6px 7px!important;gap:6px!important}
  .fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__intro{flex:1 0 100%!important}
}

/* 7.0.17 — STAY CONNECTED HIERARCHY / REGRESSION NOTE
 * Keep the optional marketing card visually clear rather than compressed into one row:
 * 1) Stay connected title on its own top line;
 * 2) helper copy directly below;
 * 3) Email/SMS choices on the next line.
 * The card remains compact, sits above T&C, and all existing consent/integration behavior stays intact. */
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms{
  display:block!important;
  padding:8px 10px!important;
}
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__intro{
  display:block!important;
  margin:0!important;
}
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__intro strong{
  display:block!important;
  font-size:11px!important;
  line-height:1.2!important;
  margin:0!important;
}
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__intro span{
  display:block!important;
  font-size:9px!important;
  line-height:1.3!important;
  margin:2px 0 0!important;
}
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__choices{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  flex-wrap:wrap!important;
  margin:6px 0 0!important;
}
.fc-checkout-app .fc-checkout-app-marketing--paired-with-terms .fc-checkout-app-marketing__detail{
  margin-top:6px!important;
}
@media (max-width:640px){
  .fc-checkout-app .fc-checkout-app-marketing--paired-with-terms{padding:8px 9px!important}
}


/* 0.1.45 — Order Summary discount-lock module.
 * UI relocation only: rewards/coupon lock messaging belongs beside order totals,
 * while FluentCart continues to own coupon, pricing, shipping and payment logic. */
.fc-checkout-app.fc-checkout-app-discount-lock-active .fcacr-save-login-reward-note {
    display: none !important;
}

.fc-checkout-app .fc-checkout-discount-lock {
    display: block !important;
    width: 100% !important;
    margin: 12px 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    color: #12312b !important;
    font-family: inherit !important;
}

.fc-checkout-app .fc-checkout-discount-lock__inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 10px !important;
    border: 1px solid color-mix(in srgb, var(--fc-checkout-app-border, #0B6B57) 28%, transparent) !important;
    border-radius: 7px !important;
    background: color-mix(in srgb, var(--fc-checkout-app-border, #0B6B57) 4%, #FFFFFF) !important;
    box-sizing: border-box !important;
}

.fc-checkout-app .fc-checkout-discount-lock h4 {
    margin: 0 !important;
    padding: 0 !important;
    color: #0a322c !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.fc-checkout-app .fc-checkout-discount-lock__choices {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.fc-checkout-app .fc-checkout-discount-lock__choice,
.fc-checkout-app .fc-checkout-discount-lock__success,
.fc-checkout-app .fc-checkout-discount-lock__note,
.fc-checkout-app .fc-checkout-discount-lock__locked {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 38px !important;
    padding: 7px 8px !important;
    border: 1px solid rgba(11, 107, 87, .20) !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
}

.fc-checkout-app .fc-checkout-discount-lock__choice {
    background: rgba(255, 255, 255, .62) !important;
}

.fc-checkout-app .fc-checkout-discount-lock__choice.is-selected,
.fc-checkout-app .fc-checkout-discount-lock__success {
    background: color-mix(in srgb, var(--fc-checkout-app-border, #0B6B57) 8%, #FFFFFF) !important;
    border-color: color-mix(in srgb, var(--fc-checkout-app-border, #0B6B57) 42%, transparent) !important;
}

.fc-checkout-app .fc-checkout-discount-lock__choice.is-disabled,
.fc-checkout-app .fc-checkout-discount-lock__choice.is-muted {
    background: rgba(245, 248, 247, .88) !important;
    color: #5f706c !important;
}

.fc-checkout-app .fc-checkout-discount-lock__choice strong,
.fc-checkout-app .fc-checkout-discount-lock__success strong {
    display: block !important;
    margin: 0 !important;
    color: inherit !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
}

.fc-checkout-app .fc-checkout-discount-lock__choice small,
.fc-checkout-app .fc-checkout-discount-lock__success small {
    display: block !important;
    margin: 2px 0 0 !important;
    color: #526661 !important;
    font-size: 9px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
}

.fc-checkout-app .fc-checkout-discount-lock__choice em {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 19px !important;
    padding: 2px 7px !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--fc-checkout-app-border, #0B6B57) 10%, #FFFFFF) !important;
    color: var(--fc-checkout-app-border, #0B6B57) !important;
    font-size: 9px !important;
    line-height: 1 !important;
    font-style: normal !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

.fc-checkout-app .fc-checkout-discount-lock__icon,
.fc-checkout-app .fc-checkout-discount-lock__radio,
.fc-checkout-app .fc-checkout-discount-lock__success > span:first-child,
.fc-checkout-app .fc-checkout-discount-lock__note > span:first-child,
.fc-checkout-app .fc-checkout-discount-lock__locked > span:first-child,
.fc-checkout-app .fc-checkout-app-coupon-overlay > span:first-child {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    border-radius: 999px !important;
    color: var(--fc-checkout-app-border, #0B6B57) !important;
    font-size: 11px !important;
    line-height: 1 !important;
}

.fc-checkout-app .fc-checkout-discount-lock__radio {
    border: 1px solid color-mix(in srgb, var(--fc-checkout-app-border, #0B6B57) 60%, transparent) !important;
    background: #fff !important;
}

.fc-checkout-app .fc-checkout-discount-lock__coupon-fallback > strong {
    display: block !important;
    margin: 0 0 5px !important;
    color: #697b77 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
}

.fc-checkout-app .fc-checkout-discount-lock__locked,
.fc-checkout-app .fc-checkout-app-coupon-overlay {
    background: rgba(248, 250, 250, .94) !important;
    color: #1d3f39 !important;
}

.fc-checkout-app .fc-checkout-discount-lock__note {
    min-height: 30px !important;
    grid-template-columns: 18px minmax(0, 1fr) !important;
    background: #EFF7FB !important;
    color: #225164 !important;
    border-color: rgba(34, 81, 100, .12) !important;
    font-size: 10px !important;
}

.fc-checkout-app .fc-checkout-discount-lock button,
.fc-checkout-app .fc-checkout-discount-lock a,
.fc-checkout-app .fc-checkout-app-coupon-overlay button,
.fc-checkout-app .fc-checkout-app-coupon-overlay a {
    appearance: none !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--fc-checkout-app-border, #0B6B57) !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font: 800 10px/1.2 inherit !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
    white-space: nowrap !important;
    cursor: pointer !important;
}

.fc-checkout-app .fct_coupon.fc-checkout-app-coupon-locked,
.fc-checkout-app [class*="coupon" i].fc-checkout-app-coupon-locked {
    position: relative !important;
}

.fc-checkout-app .fct_coupon.fc-checkout-app-coupon-locked :is(input, button, select, textarea):not([data-fc-discount-action]),
.fc-checkout-app [class*="coupon" i].fc-checkout-app-coupon-locked :is(input, button, select, textarea):not([data-fc-discount-action]) {
    opacity: .45 !important;
    pointer-events: none !important;
}

.fc-checkout-app .fc-checkout-app-coupon-overlay {
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 6px !important;
    padding: 8px !important;
    border: 1px solid rgba(11, 107, 87, .18) !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    font-size: 10.5px !important;
    line-height: 1.3 !important;
}

@media (max-width: 640px) {
    .fc-checkout-app .fc-checkout-discount-lock__choice,
    .fc-checkout-app .fc-checkout-discount-lock__success,
    .fc-checkout-app .fc-checkout-discount-lock__locked,
    .fc-checkout-app .fc-checkout-app-coupon-overlay {
        grid-template-columns: 20px minmax(0, 1fr) !important;
    }
    .fc-checkout-app .fc-checkout-discount-lock button,
    .fc-checkout-app .fc-checkout-discount-lock a,
    .fc-checkout-app .fc-checkout-app-coupon-overlay button,
    .fc-checkout-app .fc-checkout-app-coupon-overlay a {
        grid-column: 2 !important;
        justify-self: start !important;
        white-space: normal !important;
    }
}
