/* Shop 1.0.1: a single confirmation area at the point of purchase. */
.checkout-grid .order-summary {
    position: static;
}

.checkout-confirmation {
    min-width: 0;
    margin: 12px 0 22px;
    padding: 0;
    border: 0;
}

.checkout-confirmation legend {
    margin-bottom: 2px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.checkout-confirmation .checkbox {
    margin: 14px 0 0;
    font-size: 11px;
    line-height: 1.65;
}

.bump-card h2 {
    font-size: clamp(25px, 2.3vw, 31px);
    line-height: 1.16;
    text-wrap: balance;
}

.bump-checks li {
    display: flex;
    align-items: baseline;
}

.bump-checks li:before {
    flex: 0 0 auto;
}

.download-login-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 28px;
    max-width: 1080px;
    margin: 34px 0 12px;
    align-items: stretch;
}

.download-login-card,
.new-customer-card {
    padding: 36px;
}

.download-login-card h2,
.new-customer-card h2 {
    font-size: 30px;
    margin-bottom: 17px;
}

.download-login-card > p:not(.tiny):not(.notice),
.new-customer-card > p:not(.eyebrow):not(.tiny) {
    font-size: 14px;
    line-height: 1.75;
    color: #60786b;
    margin-bottom: 25px;
}

.download-login-card .tiny,
.new-customer-card .tiny {
    margin-top: 19px;
    max-width: 360px;
    font-size: 11px;
}

.download-login-card .button {
    width: 100%;
    font-size: 14px;
}

.login-symbol {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: #e0faef;
    font-size: 27px;
}

.new-customer-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #cfe8da;
    border-radius: 14px;
    background: linear-gradient(135deg, #edfaf3, #e1f5eb);
}

.new-customer-card .eyebrow {
    color: #368766;
    font-size: 10px;
}

.new-customer-price {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 24px;
}

.new-customer-price strong {
    font-size: 43px;
    line-height: 1;
    letter-spacing: -.05em;
}

.new-customer-price > span {
    font-size: 12px;
    line-height: 1.7;
}

.new-customer-price small {
    display: block;
    font-size: 10px;
    color: #688472;
}

.new-customer-card .button {
    align-self: flex-start;
    font-size: 14px;
    min-height: 48px;
}

@media (max-width: 760px) {
    .without-purchase-cta .download-link {
        display: inline;
        font-size: 11px;
    }

    .download-login-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 25px;
    }

    .download-login-card,
    .new-customer-card {
        padding: 24px;
    }

    .download-login-card h2,
    .new-customer-card h2 {
        font-size: 27px;
    }

    .download-login-card > p:not(.tiny):not(.notice),
    .new-customer-card > p:not(.eyebrow):not(.tiny) {
        font-size: 13px;
    }

    .download-login-card .button {
        font-size: 12px;
        padding: 13px 10px;
    }

    .bump-card h2 {
        font-size: 25px;
    }

    .checkout-confirmation .checkbox {
        font-size: 11px;
    }
}

/* Native sticky stays inside the checkout, so the footer cannot cover the card. */
@media (min-width: 761px) {
    .checkout-grid .order-summary {
        position: sticky;
        align-self: start;
        top: var(--summary-sticky-top, 108px);
    }
}
/* Fixed SVG bounds avoid platform-dependent text/emoji icon positioning. */
.button .button-icon { display: block; position: static; width: 20px; height: 20px; flex: 0 0 20px; }
.play-dot { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 23px; line-height: 0; color: #0b2523; }
.play-dot .play-icon { display: block; width: 17px; height: 17px; }
.video-play { display: grid; place-items: center; padding: 0; line-height: 0; }
.video-play .play-icon { display: block; width: 32px; height: 32px; }
.summary-product > div:last-child { min-width: 0; }
.summary-product h2 { overflow-wrap: anywhere; }

.back-to-top { position: fixed; z-index: 40; right: max(22px, env(safe-area-inset-right)); bottom: calc(22px + env(safe-area-inset-bottom)); display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #24c6a1; border-radius: 50%; background: #42e7c1; color: #0b2523; box-shadow: 0 4px 18px #0b252326; }
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: #62f0cf; }
.back-to-top svg { display: block; }
@media (max-width: 760px) { .back-to-top { right: max(14px, env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); width: 44px; height: 44px; } }

.product-art.product-art-logo { background: #e1f5eb; padding: 10px; }
.product-art-logo img { display: block; width: 100%; height: auto; object-fit: contain; }

@media (min-width: 761px) {
    .checkout-grid .order-summary .summary-card {
        max-height: calc(100vh - var(--summary-sticky-top, 108px) - 20px);
        max-height: calc(100dvh - var(--summary-sticky-top, 108px) - 20px);
        overflow-y: auto;
        scrollbar-gutter: stable;
        scrollbar-width: auto;
        scrollbar-color: #39cba8 #edf6f0;
    }
}

.bump-brand { display: block; width: 110px; height: auto; flex: 0 0 110px; object-fit: contain; }
@media (max-width: 760px) { .bump-brand { width: 85px; flex-basis: 85px; } }

.prompts-only-select { margin-top: 12px; }
.bump-select.is-selected { border-color: #16856b; box-shadow: inset 0 0 0 1px #16856b; }
.bump-select > span:not(.bump-price) { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.bump-select > .bump-price { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 380px) { .bump-select { padding: 12px 9px; gap: 8px; } .bump-select .bump-price { font-size: 18px; } }

#main:focus { outline: none; }

.bump-options { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 14px; align-items: stretch; }
.bump-logo-box { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #c2dfd2; border-radius: 8px; padding: 10px; }
.bump-logo-box .bump-brand { width: 100%; max-width: 110px; height: auto; flex: none; }
.bump-option-fields { display: grid; gap: 12px; min-width: 0; }
.bump-option-fields .bump-select { margin: 0; min-height: 94px; padding: 15px 12px; }
@media (max-width: 1100px) {
    .bump-options { grid-template-columns: 78px minmax(0, 1fr); gap: 10px; }
    .bump-option-fields .bump-select { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 6px 9px; padding: 12px; }
    .bump-option-fields .bump-select input { grid-column: 1; grid-row: 1; }
    .bump-option-fields .bump-select > span:not(.bump-price) { grid-column: 2; grid-row: 1; }
    .bump-option-fields .bump-price { grid-column: 2; grid-row: 2; font-size: 20px; }
    .bump-option-fields .bump-price small { display: inline; margin-left: 6px; }
}
@media (max-width: 380px) { .bump-options { grid-template-columns: 58px minmax(0, 1fr); gap: 8px; } .bump-logo-box { padding: 6px; } .bump-option-fields .bump-select { padding: 10px 8px; } .bump-option-fields .bump-price small { display: block; margin-left: 0; } }

@media (min-width: 761px) {
    .checkout-body .checkout-heading, .checkout-body .checkout-page > .notice, .checkout-body .checkout-page > .alert { max-width: calc(60% - 24px); }
}

.summary-bump { display: block; }
.summary-bump[hidden] { display: none; }
.summary-bump-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.summary-bump-heading > span { white-space: nowrap; }
.microshop-features { margin: 15px 0; font-size: 12px; line-height: 1.7; }
.microshop-features p { margin: 0 0 9px; font-weight: 650; }
.microshop-features ol { margin: 0; padding-left: 19px; }
.microshop-features li { padding-left: 2px; margin: 5px 0; }
.summary-bump .microshop-features { margin-bottom: 0; font-size: 11px; }

/* A denser desktop summary keeps the purchase controls visible on more screens. */
@media (min-width: 761px) {
    .order-summary .summary-card { padding: 20px; }
    .summary-card > .eyebrow { margin-bottom: 12px; }
    .summary-product { margin-bottom: 12px; }
    .summary-product p { margin: 4px 0 6px; }
    .summary-features { margin: 12px 0; gap: 5px; }
    .summary-bump { margin: 12px 0; padding: 11px; }
    .microshop-features { margin: 10px 0; line-height: 1.55; }
    .microshop-features p { margin-bottom: 6px; }
    .microshop-features li { margin: 3px 0; }
    .totals { padding-top: 10px; }
    .totals > div { margin-bottom: 6px; }
    .totals .grand-total { margin-top: 12px; padding: 10px 0; }
    .checkout-confirmation { margin: 8px 0 14px; }
    .checkout-confirmation .checkbox { margin-top: 10px; line-height: 1.55; }
    .secure-note { margin: 8px 0 12px; }
    .one-time { padding-top: 10px; }
    .summary-card > .tiny { margin-top: 7px; }
}

/* Keep the scroll region keyboard-accessible and expose a usable scrollbar. */
.summary-card:focus-visible { outline: 3px solid #149c78; outline-offset: 3px; }
.summary-card::-webkit-scrollbar { width: 12px; }
.summary-card::-webkit-scrollbar-track { background: #edf6f0; border-radius: 10px; }
.summary-card::-webkit-scrollbar-thumb { background: #27856e; border: 3px solid #edf6f0; border-radius: 10px; }
@media (min-width: 761px) and (max-height: 479px) {
    .checkout-grid .order-summary { position: static; }
    .checkout-grid .order-summary .summary-card { max-height: none; overflow: visible; }
}

.summary-product .microshop-product-name { overflow-wrap: normal; word-break: normal; hyphens: none; }
.microshop-product-name > span { display: inline-block; white-space: nowrap; }
@media (max-width: 400px) {
    [data-product-summary="prompts"] .summary-product { gap: 12px; }
    [data-product-summary="prompts"] .product-art { width: 64px; height: 76px; flex-basis: 64px; padding: 6px; }
}

/* Both product choices use the same right-aligned price and tax label. */
.bump-option-fields .bump-price { text-align: right; justify-self: end; }
.bump-option-fields .bump-price small { display: block; margin-left: 0; text-align: right; }

/* Centered frosted play control; preserve the existing locally hosted poster. */
.video-play {
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, .66); color: #0a2522;
    border: 1px solid rgba(255, 255, 255, .82);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 5px 24px rgba(0, 0, 0, .15);
}
.video-play:hover { background: rgba(255, 255, 255, .82); }
.legal-text { overflow-wrap: anywhere; }

/* Payment choices: fixed icon/radio columns, flexible readable text on mobile Safari too. */
.checkout-grid > *, .checkout-grid .summary-card { min-width: 0; }
.payment-choice [data-payment-options] { grid-template-columns: minmax(0, 1fr); gap: 0; }
.payment-choice .payment-option {
    display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px;
    align-items: center; column-gap: 10px; width: 100%; min-width: 0;
    min-height: 54px; padding: 10px 8px;
}
.payment-choice .payment-symbol { grid-column: 1; grid-row: 1; width: 40px; height: 30px; }
.payment-choice .payment-name { grid-column: 2; grid-row: 1; line-height: 1.4; }
.payment-choice .payment-option input[type=radio] {
    grid-column: 3; grid-row: 1; order: initial; justify-self: end;
    width: 18px; min-width: 18px; max-width: 18px; height: 18px; min-height: 18px;
    margin: 0; padding: 0; border: 0; border-radius: 50%; appearance: auto; -webkit-appearance: radio;
}
@media(max-width:760px) {
    .checkout-grid { grid-template-columns: minmax(0, 1fr); }
    .checkout-grid .order-summary, .checkout-grid .summary-card { width: 100%; max-width: 100%; }
    .payment-choice .payment-option { grid-template-columns: 32px minmax(0, 1fr) 18px; column-gap: 8px; }
    .payment-choice .payment-symbol { width: 32px; height: 26px; }
    .payment-choice .payment-name { font-size: 13px; }
    .embedded-card { padding: 12px; }
    .embedded-card iframe { max-width: 100%; }
}
