/* Checkout 2026 */
.page-hero--checkout {
    background-image: url("../images/checkoutbanner.jpg");
    background-position: center 52%;
}

html:has(.checkout-page) {
    overflow-anchor: none;
}

.checkout-page {
    overflow: hidden;
    overflow-anchor: none;
    background: #f7f8f9;
    color: #151b20;
}

.checkout-workspace {
    padding: clamp(1.5rem, 3vw, 3.25rem) 0 0;
}

.checkout-workspace__container {
    position: relative;
}

.checkout-workspace__container > .cart-notice:not([hidden]) {
    margin-bottom: 2.4rem;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(21rem, .84fr);
    align-items: start;
    gap: clamp(1.35rem, 3vw, 3rem);
}

.checkout-form,
.checkout-sidebar {
    display: grid;
    gap: 1.2rem;
}

.checkout-form {
    position: relative;
    gap: 0;
}

.checkout-form > :not(:last-child) {
    margin-bottom: 1.2rem;
}

.checkout-card,
.checkout-form > .checkout-card,
.checkout-order {
    position: relative;
    padding: clamp(1.5rem, 2.8vw, 2.25rem);
    border: 1px solid #dce2e6;
    background: rgba(255, 255, 255, .96);
}

.checkout-card h2,
.checkout-form > .checkout-card h2,
.checkout-order > h2 {
    margin: 0 0 1.65rem;
    color: #182128;
    font-size: clamp(1.22rem, 2vw, 1.55rem);
    font-weight: 400;
    letter-spacing: -.018em;
}

.checkout-card--notes h2 span {
    color: #7a8790;
    font-size: .72em;
    font-weight: 300;
}

.checkout-fields {
    display: grid;
    gap: 1rem;
}

.checkout-fields--two,
.checkout-fields--business {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-fields--business {
    margin-top: clamp(1.8rem, 3vw, 2.5rem);
    padding-top: clamp(1.5rem, 2.6vw, 2rem);
    border-top: 1px solid #e0e5e8;
}

.checkout-fields label {
    display: grid;
    align-content: start;
    gap: .48rem;
}

.checkout-fields [data-address-field][hidden] {
    display: none !important;
}

.checkout-fields label > span {
    color: #27343d;
    font-size: .72rem;
    letter-spacing: .025em;
}

.checkout-fields input,
.checkout-fields select,
.checkout-note-field textarea,
.checkout-coupon__fields input {
    width: 100%;
    min-height: 3.15rem;
    padding: .78rem .9rem;
    border: 1px solid #cfd7dc;
    border-radius: 0;
    outline: 0;
    background: #fcfcfc;
    color: #182128;
    font: inherit;
    font-size: .86rem;
    transition: border-color .24s ease, background-color .24s ease, box-shadow .24s ease;
}

.checkout-fields input:focus,
.checkout-fields select:focus,
.checkout-note-field textarea:focus,
.checkout-coupon__fields input:focus {
    border-color: #6ec1e4;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(110, 193, 228, .13);
}

.checkout-fields input::placeholder,
.checkout-note-field textarea::placeholder,
.checkout-coupon__fields input::placeholder {
    color: #9aa4aa;
    opacity: 1;
}

.checkout-fields small {
    color: #6d7c85;
    font-size: .66rem;
    line-height: 1.45;
}

.checkout-field-wide {
    grid-column: 1 / -1;
}

.checkout-different-address {
    display: flex;
    min-height: 4.2rem;
    align-items: center;
    gap: .85rem;
    padding: 1rem clamp(1.5rem, 2.8vw, 2.25rem);
    border: 1px solid #dce2e6;
    background: #fff;
    color: #26353e;
    cursor: pointer;
    font-size: .82rem;
}

.checkout-different-address input,
.checkout-methods input,
.checkout-payment-methods input {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    accent-color: #176fab;
}

.checkout-card--shipping-address,
.checkout-coupon__fields {
    overflow: hidden;
    overflow-anchor: none;
}

.checkout-card--shipping-address[hidden],
.checkout-coupon__fields[hidden] {
    display: none;
}

.checkout-methods {
    display: grid;
    gap: .65rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.checkout-methods > p,
.checkout-payment-methods > p {
    margin: 0;
    color: #73818a;
    font-size: .78rem;
}

.checkout-methods label {
    display: flex;
    min-height: 3.65rem;
    align-items: center;
    gap: .85rem;
    padding: .8rem 1rem;
    border: 1px solid #ced7dc;
    background: #fff;
    cursor: pointer;
}

.checkout-methods label:has(input:checked) {
    border-color: #6ec1e4;
    background: #f1f9fc;
}

.checkout-methods label span {
    display: grid;
    gap: .18rem;
}

.checkout-methods label strong {
    font-size: .79rem;
    font-weight: 500;
}

.checkout-methods label small {
    color: #75828b;
    font-size: .68rem;
}

.checkout-note-field {
    display: block;
}

.checkout-note-field textarea {
    min-height: 7rem;
    resize: vertical;
    line-height: 1.6;
}

.checkout-payment-methods {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .65rem;
}

.checkout-payment-methods .checkout-payment-option {
    display: grid;
    min-height: 3.65rem;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: .85rem;
    padding: .85rem 1rem;
    border: 1px solid #ced7dc;
    background: #fff;
    cursor: pointer;
    transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.checkout-payment-methods .checkout-payment-option:hover {
    border-color: #a9ccd9;
}

.checkout-payment-methods .checkout-payment-option.is-selected {
    border-color: #6ec1e4;
    background: #f1f9fc;
    box-shadow: 0 .55rem 1.5rem rgba(37, 91, 116, .055);
}

.checkout-payment-methods .checkout-payment-option:has(.checkout-payment-option__input:focus-visible) {
    outline: 2px solid rgba(23, 111, 171, .32);
    outline-offset: 2px;
}

.checkout-payment-methods .checkout-payment-option__input {
    margin: .24rem 0 0;
    accent-color: #176fab;
}

.checkout-payment-methods .checkout-payment-option__body {
    display: grid;
    min-width: 0;
}

.checkout-payment-methods .checkout-payment-option__summary {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.checkout-payment-methods .checkout-payment-option__summary strong {
    color: #1b252c;
    font-size: .84rem;
    font-weight: 500;
}

.checkout-payment-methods .checkout-payment-option__logos {
    display: inline-flex;
    min-height: 1.55rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: .38rem;
}

.checkout-payment-methods .checkout-payment-option__logos img {
    display: block;
    width: auto;
    max-width: 4.85rem;
    height: 1.55rem;
    object-fit: contain;
}

.checkout-payment-methods .checkout-payment-option__logos img[src$="amex.svg"],
.checkout-payment-methods .checkout-payment-option__logos img[src$="visa.svg"],
.checkout-payment-methods .checkout-payment-option__logos img[src$="mastercard.svg"] {
    width: 2.35rem;
    height: 1.48rem;
}

.checkout-payment-methods .checkout-payment-option__description {
    display: grid;
    overflow: hidden;
    grid-template-rows: 0fr;
    opacity: 0;
    transform: translateY(-4px);
    transition: grid-template-rows .38s cubic-bezier(.22, 1, .36, 1), opacity .28s ease, transform .38s cubic-bezier(.22, 1, .36, 1);
}

.checkout-payment-methods .checkout-payment-option__description > span {
    min-height: 0;
    margin-top: 0;
    overflow: hidden;
    padding-top: 0;
    border-top: 1px solid transparent;
    color: #61717b;
    font-size: .72rem;
    line-height: 1.65;
    transition: margin-top .38s cubic-bezier(.22, 1, .36, 1), padding-top .38s cubic-bezier(.22, 1, .36, 1), border-color .28s ease;
}

.checkout-payment-methods .checkout-payment-option.is-selected .checkout-payment-option__description {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: translateY(0);
}

.checkout-payment-methods .checkout-payment-option.is-selected .checkout-payment-option__description > span {
    margin-top: .82rem;
    padding-top: .82rem;
    border-top-color: #d8e8ef;
}

.checkout-payment-methods .checkout-payment-option__description-copy {
    display: block;
}

.checkout-payment-methods .checkout-payment-option__redirect-notice {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    align-items: center;
    gap: .8rem;
    margin-top: .9rem;
    color: #9ca5aa;
}

.checkout-payment-methods .checkout-payment-option__redirect-notice img {
    display: block;
    width: 3rem;
    height: auto;
}

.checkout-payment-methods .checkout-payment-option__redirect-notice > span {
    min-width: 0;
}

.checkout-coupon__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.checkout-coupon__head h2 {
    margin-bottom: 0;
    font-size: 1rem;
}

.checkout-coupon__head button,
.checkout-coupon__fields > button,
.checkout-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    font: inherit;
    transition: background-color .28s ease, border-color .28s ease, color .28s ease, opacity .28s ease;
}

.checkout-coupon__head button {
    gap: .7rem;
    padding: .4rem 0;
    background: transparent;
    color: #176fab;
    font-size: .72rem;
    font-weight: 500;
}

.checkout-coupon__chevron {
    width: .48rem;
    height: .48rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .25s ease;
}

.checkout-coupon__head button[aria-expanded="true"] .checkout-coupon__chevron {
    transform: rotate(45deg) translateY(-2px);
}

.checkout-coupon__fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: .7rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #dfe5e8;
}

.checkout-coupon__entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .7rem;
}

.checkout-coupon__entry > button {
    min-height: 3.15rem;
    padding: .75rem 1rem;
    border: 0;
    background: #176fab;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: .71rem;
    font-weight: 600;
    transition: background-color .28s ease, color .28s ease;
}

.checkout-coupon__entry > button:hover,
.checkout-coupon__entry > button:focus-visible,
.checkout-submit:hover,
.checkout-submit:focus-visible {
    background: #0f5f96;
}

.checkout-coupon__entry[hidden],
.checkout-coupon__applied[hidden],
.checkout-coupon__message[hidden],
.checkout-coupon__remove[hidden] {
    display: none;
}

.checkout-coupon__applied {
    display: grid;
    min-height: 3.15rem;
    grid-template-columns: 1.35rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .8rem;
    padding: .7rem .85rem;
    border: 1px solid #b8d6c3;
    background: #f2f9f4;
    color: #1d5030;
}

.checkout-coupon__check {
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid #3b9360;
    border-radius: 50%;
    color: #2d8250;
}

.checkout-coupon__check::after {
    position: absolute;
    top: 43%;
    left: 50%;
    width: .45rem;
    height: .24rem;
    border-bottom: 1.5px solid currentColor;
    border-left: 1.5px solid currentColor;
    content: "";
    transform: translate(-50%, -50%) rotate(-45deg);
}

.checkout-coupon__applied strong {
    overflow-wrap: anywhere;
    color: #203a2a;
    font-size: .83rem;
    font-weight: 500;
    letter-spacing: .035em;
}

.checkout-coupon__remove {
    justify-self: end;
    padding: .2rem 0;
    border: 0;
    background: transparent;
    color: #176fab;
    cursor: pointer;
    font: inherit;
    font-size: .69rem;
    transition: color .28s ease;
}

.checkout-coupon__remove:hover,
.checkout-coupon__remove:focus-visible {
    color: #0f5f96;
}

.checkout-coupon__message {
    margin: .1rem 0 0;
    color: #34714c;
    font-size: .71rem;
    line-height: 1.5;
}

.checkout-coupon__message[data-type="error"] {
    color: #9b3838;
}

.checkout-order {
    position: relative;
    top: auto;
}

.checkout-order__legal {
    margin: -0.55rem 0 1.65rem;
    color: #687780;
    font-size: .76rem;
    line-height: 1.65;
}

.checkout-order__legal a,
.checkout-cart-edit {
    color: #176fab;
    text-underline-offset: .16em;
}

.checkout-cart-edit {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: .65rem;
    color: #176fab;
    font-size: .75rem;
    font-weight: 300;
    text-decoration: none;
    transform: translateY(calc(-100% - .55rem));
    transition: color .28s ease;
}

.checkout-cart-edit__chevron {
    width: .5rem;
    height: .5rem;
    border-bottom: 1.5px solid currentColor;
    border-left: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}

.checkout-cart-edit:hover,
.checkout-cart-edit:focus-visible {
    color: #0f5f96;
}

.checkout-cart-edit:hover .checkout-cart-edit__chevron,
.checkout-cart-edit:focus-visible .checkout-cart-edit__chevron {
    transform: translateX(-3px) rotate(45deg);
}

.checkout-order__items {
    display: grid;
    gap: .25rem;
    padding: .2rem 0 1.25rem;
    border-bottom: 1px solid #dce2e5;
}

.checkout-order .checkout-order-item {
    display: grid;
    grid-template-columns: 3.7rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .9rem;
    padding: .65rem 0;
}

.checkout-order-item img {
    width: 3.7rem;
    height: 3.7rem;
    object-fit: contain;
}

.checkout-order-item div {
    display: grid;
    min-width: 0;
    gap: .15rem;
}

.checkout-order-item strong,
.checkout-order-item b {
    color: #1b252c;
    font-size: .77rem;
    font-weight: 500;
}

.checkout-order-item span,
.checkout-order-item small {
    color: #78858d;
    font-size: .66rem;
}

.checkout-order-item .checkout-order-item__tax {
    color: #4f879e;
    font-size: .61rem;
}

.checkout-order-item b {
    white-space: nowrap;
}

.checkout-order .cart-totals {
    margin-top: .65rem;
}

.checkout-order .cart-totals > [hidden] {
    display: none;
}

.checkout-submit {
    width: 100%;
    min-height: 3.75rem;
    margin-top: 1.6rem;
    padding: .9rem 1.25rem;
    background: #176fab;
    color: #fff;
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .075em;
}

.checkout-submit:disabled {
    cursor: wait;
    opacity: .68;
}

.checkout-stripe {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dce2e5;
}

.checkout-stripe .cart-checkout {
    width: 100%;
    margin-top: 1.2rem;
    border: 0;
    cursor: pointer;
    transition: background-color .28s ease, color .28s ease, opacity .28s ease;
}

.checkout-stripe .cart-checkout:not(:disabled):hover,
.checkout-stripe .cart-checkout:not(:disabled):focus-visible {
    background: #0f5f96;
}

.checkout-stripe .cart-checkout:disabled {
    cursor: not-allowed;
}

.checkout-stripe__currency:not(:empty) {
    margin-bottom: 1rem;
}

.checkout-stripe__presentment,
.checkout-stripe__error {
    margin: 1rem 0 0;
    font-size: .78rem;
    line-height: 1.55;
}

.checkout-stripe__presentment {
    color: #176fab;
}

.checkout-stripe__error {
    color: #a72929;
}

[data-confirmation-total] small {
    display: block;
    margin-top: .25rem;
    color: #5d6b75;
    font-size: .68rem;
    font-weight: 400;
    line-height: 1.4;
}

.checkout-bank {
    margin-top: 1rem;
    padding: 1.3rem;
    border-left: 2px solid #6ec1e4;
    background: #eff8fc;
}

.checkout-bank h3 {
    margin-top: 0;
}

.checkout-microphone {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin: clamp(3.5rem, 7vw, 6.5rem) 0 0;
}

.checkout-microphone img {
    display: block;
    width: min(31vw, 22rem);
    height: auto;
    object-fit: contain;
    transform: translateY(8px);
}

@keyframes wk-checkout-reveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.js .checkout-card--details,
.js .checkout-card--payment {
    animation: wk-checkout-reveal 600ms 60ms cubic-bezier(.22,1,.36,1) both;
}

.js .checkout-different-address,
.js .checkout-card--coupon {
    animation: wk-checkout-reveal 600ms 125ms cubic-bezier(.22,1,.36,1) both;
}

.js .checkout-card--shipping-method,
.js .checkout-order {
    animation: wk-checkout-reveal 600ms 190ms cubic-bezier(.22,1,.36,1) both;
}

.js .checkout-card--notes {
    animation: wk-checkout-reveal 600ms 255ms cubic-bezier(.22,1,.36,1) both;
}

@media (min-width: 901px) {
    .checkout-order {
        padding-bottom: calc(clamp(1.5rem, 2.8vw, 2.25rem) + 2px);
    }
}

@media (max-width: 900px) {
    .checkout-workspace__container > .cart-notice:not([hidden]) {
        margin-bottom: 1.25rem;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-sidebar {
        grid-row: auto;
    }

    .checkout-sidebar .checkout-order {
        grid-row: auto;
    }

    .checkout-cart-edit {
        position: static;
        transform: none;
    }

    .checkout-microphone img {
        width: min(55vw, 19rem);
    }
}

@media (max-width: 560px) {
    .page-hero--checkout {
        background-position: 58% center;
    }

    .checkout-workspace {
        padding-top: 1.2rem;
    }

    .checkout-card,
    .checkout-form > .checkout-card,
    .checkout-order {
        padding: 1.7rem 1.25rem;
    }

    .checkout-card h2,
    .checkout-form > .checkout-card h2,
    .checkout-order > h2 {
        margin-bottom: 1.95rem;
    }

    .checkout-coupon__head h2 {
        margin-bottom: 0;
    }

    .checkout-fields--two,
    .checkout-fields--business,
    .checkout-payment-methods {
        grid-template-columns: 1fr;
    }

    .checkout-field-wide {
        grid-column: auto;
    }

    .checkout-different-address {
        padding-inline: 1.25rem;
    }

    .checkout-coupon__head {
        align-items: flex-start;
    }

    .checkout-coupon__head h2 {
        line-height: 1.4;
    }

    .checkout-coupon__entry {
        grid-template-columns: 1fr;
    }

    .checkout-coupon__entry > button {
        width: 100%;
    }

    .checkout-payment-methods .checkout-payment-option {
        gap: .65rem;
        padding: .78rem .8rem;
    }

    .checkout-payment-methods .checkout-payment-option__summary {
        gap: .5rem;
    }

    .checkout-payment-methods .checkout-payment-option__logos {
        gap: .24rem;
    }

    .checkout-payment-methods .checkout-payment-option__logos img {
        max-width: 4.25rem;
        height: 1.4rem;
    }

    .checkout-payment-methods .checkout-payment-option__logos img[src$="amex.svg"],
    .checkout-payment-methods .checkout-payment-option__logos img[src$="visa.svg"],
    .checkout-payment-methods .checkout-payment-option__logos img[src$="mastercard.svg"] {
        width: 1.9rem;
        height: 1.2rem;
    }

    .checkout-payment-methods .checkout-payment-option__redirect-notice {
        grid-template-columns: 2.5rem minmax(0, 1fr);
        gap: .65rem;
    }

    .checkout-payment-methods .checkout-payment-option__redirect-notice img {
        width: 2.5rem;
    }

    .checkout-submit {
        margin-bottom: .85rem;
    }

    .checkout-order-item {
        grid-template-columns: 3.25rem minmax(0, 1fr) auto;
        gap: .7rem;
    }

    .checkout-order-item img {
        width: 3.25rem;
        height: 3.25rem;
    }

    .checkout-microphone {
        margin-top: 4rem;
    }

    .checkout-microphone img {
        width: min(76vw, 17rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .js .checkout-card--details,
    .js .checkout-card--payment,
    .js .checkout-different-address,
    .js .checkout-card--coupon,
    .js .checkout-card--shipping-method,
    .js .checkout-order,
    .js .checkout-card--notes {
        animation: none;
    }

    .checkout-payment-methods .checkout-payment-option,
    .checkout-payment-methods .checkout-payment-option__description {
        transition: none;
    }
}
