/* QYT Checkout storefront stylesheet (cart, sign-in, checkout, confirmation).
 * One file since Phase 4: former qyt_checkout.css, qyt_auth.css, qyt_address.css and qyt_shopify.css, in that
 * cascade order, with provably dead rules removed (tools/css_consolidate.py). Scoped to the QYT shell.
 * Later sections refine earlier ones: change a value in the LAST rule that sets it. */

/* ===== qyt_checkout.css ===== */

/* QYT scoped checkout stylesheet.
 * Source-order and compatibility fallbacks are intentional.
 * Exact duplicate declarations removed; no global storefront selectors introduced.
 */

.qyt-flow {
    color: var(--qyt-ink);
    font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",Arial,sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

.qyt-flow * {
    box-sizing: border-box;
}

.qyt-flow [hidden] {
    display: none !important;
}

.qyt-flow h1,
.qyt-flow h2,
.qyt-flow h3,
.qyt-flow p {
    color: inherit;
    line-height: 1.4;
    letter-spacing: normal;
}

.qyt-flow h1 {
    font-size: 27px;
    font-weight: 800;
    margin: 0 0 22px;
}

.qyt-flow p {
    margin: 0 0 12px;
}

.qyt-flow a {
    text-decoration: none;
}

.qyt-flow a:hover {
    text-decoration: underline;
}

.qyt-flow img {
    max-width: 100%;
    object-fit: contain;
}

.qyt-flow button,
.qyt-flow input,
.qyt-flow select,
.qyt-flow textarea {
    font: inherit;
}

.qyt-flow button {
    cursor: pointer;
}

.qyt-flow button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.qyt-flow .qyt-required {
    color: #333333;
}

.qyt-flow .qyt-muted {
    color: var(--qyt-muted);
}

.qyt-flow .qyt-small {
    font-size: 12px;
}

.qyt-flow .qyt-text-button {
    background: none;
    border: 0;
    padding: 5px 0;
    font-size: 13px;
    text-align: left;
}

.qyt-flow .qyt-text-button:hover {
    text-decoration: underline;
}

.qyt-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    font-size: 21px;
}

.qyt-brand img {
    display: block;
    width: 180px;
    height: 60px;
}

.qyt-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 25px 24px 55px;
}

.qyt-cart-grid {
    display: grid;
    grid-template-columns: minmax(0,1.6fr) minmax(300px,.75fr);
    align-items: start;
}

.qyt-checkout-grid {
    display: grid;
    grid-template-columns: minmax(0,1.55fr) minmax(330px,.78fr);
}

.qyt-checkout-stack,
.qyt-checkout-stack form,
.qyt-checkout-stack #qyt-editable {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.qyt-panel {
    background: #fff;
    min-width: 0;
}

.qyt-section-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.qyt-summary {
    position: sticky;
    top: 20px;
}

.qyt-summary .qyt-section-head {
    align-items: center;
}

.qyt-summary h2 {
    font-size: 17px;
}

.qyt-summary h2 small {
    font-size: 12px;
    font-weight: 400;
    color: var(--qyt-muted);
    white-space: nowrap;
}

.qyt-summary .qyt-text-button {
    font-size: 12px;
    flex-shrink: 0;
}

.qyt-support {
    padding: 18px;
    margin-top: 16px;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.qyt-support p:last-child {
    margin-bottom: 0;
}

.qyt-support h3 {
    font-size: 15px;
}

.qyt-mini-product {
    display: grid;
    grid-template-columns: 48px minmax(0,1fr) auto;
    align-items: center;
    border-bottom: 1px solid #edf0f3;
}

.qyt-mini-product strong {
    display: block;
    overflow-wrap: anywhere;
}

.qyt-mini-product small {
    display: block;
    overflow-wrap: anywhere;
}

.qyt-mini-product b {
    white-space: nowrap;
}

.qyt-mini-voucher {
    grid-template-columns: 1fr auto;
}

.qyt-totals {
    padding-top: 13px;
}

.qyt-total-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.qyt-total-line span {
    overflow-wrap: anywhere;
}

.qyt-total-line strong {
    white-space: nowrap;
}

.qyt-total-line.is-discount strong {
    color: var(--qyt-green);
}

.qyt-total-final {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
    font-weight: 800;
}

.qyt-total-final strong {
    white-space: nowrap;
}

.qyt-cart-list {
    overflow: hidden;
}

.qyt-cart-row {
    display: grid;
    grid-template-columns: 80px minmax(0,1fr) 116px minmax(75px,auto) 36px;
    gap: 12px;
    align-items: center;
}

.qyt-product-image img {
    display: block;
    width: 80px;
    height: 80px;
    border: 1px solid var(--qyt-line);
    border-radius: 10px;
}

.qyt-product-info {
    min-width: 0;
}

.qyt-flow .qyt-product-name {
    font-size: 15px;
    color: var(--qyt-ink);
    font-weight: 750;
    display: block;
    overflow-wrap: anywhere;
    margin-bottom: 5px;
}

.qyt-product-info small {
    font-size: 12px;
    display: block;
    color: var(--qyt-muted);
    overflow-wrap: anywhere;
}

.qyt-product-total {
    font-size: 14px;
    text-align: right;
    white-space: nowrap;
}

.qyt-qty {
    display: flex;
    width: 116px;
    height: 42px;
    border: 1px solid #cfd7df;
    border-radius: 8px;
    overflow: hidden;
}

.qyt-qty button {
    width: 34px;
    flex-shrink: 0;
    border: 0;
    background: #f5f7f9;
    font-size: 19px;
    color: #46515d;
    min-height: 40px;
    padding: 0;
}

.qyt-flow .qyt-qty input {
    border: 0;
    width: 46px;
    min-width: 0;
    text-align: center;
    padding: 0;
    font-size: 14px;
    appearance: textfield;
    -moz-appearance: textfield;
    border-radius: 0;
    height: 40px;
}

.qyt-qty input::-webkit-inner-spin-button,
.qyt-qty input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qyt-remove {
    width: 36px;
    min-height: 44px;
    font-size: 24px;
    color: #66727e;
    background: transparent;
    border: 0;
    padding: 0;
}

.qyt-remove:hover {
    color: var(--qyt-accent);
}

.qyt-cart-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 16px;
}

.qyt-voucher-row {
    display: grid;
    grid-template-columns: 1fr auto 36px;
    gap: 12px;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid var(--qyt-line);
}

.qyt-empty {
    text-align: center;
    padding: 45px 16px;
}

.qyt-empty h2 {
    margin-bottom: 20px;
}

.qyt-flow .qyt-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.4;
    white-space: normal;
}

.qyt-flow .qyt-btn-primary {
    background: var(--qyt-accent);
    box-shadow: 0 5px 14px rgba(0,0,0,.13);
}

.qyt-flow .qyt-btn-primary:hover {
    background: var(--qyt-accent-hover);
}

.qyt-flow .qyt-btn-secondary {
    border-color: #dfe4e9;
}

.qyt-flow .qyt-btn-outline {
    background: #fff;
}

.qyt-flow .qyt-btn-full {
    width: 100%;
    margin-top: 15px;
}

.qyt-save-details {
    justify-self: start;
}

.qyt-pay-button {
    width: 100%;
    min-height: 54px;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(95deg,#111111,#111111);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    box-shadow: 0 7px 18px rgba(0,0,0,.17);
}

.qyt-pay-button span {
    margin-left: 8px;
    white-space: nowrap;
}

.qyt-desktop-pay {
    margin-top: 2px;
}

.qyt-form-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
}

.qyt-full-span {
    grid-column: 1/-1;
}

.qyt-flow label {
    display: block;
    font-size: 13px;
    font-weight: 650;
    margin: 0 0 6px;
    line-height: 1.45;
}

.qyt-flow label small {
    font-size: 11px;
    font-weight: 400;
    color: var(--qyt-muted);
}

.qyt-flow input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.qyt-flow select,
.qyt-flow textarea {
    width: 100%;
    height: 44px;
    min-width: 0;
    border: 1px solid #ced6df;
    border-radius: 8px;
    background: #fff;
    color: var(--qyt-ink);
    padding: 10px 11px;
    font-size: 14px;
    box-shadow: none;
}

.qyt-flow textarea {
    height: auto;
    resize: vertical;
    min-height: 76px;
}

.qyt-flow input:focus,
.qyt-flow select:focus,
.qyt-flow textarea:focus {
    border-color: #555555;
    outline: 2px solid #dddddd;
    outline-offset: 0;
}

.qyt-flow input[aria-invalid=true],
.qyt-flow select[aria-invalid=true],
.qyt-flow textarea[aria-invalid=true] {
    border-color: #555555;
    outline-color: #dddddd;
}

.qyt-flow .qyt-check {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: 13px;
    font-weight: 400;
    margin: 0;
}

.qyt-check input[type=checkbox],
.qyt-check input[type=radio] {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 1px 0 0;
    accent-color: var(--qyt-accent);
}

.qyt-field-error {
    display: block;
    margin-top: 5px;
    line-height: 1.45;
}

.qyt-field-error:empty {
    display: none;
}

.qyt-custom-options {
    display: grid;
    gap: 8px;
}

.qyt-address>.qyt-field {
    margin-bottom: 14px;
}

.qyt-comment-field {
    margin-top: 18px;
    margin-bottom: 15px;
}

.qyt-flow #qyt-details-status {
    margin: 10px 0 0;
    color: #8c5619;
}

.qyt-flow #qyt-details-status:empty {
    display: none;
}

.qyt-flow #qyt-details-status.is-saved {
    color: var(--qyt-green);
}

.qyt-flow .qyt-choice-card {
    grid-template-columns: 18px minmax(0,1fr) auto;
    cursor: pointer;
    font-weight: 400;
}

.qyt-choice-card.is-selected {
    border-color: #7da4e8;
    background: #f2f7ff;
    box-shadow: inset 0 0 0 1px rgba(50,100,190,.07);
}

.qyt-choice-description {
    min-width: 0;
}

.qyt-choice-description strong {
    font-size: 13px;
    font-weight: 700;
    display: block;
    overflow-wrap: anywhere;
}

.qyt-choice-description small {
    display: block;
    font-size: 12px;
    color: var(--qyt-muted);
    line-height: 1.4;
    margin-top: 3px;
    overflow-wrap: anywhere;
}

.qyt-choice-price {
    font-size: 13px;
    white-space: nowrap;
}

.qyt-payment-grid {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 10px;
}

.qyt-payment-grid .qyt-choice-card {
    grid-template-columns: 18px minmax(0,1fr);
}

.qyt-free-shipping {
    margin: 13px 0 0 !important;
    padding: 10px;
    background: #eff9f2;
    color: var(--qyt-green) !important;
    font-size: 12px;
    border-radius: 8px;
}

.qyt-offer {
    min-width: 0;
}

.qyt-offer+.qyt-offer {
    border-left: 1px solid var(--qyt-line);
    padding-left: 16px;
}

.qyt-offer:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--qyt-line);
    padding: 16px 0 0;
}

.qyt-input-action {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
}

.qyt-input-action .qyt-btn {
    padding-left: 12px;
    padding-right: 12px;
}

.qyt-applied {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    margin-top: 9px;
    background: #eff9f2;
    color: var(--qyt-green);
    border: 1px solid #cce5d4;
    border-radius: 8px;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.qyt-applied .qyt-text-button {
    font-size: 12px;
    flex-shrink: 0;
}

.qyt-offer .qyt-small {
    margin: 8px 0;
}

.qyt-terms {
    padding: 3px 2px;
}

.qyt-alert {
    padding: 13px 16px;
    background: #eff7ff;
    border: 1px solid #c8ddf6;
    border-radius: 10px;
    color: #244971;
    margin-bottom: 18px;
    font-size: 13px;
    overflow-wrap: anywhere;
    scroll-margin-top: 25px;
}

.qyt-alert p {
    margin: 4px 0;
}

.qyt-alert-error {
    border-color: #edc3c5;
}

.qyt-mobile-paybar {
    display: none;
}

.qyt-payment-ready {
    scroll-margin-top: 25px;
}

.qyt-payment-ready>h2 {
    margin-bottom: 12px;
}

.qyt-payment-ready>p {
    font-size: 13px;
}

.qyt-flow #qyt-native-payment {
    padding: 16px 0;
    margin: 15px 0;
    border-top: 1px solid var(--qyt-line);
    border-bottom: 1px solid var(--qyt-line);
}

.qyt-flow #qyt-native-payment:after {
    content: "";
    display: block;
    clear: both;
}

.qyt-flow #qyt-native-payment input[type=submit],
.qyt-flow #qyt-native-payment input[type=button] {
    width: auto;
    min-height: 46px;
    border: 0;
    border-radius: 9px;
    background: var(--qyt-accent);
    color: #fff;
    font-weight: 700;
    padding: 12px 20px;
    cursor: pointer;
}

.qyt-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(15,25,38,.48);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.qyt-modal-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 26px;
    width: 100%;
    max-width: 430px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 15px 60px rgba(0,0,0,.2);
}

.qyt-modal-card h2 {
    margin: 0 36px 20px 0;
}

.qyt-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
}

.qyt-modal-card form>p {
    font-size: 13px;
    margin: 15px 0 0;
}

.qyt-success-icon {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #eaf8ef;
    color: var(--qyt-green);
    font-size: 38px;
    font-weight: 800;
    margin: 0 auto 18px;
}

.qyt-success-icon.is-pending {
    background: #fff4df;
    color: #965d10;
}

.qyt-success-description {
    max-width: 620px;
    margin: 0 auto 22px !important;
    color: var(--qyt-muted) !important;
    font-size: 14px;
    line-height: 1.7 !important;
}

.qyt-success-card {
    text-align: left;
    padding: 22px;
}

.qyt-success-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--qyt-line);
}

.qyt-success-top>div>span {
    font-size: 12px;
    display: block;
}

.qyt-success-top strong {
    font-size: 21px;
    display: block;
}

.qyt-status-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--qyt-green);
    background: #eaf8ef;
    padding: 7px 11px;
    border-radius: 20px;
}

.qyt-status-badge.is-pending {
    color: #8b5712;
    background: #fff4df;
}

.qyt-success-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
    margin: 0;
    padding: 20px 0;
    border-bottom: 1px solid var(--qyt-line);
}

.qyt-success-grid dt {
    font-size: 12px;
    color: var(--qyt-muted);
    font-weight: 400;
    margin-bottom: 5px;
}

.qyt-success-grid dd {
    font-size: 13px;
    font-weight: 650;
    margin: 0;
    overflow-wrap: anywhere;
}

.qyt-receipt-totals {
    max-width: 450px;
    margin: 15px 0 0 auto;
}

.qyt-timeline {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.qyt-timeline li {
    position: relative;
    flex: 1;
    text-align: center;
    padding: 28px 8px 0;
    font-size: 12px;
    color: var(--qyt-muted);
}

.qyt-timeline li:before {
    position: absolute;
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d9e0e7;
    top: 5px;
    left: calc(50% - 7px);
    z-index: 2;
    box-shadow: 0 0 0 4px #fff;
}

.qyt-timeline li+li:after {
    position: absolute;
    content: "";
    height: 2px;
    width: 100%;
    top: 11px;
    right: 50%;
    background: #dde4ea;
}

.qyt-timeline li.is-done:before {
    background: var(--qyt-green);
}

.qyt-timeline li.is-current:before {
    background: var(--qyt-accent);
}

.qyt-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 14px;
}

.qyt-bank-instructions {
    text-align: left;
    padding: 20px;
    margin-top: 18px;
}

.qyt-bank-instructions>div {
    white-space: pre-line;
    overflow-wrap: anywhere;
    margin-top: 12px;
}

.qyt-checkout-side,
.qyt-cart-grid>aside {
    position: sticky;
    top: 20px;
    align-self: start;
}

.qyt-checkout-side .qyt-summary,
.qyt-cart-grid>aside .qyt-summary {
    position: static;
}

.qyt-checkout-side.qyt-sidebar-tall,
.qyt-cart-grid>aside.qyt-sidebar-tall {
    position: static;
}

@media (max-width:1100px) {
    .qyt-page {
        padding-left: 20px;
        padding-right: 20px;
    }

    .qyt-cart-row {
        grid-template-columns: 65px minmax(0,1fr) 110px 75px 28px;
        gap: 8px;
    }

    .qyt-product-image img {
        width: 65px;
        height: 65px;
    }

    .qyt-cart-grid {
        grid-template-columns: minmax(0,1fr) 300px;
    }

    .qyt-cart-row .qyt-qty {
        width: 110px;
    }

    .qyt-cart-row .qyt-qty input {
        width: 40px;
    }

    .qyt-checkout-grid {
        grid-template-columns: minmax(0,1fr) 330px;
    }
}

@media (max-width:1020px) {
    .qyt-checkout-side,
    .qyt-cart-grid>aside {
        position: static;
    }

    .qyt-cart-grid,
    .qyt-checkout-grid {
        grid-template-columns: minmax(0,1fr);
    }

    .qyt-summary {
        position: static;
    }

    .qyt-checkout-side {
        grid-template-columns: minmax(0,1.15fr) minmax(0,1fr);
        gap: 14px;
        align-items: start;
    }

    .qyt-checkout-side .qyt-summary {
        grid-row: 1/span 2;
    }

    .qyt-support {
        margin-top: 0;
    }

    .qyt-cart-row {
        grid-template-columns: 80px minmax(0,1fr) 116px 100px 36px;
        gap: 12px;
    }

    .qyt-product-image img {
        width: 80px;
        height: 80px;
    }

    .qyt-brand img {
        width: 150px;
    }
}

@media (max-width:760px) {
    .qyt-checkout-side {
        grid-template-columns: 1fr;
    }

    .qyt-checkout-side .qyt-summary {
        grid-row: auto;
    }
}

@media (max-width:680px) {
    .qyt-brand img {
        width: 150px;
        height: 46px;
    }

    .qyt-page {
        padding: 20px 12px 28px;
    }

    .qyt-flow[data-page=checkout] .qyt-page {
        padding-bottom: calc(112px + env(safe-area-inset-bottom,0px));
    }

    .qyt-flow h1 {
        font-size: 23px;
        margin-bottom: 17px;
    }

    .qyt-checkout-grid,
    .qyt-checkout-stack,
    .qyt-checkout-stack form,
    .qyt-checkout-stack #qyt-editable {
        gap: 13px;
    }

    .qyt-full-span {
        grid-column: auto;
    }

    .qyt-flow input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
    .qyt-flow select,
    .qyt-flow textarea {
        font-size: 16px;
    }

    .qyt-cart-row {
        grid-template-columns: 62px minmax(0,1fr) auto;
        gap: 10px;
        align-items: start;
    }

    .qyt-product-image img {
        width: 62px;
        height: 62px;
    }

    .qyt-product-info {
        grid-column: 2;
        grid-row: 1;
    }

    .qyt-flow .qyt-product-name {
        font-size: 14px;
    }

    .qyt-product-info small {
        font-size: 11px;
    }

    .qyt-product-total {
        grid-column: 3;
        grid-row: 1;
        font-size: 13px;
    }

    .qyt-cart-row .qyt-qty {
        grid-column: 2;
        grid-row: 2;
        width: 116px;
    }

    .qyt-cart-row .qyt-qty input {
        width: 46px;
        height: 40px;
        font-size: 15px !important;
        padding: 0;
        border: 0;
    }

    .qyt-cart-row .qyt-remove {
        grid-column: 3;
        grid-row: 2;
        justify-self: end;
    }

    .qyt-cart-actions {
        flex-direction: column;
        padding: 13px;
    }

    .qyt-cart-actions .qyt-btn {
        width: 100%;
    }

    .qyt-offer+.qyt-offer {
        border-left: 0;
        border-top: 1px solid var(--qyt-line);
    }

    .qyt-payment-grid {
        grid-template-columns: minmax(0,1fr) minmax(0,1fr);
        gap: 8px;
    }

    .qyt-choice-description strong {
        font-size: 13px;
    }

    .qyt-choice-description small {
        font-size: 11px;
    }

    .qyt-payment-grid .qyt-choice-card {
        grid-template-columns: 17px minmax(0,1fr);
    }

    .qyt-desktop-pay {
        display: none;
    }

    .qyt-mobile-paybar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        display: grid;
        grid-template-columns: minmax(90px,.85fr) minmax(0,1.5fr);
        gap: 12px;
        align-items: center;
        padding: 11px 14px calc(11px + env(safe-area-inset-bottom,0px));
    }

    .qyt-mobile-paybar small {
        font-size: 11px;
        color: var(--qyt-muted);
    }

    .qyt-mobile-paybar strong {
        display: block;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .qyt-mobile-paybar .qyt-pay-button {
        font-size: 15px;
        min-height: 48px;
        padding: 11px;
    }

    .qyt-success-card {
        padding: 17px;
    }

    .qyt-success-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .qyt-success-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .qyt-address-receipt {
        grid-column: 1/-1;
    }

    .qyt-success-description {
        font-size: 13px;
    }

    .qyt-timeline li {
        font-size: 11px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .qyt-save-details {
        width: 100%;
    }

    .qyt-modal-card {
        padding: 23px 18px;
    }
}

@media (max-width:359px) {
    .qyt-page {
        padding-left: 9px;
        padding-right: 9px;
    }

    .qyt-cart-row {
        grid-template-columns: 52px minmax(0,1fr) auto;
        gap: 8px;
    }

    .qyt-product-image img {
        width: 52px;
        height: 52px;
    }

    .qyt-product-total {
        font-size: 12px;
    }

    .qyt-flow .qyt-product-name {
        font-size: 13px;
    }

    .qyt-payment-grid {
        grid-template-columns: 1fr;
    }

    .qyt-mini-product {
        grid-template-columns: 42px minmax(0,1fr) auto;
    }

    .qyt-success-grid {
        grid-template-columns: 1fr;
    }

    .qyt-address-receipt {
        grid-column: auto;
    }
}

body.qyt-checkout-shell {
    margin: 0;
    background: #fff;
    color: #242424;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,"Microsoft YaHei",sans-serif;
    font-size: 14px;
}

.qyt-checkout-shell .qyt-flow {
    background: #fff;
}

.qyt-checkout-shell .qyt-flow-header {
    grid-template-columns: 210px 1fr 170px;
    background: #fff;
}

.qyt-checkout-shell .qyt-flow .qyt-brand img {
    object-fit: contain;
    object-position: left center;
}

.qyt-checkout-shell .qyt-panel {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.qyt-checkout-shell .qyt-section {
    padding: 0;
    margin: 0 0 27px;
    background: transparent;
}

.qyt-checkout-shell .qyt-flow h2 {
    letter-spacing: -.25px;
}

.qyt-checkout-shell .qyt-field>label,
.qyt-checkout-shell .qyt-offer>label {
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 7px;
}

.qyt-checkout-shell .qyt-flow input:not([type=radio]):not([type=checkbox]):not([type=hidden]),
.qyt-checkout-shell .qyt-flow select,
.qyt-checkout-shell .qyt-flow textarea {
    border: 1px solid #bfc1c3;
    border-radius: 6px;
    min-height: 50px;
    font-size: 15px;
    background: #fff;
    box-shadow: none;
    padding: 12px;
}

.qyt-checkout-shell .qyt-flow input:focus,
.qyt-checkout-shell .qyt-flow select:focus,
.qyt-checkout-shell .qyt-flow textarea:focus {
    border-color: #111111;
    outline: 1px solid #111111;
    outline-offset: 0;
    box-shadow: none;
}

.qyt-checkout-shell .qyt-flow input[readonly] {
    background: #f7f7f7;
    color: #555;
}

.qyt-checkout-shell .qyt-payment-grid {
    grid-template-columns: minmax(0,1fr);
}

.qyt-checkout-shell .qyt-flow .qyt-btn,
.qyt-checkout-shell .qyt-flow .qyt-pay-button {
    border-radius: 6px;
    box-shadow: none;
    background-image: none;
    min-height: 48px;
    font-weight: 600;
}

.qyt-checkout-shell .qyt-flow .qyt-pay-button,
.qyt-checkout-shell .qyt-flow .qyt-btn-primary {
    background: #b4161e;
    color: #fff;
}

.qyt-checkout-shell .qyt-save-details {
    margin-top: 15px;
}

.qyt-checkout-shell .qyt-checkout-stack #qyt-editable,
.qyt-checkout-shell .qyt-checkout-stack form {
    gap: 0;
}

.qyt-checkout-shell .qyt-summary {
    padding: 0;
    background: transparent;
}

.qyt-summary-disclosure>summary {
    display: none;
    list-style: none;
}

.qyt-summary-disclosure>summary::-webkit-details-marker {
    display: none;
}

.qyt-checkout-shell .qyt-summary .qyt-section-head h2 {
    font-size: 17px;
}

.qyt-checkout-shell .qyt-mini-product {
    grid-template-columns: 64px minmax(0,1fr) auto;
    gap: 13px;
    border: 0;
}

.qyt-checkout-shell .qyt-mini-product img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
}

.qyt-checkout-shell .qyt-mini-product strong {
    font-weight: 550;
    font-size: 13px;
    line-height: 1.4;
}

.qyt-checkout-shell .qyt-mini-product small {
    font-size: 12px;
    line-height: 1.4;
    color: #666;
}

.qyt-checkout-shell .qyt-mini-product b {
    font-size: 14px;
    font-weight: 500;
}

.qyt-summary-offers {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.qyt-checkout-shell .qyt-summary-offers .qyt-section-head {
    display: none;
}

.qyt-checkout-shell .qyt-offer+.qyt-offer {
    border: 0;
    padding: 0;
}

.qyt-checkout-shell .qyt-offer:nth-child(3) {
    grid-column: auto;
}

.qyt-checkout-shell .qyt-input-action {
    gap: 9px;
}

.qyt-checkout-shell .qyt-total-final {
    border-top: 0;
    padding-top: 17px;
}

.qyt-contact-recovery {
    padding-top: 6px;
    font-size: 12px;
}

.qyt-contact-tools {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.qyt-checkout-shell .qyt-contact-tools .qyt-text-button {
    font-size: 12px;
}

.qyt-checkout-shell .qyt-contact-recovery .qyt-check {
    align-items: flex-start;
    line-height: 1.55;
    font-size: 12px;
}

.qyt-shell-footer {
    border-top: 1px solid #e6e6e6;
    display: flex;
    gap: 20px;
    color: #737373;
    font-size: 12px;
}

.qyt-checkout-shell .qyt-flow[data-page=cart] .qyt-page {
    padding-top: 32px;
}

.qyt-checkout-shell .qyt-cart-grid {
    grid-template-columns: minmax(0,1.45fr) minmax(290px,1fr);
    gap: 32px;
}

.qyt-checkout-shell .qyt-cart-grid>aside {
    padding: 24px;
    background: #f7f7f7;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
}

.qyt-checkout-shell .qyt-cart-row {
    padding: 20px 0;
    border-bottom: 1px solid #e3e3e3;
}

.qyt-checkout-shell .qyt-cart-list {
    border: 0;
}

.qyt-checkout-shell .qyt-qty input {
    padding: 0 !important;
    min-height: 36px !important;
    border: 0 !important;
    border-radius: 0 !important;
}

.qyt-checkout-shell .qyt-success-page {
    padding-top: 42px;
    max-width: 790px;
    text-align: left;
}

.qyt-checkout-shell .qyt-success-icon {
    margin-left: 0;
}

.qyt-checkout-shell .qyt-success-description {
    margin-left: 0 !important;
}

.qyt-checkout-shell .qyt-success-card,
.qyt-checkout-shell .qyt-bank-instructions {
    border: 1px solid #dadada;
    border-radius: 7px;
    padding: 23px;
}

.qyt-checkout-shell .qyt-success-actions {
    justify-content: flex-start;
}

.qyt-checkout-shell .qyt-flow .qyt-recovery-page {
    max-width: 660px;
    padding-top: 50px;
    padding-bottom: 70px;
    line-height: 1.7;
}

.qyt-checkout-shell .qyt-recovery-page form {
    margin: 24px 0;
}

.qyt-checkout-shell .qyt-keyboard-open .qyt-mobile-paybar {
    display: none;
}

@media (max-width:1100px) {
    .qyt-checkout-shell .qyt-flow-header {
        grid-template-columns: 165px 1fr 145px;
    }

    .qyt-checkout-shell .qyt-checkout-stack {
        padding-right: 25px;
    }

    .qyt-checkout-shell .qyt-checkout-side {
        padding-left: 25px;
    }

    .qyt-checkout-shell .qyt-flow .qyt-page {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width:1020px) {
    .qyt-summary-disclosure>summary {
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        cursor: pointer;
        border-bottom: 1px solid #ddd;
        font-size: 14px;
    }

    .qyt-summary-disclosure>summary strong {
        color: #252525;
        font-size: 18px;
    }

    .qyt-checkout-shell .qyt-summary-disclosure .qyt-section-head {
        margin-bottom: 10px;
    }

    .qyt-checkout-shell .qyt-cart-grid {
        grid-template-columns: 1fr;
    }

    .qyt-checkout-shell .qyt-cart-grid>aside {
        position: static;
    }
}

@media (max-width:680px) {
    .qyt-checkout-shell .qyt-brand {
        justify-content: flex-start;
    }

    .qyt-summary-disclosure>summary {
        padding-left: 20px;
        padding-right: 20px;
    }

    .qyt-checkout-shell .qyt-summary-disclosure .qyt-summary {
        padding-left: 20px;
        padding-right: 20px;
    }

    .qyt-checkout-shell .qyt-flow input:not([type=radio]):not([type=checkbox]):not([type=hidden]),
    .qyt-checkout-shell .qyt-flow select,
    .qyt-checkout-shell .qyt-flow textarea {
        font-size: 16px;
    }

    .qyt-checkout-shell .qyt-section {
        margin-bottom: 25px;
    }

    .qyt-checkout-shell .qyt-flow .qyt-page {
        padding-bottom: calc(110px + env(safe-area-inset-bottom,0px));
    }

    .qyt-checkout-shell .qyt-flow[data-page=cart] .qyt-page,
    .qyt-checkout-shell .qyt-flow[data-page=success] .qyt-page {
        padding-bottom: 35px;
    }

    .qyt-checkout-shell .qyt-cart-grid {
        gap: 22px;
    }

    .qyt-checkout-shell .qyt-cart-row {
        padding: 17px 0;
    }

    .qyt-checkout-shell .qyt-cart-grid>aside {
        padding: 20px;
    }

    .qyt-checkout-shell .qyt-mobile-paybar {
        box-shadow: none;
        border-top: 1px solid #ddd;
    }

    .qyt-checkout-shell .qyt-mobile-paybar strong {
        font-size: 20px;
    }

    .qyt-checkout-shell .qyt-success-card,
    .qyt-checkout-shell .qyt-bank-instructions {
        padding: 18px;
    }

    .qyt-shell-footer {
        font-size: 11px;
    }

    .qyt-checkout-shell .qyt-summary .qyt-mini-product {
        grid-template-columns: 56px minmax(0,1fr) auto;
    }

    .qyt-checkout-shell .qyt-mini-product img {
        width: 56px;
        height: 56px;
    }
}

@media (max-width:359px) {
    .qyt-checkout-shell .qyt-flow .qyt-page {
        padding-left: 15px;
        padding-right: 15px;
    }

    .qyt-checkout-shell .qyt-checkout-side {
        margin-left: -15px;
        margin-right: -15px;
    }

    .qyt-checkout-shell .qyt-flow-header {
        padding-left: 15px;
        padding-right: 15px;
    }

    .qyt-checkout-shell .qyt-cart-row {
        grid-template-columns: 48px minmax(0,1fr) auto;
    }
}

.qyt-checkout-shell .qyt-flow {
    --qyt-accent: #111;
    --qyt-accent-hover: #292929;
    --qyt-ink: #171717;
    --qyt-muted: #686868;
    --qyt-line: #dedede;
    --qyt-green: #343434;
    --qyt-blue: #111;
    --qyt-summary-bg: #f6f6f6;
    max-width: 1280px;
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",Arial,sans-serif;
}

.qyt-flow .qyt-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    vertical-align: middle;
    stroke: currentColor;
}

.qyt-checkout-shell .qyt-flow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 44px;
    border-bottom: 1px solid #e5e5e5;
    max-width: none;
}

.qyt-checkout-shell .qyt-flow .qyt-header-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #111;
    border-radius: 8px;
    text-decoration: none;
}

.qyt-header-cart .qyt-icon {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
}

.qyt-checkout-shell .qyt-flow .qyt-page {
    max-width: none;
    padding: 0 44px 48px;
}

.qyt-checkout-shell .qyt-flow[data-page=checkout] .qyt-page {
    background: linear-gradient(to right,#fff 58%,#f6f6f6 58%);
}

.qyt-checkout-shell .qyt-checkout-grid {
    grid-template-columns: minmax(0,1.38fr) minmax(0,1fr);
    gap: 0;
    align-items: start;
}

.qyt-checkout-shell .qyt-checkout-stack {
    padding: 30px 42px 0 0;
    gap: 0;
}

.qyt-checkout-shell .qyt-checkout-stack form,
.qyt-checkout-shell .qyt-checkout-stack #qyt-editable {
    gap: 0;
}

.qyt-checkout-shell .qyt-checkout-side {
    padding: 32px 0 0 38px;
    border-left: 1px solid #dedede;
    background: #f6f6f6;
    position: sticky;
    top: 18px;
    align-self: start;
    min-width: 0;
}

.qyt-checkout-shell .qyt-checkout-side.qyt-sidebar-tall {
    position: static;
}

.qyt-checkout-shell .qyt-flow .qyt-section {
    padding: 0;
    margin: 0 0 30px;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
}

.qyt-checkout-shell .qyt-flow h2 {
    font-size: 21px;
    line-height: 1.25;
    margin: 0 0 17px;
}

.qyt-checkout-shell .qyt-flow h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 11px;
}

.qyt-checkout-shell .qyt-section-head {
    align-items: center;
    margin-bottom: 16px;
}

.qyt-checkout-shell .qyt-section-head h2 {
    margin: 0;
}

.qyt-reassurance {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 14px;
    margin: 0 0 28px;
    font-size: 11px;
    color: #333;
}

.qyt-reassurance>span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.qyt-reassurance .qyt-icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
}

.qyt-checkout-shell .qyt-flow .qyt-btn-primary,
.qyt-checkout-shell .qyt-flow .qyt-pay-button {
    background: #111;
    color: #fff;
    box-shadow: none;
    border: 1px solid #111;
    border-radius: 9px;
    font-weight: 600;
}

.qyt-checkout-shell .qyt-flow .qyt-btn-primary:hover,
.qyt-checkout-shell .qyt-flow .qyt-pay-button:hover:not(:disabled) {
    background: #292929;
}

.qyt-checkout-shell .qyt-flow .qyt-btn-secondary {
    border: 1px solid #ddd;
    background: #f4f4f4;
    color: #333;
    box-shadow: none;
    border-radius: 9px;
}

.qyt-checkout-shell .qyt-flow .qyt-btn-outline {
    color: #111;
    border-color: #aaa;
}

.qyt-checkout-shell .qyt-flow .qyt-text-button {
    color: #111;
    text-decoration: underline;
    font-weight: 400;
    min-height: 36px;
}

.qyt-checkout-shell .qyt-flow a {
    color: #111;
}

.qyt-checkout-shell .qyt-flow .qyt-btn-primary {
    color: #fff;
}

.qyt-checkout-shell .qyt-form-grid {
    gap: 12px;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
}

.qyt-checkout-shell .qyt-field {
    position: relative;
    margin: 0;
    min-width: 0;
}

.qyt-checkout-shell .qyt-field>label {
    position: absolute;
    top: 7px;
    left: 13px;
    margin: 0;
    font-size: 11px;
    line-height: 14px;
    font-weight: 400;
    color: #686868;
    z-index: 1;
    max-width: calc(100% - 26px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.qyt-checkout-shell .qyt-flow .qyt-field input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.qyt-checkout-shell .qyt-field select,
.qyt-checkout-shell .qyt-field textarea {
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background: #fff;
    height: 56px;
    padding: 23px 13px 7px;
    font-size: 15px;
    line-height: 24px;
    box-shadow: none;
    color: #171717;
    width: 100%;
}

.qyt-checkout-shell .qyt-field textarea {
    height: auto;
    min-height: 94px;
    padding-top: 26px;
    resize: vertical;
}

.qyt-checkout-shell .qyt-field input::placeholder,
.qyt-checkout-shell .qyt-field textarea::placeholder {
    color: #848484;
    opacity: 1;
}

.qyt-checkout-shell .qyt-flow .qyt-field input:focus,
.qyt-checkout-shell .qyt-field select:focus,
.qyt-checkout-shell .qyt-field textarea:focus {
    border-color: #111;
    outline: 1px solid #111;
    outline-offset: 0;
}

.qyt-checkout-shell .qyt-flow :focus-visible {
    outline: 2px solid #555;
    outline-offset: 3px;
}

.qyt-checkout-shell .qyt-flow .qyt-field [aria-invalid=true] {
    border: 2px solid #444;
    outline: 0;
}

.qyt-checkout-shell .qyt-field-error {
    color: #333;
    font-size: 12px;
    padding-left: 2px;
}

.qyt-checkout-shell .qyt-field-error:not(:empty)::before {
    content: "! ";
    font-weight: 700;
}

.qyt-checkout-shell .qyt-contact-options {
    display: flex;
    border: 0;
    gap: 25px;
    margin: 0;
    padding: 0 0 0 2px;
    min-width: 0;
}

.qyt-contact-options label {
    display: flex;
    gap: 8px;
    align-items: center !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    margin: 0 !important;
}

.qyt-contact-options input,
.qyt-billing-options input,
.qyt-address-choice input {
    accent-color: #111;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
}

.qyt-checkout-shell .qyt-has-tip input {
    padding-right: 48px !important;
}

.qyt-tooltip {
    position: absolute;
    right: 7px;
    top: 10px;
    z-index: 4;
}

.qyt-flow .qyt-tip-trigger {
    width: 34px;
    height: 34px;
    min-height: 34px;
    border: 0;
    background: transparent;
    color: #707070;
    font-size: 15px;
    font-weight: 650;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.qyt-tip-trigger::before {
    content: "";
    position: absolute;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.qyt-tooltip>[role=tooltip] {
    display: none;
    position: absolute;
    right: 0;
    bottom: calc(100% + 5px);
    background: #292929;
    color: #fff;
    border-radius: 7px;
    padding: 10px 12px;
    width: 225px;
    max-width: calc(100vw - 70px);
    font-size: 12px;
    line-height: 1.45;
    box-shadow: 0 4px 14px #0002;
    z-index: 20;
}

.qyt-tooltip:hover>[role=tooltip],
.qyt-tooltip:focus-within>[role=tooltip],
.qyt-tooltip.is-open>[role=tooltip] {
    display: block;
}

.qyt-member-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 2px 0 5px;
}

.qyt-member-contact>span:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.qyt-member-contact strong,
.qyt-member-contact>span>span {
    display: block;
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 400;
}

.qyt-member-contact .qyt-avatar {
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    background: #f8f8f8;
}

.qyt-delivery-modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    padding: 4px;
    border: 0;
    border-radius: 12px;
    background: #f2f2f2;
    margin: 0 0 22px;
    min-width: 0;
}

.qyt-flow .qyt-delivery-modes label {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0;
    min-height: 52px;
    padding: 8px;
    border-radius: 9px;
    font-weight: 500;
    font-size: 14px;
}

.qyt-delivery-modes label.is-selected {
    background: #fff;
    box-shadow: 0 1px 5px #0002;
}

.qyt-delivery-modes label.is-disabled {
    opacity: .55;
    cursor: not-allowed;
}

.qyt-delivery-modes small {
    display: block;
    font-size: 10px;
    font-weight: 400;
    text-align: center;
}

.qyt-delivery-modes input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.qyt-delivery-modes label:focus-within {
    outline: 2px solid #444;
}

.qyt-locality-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr .85fr;
    gap: 10px;
    min-width: 0;
}

.qyt-address-phone-hint {
    margin: -4px 0 0 !important;
    font-size: 11px !important;
}

.qyt-saved-addresses {
    border: 1px solid #ddd;
    border-radius: 11px;
    padding: 14px;
    margin: 0 0 14px;
    min-width: 0;
}

.qyt-saved-addresses legend {
    font-size: 12px;
    line-height: 1.5;
    border: 0;
    margin: 0;
    padding: 0 4px;
    width: auto;
    color: #6a6a6a;
}

.qyt-flow .qyt-address-choice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 5px;
    padding: 13px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
}

.qyt-address-choice.is-selected {
    background: #f5f5f5;
}

.qyt-address-choice>span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.qyt-address-choice strong,
.qyt-address-choice>span>span {
    display: block;
}

.qyt-address-choice strong {
    font-weight: 550;
}

.qyt-address-choice input {
    margin-top: 1px;
}

.qyt-default-address {
    display: inline-block !important;
    margin-top: 5px;
    padding: 2px 6px !important;
    border-radius: 12px;
    background: #666;
    color: #fff !important;
    font-size: 10px !important;
}

.qyt-address-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.qyt-checkout-shell .qyt-payment-grid {
    display: block;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    overflow: hidden;
    min-width: 0;
}

.qyt-checkout-shell .qyt-flow .qyt-choice-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    margin: 0;
    padding: 15px;
    font-size: 14px;
    border-bottom: 1px solid #dedede;
    min-height: 54px;
}

.qyt-choice-card .qyt-choice-description {
    flex: 1;
    min-width: 0;
}

.qyt-choice-card .qyt-choice-description strong {
    font-weight: 500 !important;
    font-size: 14px !important;
}

.qyt-choice-card .qyt-choice-description small {
    font-size: 12px !important;
}

.qyt-checkout-shell .qyt-flow .qyt-choice-card.is-selected {
    background: #f6f6f6;
    box-shadow: inset 0 0 0 1px #333;
    border-color: transparent;
}

.qyt-checkout-shell .qyt-choice-card input {
    margin: 1px 0 0;
    accent-color: #111;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.qyt-checkout-shell .qyt-choice-list {
    display: grid;
    gap: 0;
    border: 1px solid #dedede;
    border-radius: 10px;
    overflow: hidden;
}

.qyt-checkout-shell .qyt-choice-card:last-child {
    border-bottom: 0;
}

.qyt-checkout-shell .qyt-flow .qyt-method-placeholder {
    margin: 0;
    padding: 18px;
    border-radius: 9px;
    background: #f6f6f6;
    color: #6a6a6a;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.qyt-payment-explanation {
    background: #f7f7f7;
    padding: 18px 22px;
    text-align: center;
    font-size: 12px;
    color: #555;
    line-height: 1.65;
    border-bottom: 1px solid #ddd;
}

.qyt-billing-choice {
    margin-top: 24px;
}

.qyt-billing-options {
    border: 1px solid #ddd;
    border-radius: 9px;
    padding: 13px 15px;
    display: grid;
    gap: 10px;
    margin: 0 0 15px;
    min-width: 0;
}

.qyt-checkout-shell .qyt-flow .qyt-check {
    min-height: 25px;
}

.qyt-checkout-shell .qyt-flow .qyt-check input {
    accent-color: #111;
}

.qyt-checkout-shell .qyt-comment-field {
    margin: 0 0 20px;
}

.qyt-remember {
    border: 1px solid #dedede;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 18px;
}

.qyt-remember-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.qyt-remember h3 {
    margin-bottom: 8px !important;
}

.qyt-checkout-shell .qyt-terms {
    margin: 16px 0 !important;
}

.qyt-policy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid #e6e6e6;
    font-size: 11px;
}

.qyt-policy-links a {
    text-decoration: underline;
}

.qyt-checkout-shell .qyt-mini-product {
    grid-template-columns: 64px minmax(0,1fr) auto !important;
    margin: 0 0 10px;
    padding: 3px 0;
}

.qyt-product-picture {
    position: relative;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    overflow: visible;
}

.qyt-checkout-shell .qyt-product-picture img {
    border: 1px solid #dcdcdc;
    border-radius: 9px;
    background: #fff;
    display: block;
    width: 64px;
    height: 64px;
}

.qyt-quantity-badge {
    position: absolute;
    right: -8px;
    top: -8px;
    background: #666;
    color: #fff;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 22px;
    font-weight: 500;
}

.qyt-checkout-shell .qyt-summary-offers {
    padding: 20px 0;
    margin: 16px 0 0;
    border: 0;
}

.qyt-member-prompt {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.6;
    background: #eee;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 13px;
}

.qyt-member-prompt .qyt-text-button {
    font-size: 12px !important;
    min-height: 25px !important;
    padding: 0 !important;
}

.qyt-checkout-shell .qyt-input-action input {
    height: 54px !important;
    font-size: 14px !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 10px !important;
    background: #fff !important;
    padding: 12px !important;
}

.qyt-checkout-shell .qyt-input-action .qyt-btn {
    min-width: 72px;
    height: 54px;
}

.qyt-reward-offer {
    padding-top: 14px !important;
}

.qyt-flow .qyt-reward-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-weight: 400;
    margin-bottom: 8px;
}

.qyt-reward-label strong {
    display: block;
    font-size: 14px;
    font-weight: 550;
}

.qyt-reward-label small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
}

.qyt-switch {
    position: relative;
    display: block;
    width: 43px;
    height: 25px;
    flex: 0 0 43px;
}

.qyt-switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 2;
    cursor: pointer;
}

.qyt-switch>span {
    display: block;
    border-radius: 15px;
    background: #bbb;
    width: 43px;
    height: 25px;
    transition: background .15s;
}

.qyt-switch>span::after {
    content: "";
    position: absolute;
    background: #fff;
    border-radius: 50%;
    width: 19px;
    height: 19px;
    left: 3px;
    top: 3px;
    box-shadow: 0 1px 2px #0002;
    transition: transform .15s;
}

.qyt-switch input:checked+span {
    background: #111;
}

.qyt-switch input:checked+span::after {
    transform: translateX(18px);
}

.qyt-switch input:focus-visible+span {
    outline: 2px solid #555;
    outline-offset: 3px;
}

.qyt-switch input:disabled+span {
    opacity: .5;
}

.qyt-switch input:disabled {
    cursor: not-allowed;
}

.qyt-checkout-shell .qyt-total-line {
    font-size: 14px;
    padding: 5px 0;
}

.qyt-checkout-shell .qyt-total-line strong {
    font-weight: 500;
}

.qyt-checkout-shell .qyt-total-final {
    margin: 12px 0 20px;
    font-size: 20px;
    line-height: 1.4;
    border: 0;
}

.qyt-total-final>div {
    text-align: right;
}

.qyt-total-final small {
    font-weight: 400;
    font-size: 11px;
    color: #777;
}

.qyt-checkout-shell .qyt-total-final strong {
    font-size: 23px;
    font-weight: 550;
    color: #111;
}

.qyt-earned-points {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background: #eee;
    padding: 14px;
    font-size: 12px;
}

.qyt-earned-points>div {
    min-width: 0;
}

.qyt-earned-points strong {
    font-weight: 550;
    line-height: 1.5;
}

.qyt-earned-points p {
    margin: 4px 0 5px !important;
    color: #616161 !important;
}

.qyt-earned-points small {
    font-size: 10px;
    line-height: 1.4;
    color: #707070;
}

.qyt-shipping-estimate>span:last-child {
    color: #757575;
    font-size: 12px;
    text-align: right;
}

.qyt-shell-footer {
    max-width: 1192px;
    margin: 0 auto;
    padding: 18px 0 30px;
    justify-content: flex-start;
    border-color: #e5e5e5;
    overflow-wrap: anywhere;
}

.qyt-shell-footer a {
    color: #111;
}

.qyt-checkout-shell .qyt-alert-promo {
    background: #f6f6f6;
    color: #333;
    border-color: #ddd;
    margin-top: 18px;
}

.qyt-checkout-shell .qyt-alert-error {
    background: #fafafa;
    color: #222;
    border: 1px solid #aaa;
}

.qyt-checkout-shell .qyt-flow .qyt-import-page {
    max-width: 700px;
    margin: auto;
    padding-top: 38px;
    padding-bottom: 60px;
}

.qyt-import-page form {
    margin-top: 20px;
}

.qyt-import-page .qyt-check {
    margin: 15px 0 !important;
}

.qyt-checkout-shell .qyt-modal-card .qyt-field {
    margin-bottom: 14px;
}

.qyt-checkout-shell .qyt-flow .qyt-payment-ready {
    padding: 20px !important;
    border: 1px solid #ddd !important;
    border-radius: 10px;
    background: #fff;
}

.qyt-payment-ready #qyt-native-payment {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.qyt-payment-ready img {
    max-width: 100%;
}

.qyt-sr-only {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.qyt-custom-options {
    padding-top: 25px;
}

.qyt-field[data-field]>.qyt-btn {
    margin-top: 25px;
}

@media (min-width:1021px) {
    .qyt-checkout-shell .qyt-summary-disclosure>summary {
        display: none;
    }

    .qyt-checkout-shell .qyt-flow[data-page=checkout] .qyt-page>.qyt-alert {
        margin-right: calc(42% + 10px);
    }
}

@media (max-width:1100px) and (min-width:1021px) {
    .qyt-checkout-shell .qyt-flow-header {
        padding-left: 28px;
        padding-right: 28px;
    }

    .qyt-checkout-shell .qyt-flow .qyt-page {
        padding-left: 28px;
        padding-right: 28px;
    }

    .qyt-checkout-shell .qyt-checkout-stack {
        padding-right: 26px;
    }

    .qyt-checkout-shell .qyt-checkout-side {
        padding-left: 24px;
    }
}

@media (max-width:1020px) {
    .qyt-checkout-shell .qyt-flow {
        max-width: 800px;
    }

    .qyt-checkout-shell .qyt-flow[data-page=checkout] .qyt-page {
        background: #fff;
    }

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

    .qyt-checkout-shell .qyt-checkout-stack {
        padding: 0;
    }

    .qyt-checkout-shell .qyt-checkout-side {
        order: -1;
        position: static;
        display: block;
        padding: 0;
        border: 0;
        margin: 0 -44px 26px;
        background: #f6f6f6;
    }

    .qyt-checkout-shell .qyt-summary-disclosure>summary {
        display: flex;
        padding: 19px 44px;
        color: #111;
    }

    .qyt-checkout-shell .qyt-summary-disclosure .qyt-summary {
        padding: 24px 44px;
    }

    .qyt-checkout-shell .qyt-flow-header {
        display: flex;
    }

    .qyt-shell-footer {
        margin-left: 44px;
        margin-right: 44px;
    }

    .qyt-reassurance {
        justify-content: flex-start;
        gap: 12px 24px;
    }

    .qyt-checkout-shell .qyt-locality-row {
        grid-template-columns: 1.1fr 1fr .85fr;
    }
}

@media (max-width:680px) {
    .qyt-checkout-shell .qyt-flow-header {
        padding: 16px 20px;
        display: flex;
    }

    .qyt-checkout-shell .qyt-flow .qyt-page {
        padding-left: 20px;
        padding-right: 20px;
    }

    .qyt-checkout-shell .qyt-flow .qyt-brand img {
        height: 42px;
        width: 145px;
    }

    .qyt-checkout-shell .qyt-checkout-side {
        margin-left: -20px;
        margin-right: -20px;
        margin-bottom: 23px;
    }

    .qyt-checkout-shell .qyt-summary-disclosure>summary,
    .qyt-checkout-shell .qyt-summary-disclosure .qyt-summary {
        padding-left: 20px;
        padding-right: 20px;
    }

    .qyt-checkout-shell .qyt-form-grid {
        grid-template-columns: 1fr;
    }

    .qyt-checkout-shell .qyt-flow .qyt-field input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
    .qyt-checkout-shell .qyt-field select,
    .qyt-checkout-shell .qyt-field textarea {
        font-size: 16px;
    }

    .qyt-reassurance {
        justify-content: space-between;
        gap: 10px;
        font-size: 10px;
        margin-bottom: 24px;
    }

    .qyt-reassurance>span {
        gap: 4px;
    }

    .qyt-checkout-shell .qyt-flow h2 {
        font-size: 20px;
    }

    .qyt-checkout-shell .qyt-mini-product {
        grid-template-columns: 56px minmax(0,1fr) auto !important;
        gap: 12px;
    }

    .qyt-product-picture,
    .qyt-checkout-shell .qyt-product-picture img {
        width: 56px;
        height: 56px;
    }

    .qyt-checkout-shell .qyt-mini-product b {
        font-size: 13px;
    }

    .qyt-member-contact {
        flex-wrap: wrap;
    }

    .qyt-member-contact>a {
        margin-left: 48px;
    }

    .qyt-locality-row {
        gap: 8px;
    }

    .qyt-shell-footer {
        margin: 0 20px;
        padding-bottom: 30px;
    }

    .qyt-policy-links {
        gap: 12px;
    }

    .qyt-checkout-shell .qyt-mobile-paybar {
        background: #fff;
    }

    .qyt-checkout-shell .qyt-mobile-paybar strong {
        color: #111;
    }
}

@media (max-width:430px) {
    .qyt-checkout-shell .qyt-locality-row {
        grid-template-columns: 1fr;
    }

    .qyt-checkout-shell .qyt-reassurance {
        justify-content: flex-start;
        gap: 8px 15px;
    }

    .qyt-flow .qyt-reassurance span {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion:reduce) {
    .qyt-flow * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* ===== qyt_auth.css ===== */

/* QYT Checkout — Phase 1: sign-in, profile, header language switch and account menus.
 * Scoped to the QYT checkout shell. Black/neutral, Shopify-style. */

/* Header tools: language switch sits left of the cart. */

.qyt-checkout-shell .qyt-header-tools {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qyt-checkout-shell .qyt-menu {
    position: relative;
}

.qyt-checkout-shell .qyt-menu > summary {
    list-style: none;
    cursor: pointer;
}

.qyt-checkout-shell .qyt-menu > summary::-webkit-details-marker {
    display: none;
}

.qyt-checkout-shell .qyt-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    color: #111;
    font-size: 14px;
    font-weight: 500;
    user-select: none;
}

.qyt-checkout-shell .qyt-menu-trigger:hover,
.qyt-checkout-shell .qyt-menu[open] > .qyt-menu-trigger {
    background: #f2f2f2;
}

.qyt-checkout-shell .qyt-menu-trigger .qyt-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.qyt-checkout-shell .qyt-menu-trigger .qyt-chevron {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
    transition: transform .15s ease;
}

.qyt-checkout-shell .qyt-menu[open] .qyt-chevron {
    transform: rotate(180deg);
}

.qyt-checkout-shell .qyt-icon-button {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    color: #303030;
}

.qyt-checkout-shell .qyt-menu-list {
    position: absolute;
    top: calc(100% + 6px);
    min-width: 184px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    padding: 6px;
    margin: 0;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}

.qyt-checkout-shell .qyt-menu-right {
    right: 0;
}

.qyt-checkout-shell .qyt-menu-item {
    display: block;
    width: 100%;
    padding: 10px 12px;
    margin: 0;
    border: 0;
    border-radius: 6px;
    background: none;
    color: #111;
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.qyt-checkout-shell .qyt-menu-item:hover,
.qyt-checkout-shell .qyt-menu-item:focus-visible {
    background: #f3f3f3;
    color: #111;
    text-decoration: none;
}

.qyt-checkout-shell .qyt-menu-item.is-active {
    font-weight: 600;
}

.qyt-checkout-shell .qyt-member-contact .qyt-contact-menu {
    margin-left: auto;
    flex: 0 0 auto;
}

.qyt-checkout-shell .qyt-profile-alert {
    margin: 10px 0 0;
}

.qyt-checkout-shell .qyt-profile-alert a {
    color: #111;
    text-decoration: underline;
}

/* Sign-in and profile layout. */

.qyt-checkout-shell .qyt-auth {
    max-width: 480px;
    padding: 8px 0 28px;
}

.qyt-checkout-shell .qyt-flow .qyt-auth-title {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
    color: #111;
    margin: 0 0 8px;
}

.qyt-checkout-shell .qyt-auth-title:focus {
    outline: 0;
}

.qyt-checkout-shell .qyt-auth-sub {
    color: #555;
    font-size: 14px;
    margin: 0 0 20px;
}

.qyt-checkout-shell .qyt-auth-sub .qyt-text-button {
    margin-left: 4px;
}

.qyt-checkout-shell .qyt-auth-step {
    margin: 0;
}

.qyt-checkout-shell .qyt-auth-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 16px 0 8px;
}

.qyt-checkout-shell .qyt-auth .qyt-text-button {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.qyt-checkout-shell .qyt-auth .qyt-text-button:disabled {
    color: #8a8a8a;
    text-decoration: none;
    cursor: default;
}

.qyt-checkout-shell .qyt-auth-back {
    display: inline-block;
    margin-top: 18px;
    font-size: 14px;
}

.qyt-checkout-shell .qyt-auth .qyt-btn-full,
.qyt-checkout-shell .qyt-profile .qyt-btn-full {
    min-height: 52px;
    margin-top: 8px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
}

.qyt-checkout-shell .qyt-auth[aria-busy=true] .qyt-btn-primary {
    opacity: .65;
    cursor: progress;
}

/* Shopify-style floating-label fields. */

.qyt-checkout-shell .qyt-float-field {
    position: relative;
    margin: 0 0 4px;
}

/* The :not() chain matches the general QYT input rule's specificity, which otherwise reset the padding and
   let the typed value run into the floating label (Phase 5). */
.qyt-checkout-shell .qyt-flow .qyt-float-field input:not([type=radio]):not([type=checkbox]):not([type=hidden]) {
    display: block;
    width: 100%;
    height: 56px;
    min-height: 56px;
    padding: 25px 13px 7px;
    margin: 0;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 15px;
    line-height: 22px;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.qyt-checkout-shell .qyt-float-field label {
    position: absolute;
    left: 14px;
    top: 50%;
    margin: 0;
    transform: translateY(-50%);
    color: #707070;
    font-size: 15px;
    font-weight: 400;
    pointer-events: none;
    transition: top .12s ease, font-size .12s ease, transform .12s ease;
}

.qyt-checkout-shell .qyt-float-field input:focus + label,
.qyt-checkout-shell .qyt-float-field input:not(:placeholder-shown) + label {
    top: 9px;
    line-height: 15px;
    transform: none;
    font-size: 12px;
}

.qyt-checkout-shell .qyt-flow .qyt-float-field input:focus {
    border-color: #111;
    outline: 1px solid #111;
    outline-offset: 0;
}

.qyt-checkout-shell .qyt-flow .qyt-float-field input[aria-invalid=true] {
    border-color: #d82c0d;
    outline: 1px solid #d82c0d;
}

.qyt-checkout-shell .qyt-flow .qyt-code-field input:not([type=radio]):not([type=checkbox]):not([type=hidden]) {
    font-size: 20px;
    letter-spacing: .32em;
    font-variant-numeric: tabular-nums;
}

.qyt-checkout-shell .qyt-auth .qyt-field-error,
.qyt-checkout-shell .qyt-profile .qyt-field-error {
    display: block;
    margin: 0 0 12px;
    padding: 0 2px;
    color: #d82c0d;
    font-size: 13px;
}

.qyt-checkout-shell .qyt-auth .qyt-field-error:empty,
.qyt-checkout-shell .qyt-profile .qyt-field-error:empty {
    margin: 0 0 12px;
}

.qyt-checkout-shell .qyt-auth .qyt-field-error:not(:empty)::before,
.qyt-checkout-shell .qyt-profile .qyt-field-error:not(:empty)::before {
    content: none;
}

.qyt-checkout-shell .qyt-auth-alert {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #f3c7bf;
    border-radius: 8px;
    background: #fff4f2;
    color: #8e1f0b;
    font-size: 14px;
}

.qyt-checkout-shell .qyt-auth-alert.is-success {
    border-color: #cfe5d6;
    background: #f2faf4;
    color: #1d5a32;
}

/* Account chooser for shared numbers / emails. */

.qyt-checkout-shell .qyt-auth-accounts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 8px;
}

.qyt-checkout-shell .qyt-auth-account {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.qyt-checkout-shell .qyt-auth-account:hover,
.qyt-checkout-shell .qyt-auth-account:focus-visible {
    border-color: #111;
    box-shadow: 0 0 0 1px #111;
}

.qyt-checkout-shell .qyt-auth-account strong {
    font-size: 15px;
    font-weight: 600;
}

.qyt-checkout-shell .qyt-auth-account span {
    color: #666;
    font-size: 13px;
}

/* Profile page. */

.qyt-checkout-shell .qyt-profile-page {
    display: flex;
    justify-content: center;
    padding: 36px 20px 48px;
}

.qyt-checkout-shell .qyt-profile {
    width: 100%;
}

.qyt-checkout-shell .qyt-profile .qyt-small {
    margin: 2px 2px 4px;
}

.qyt-checkout-shell .qyt-readonly-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 8px 0 20px;
    padding: 12px 14px;
    border: 1px solid #ececec;
    border-radius: 8px;
    background: #fafafa;
}

.qyt-checkout-shell .qyt-readonly-field strong {
    font-size: 15px;
    font-weight: 500;
    color: #111;
}

.qyt-checkout-shell .qyt-readonly-field small {
    font-size: 12px;
}

@media (max-width:1020px) {
    .qyt-checkout-shell .qyt-flow[data-page=auth] .qyt-checkout-side {
        display: none;
    }

    .qyt-checkout-shell .qyt-auth {
        max-width: none;
    }
}

@media (max-width:640px) {
    .qyt-checkout-shell .qyt-header-tools {
        gap: 2px;
    }

    .qyt-checkout-shell .qyt-menu-trigger {
        padding: 0 8px;
    }

    .qyt-checkout-shell .qyt-flow .qyt-auth-title {
        font-size: 21px;
    }

    .qyt-checkout-shell .qyt-profile-page {
        padding: 24px 16px 40px;
    }
}

/* ===== qyt_address.css ===== */

/* QYT Checkout — Phase 2: signed-in address book (delivery and billing) and the address dialog.
 * Scoped to the QYT checkout shell. Black/neutral, Shopify-style; errors use red as in the approved design. */

/* Saved address lists. */

.qyt-checkout-shell .qyt-book {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.qyt-checkout-shell .qyt-book:empty {
    display: none;
}

.qyt-checkout-shell .qyt-book-list {
    display: flex;
    flex-direction: column;
    border: 1px solid #dedede;
    border-radius: 10px;
    background: #fff;
}

.qyt-checkout-shell .qyt-book-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 4px;
    border-top: 1px solid #dedede;
    background: #fff;
}

.qyt-checkout-shell .qyt-book-card:first-child {
    border-top: 0;
    border-radius: 10px 10px 0 0;
}

.qyt-checkout-shell .qyt-book-card:last-child {
    border-radius: 0 0 10px 10px;
}

.qyt-checkout-shell .qyt-book-card:only-child {
    border-radius: 10px;
}

.qyt-checkout-shell .qyt-book-card.is-selected {
    z-index: 1;
    background: #f6f6f6;
    box-shadow: 0 0 0 1px #111;
}

.qyt-checkout-shell .qyt-book-card.is-selected.is-invalid {
    box-shadow: 0 0 0 1px #d82c0d;
}

.qyt-checkout-shell .qyt-flow .qyt-book-choice {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 14px 6px 14px 16px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    cursor: pointer;
}

.qyt-checkout-shell .qyt-book-choice input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 2px 0 0;
    accent-color: #111;
}

.qyt-checkout-shell .qyt-book-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    color: #555;
    font-size: 13.5px;
    overflow-wrap: anywhere;
}

.qyt-checkout-shell .qyt-book-text strong {
    color: #111;
    font-size: 14px;
    font-weight: 600;
}

.qyt-checkout-shell .qyt-book-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.qyt-checkout-shell .qyt-book-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    background: #ebebeb;
    color: #303030;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.qyt-checkout-shell .qyt-book-badge.is-invalid {
    background: #fee9e6;
    color: #8e1f0b;
}

.qyt-checkout-shell .qyt-book-menu {
    flex: 0 0 auto;
    margin: 8px 8px 0 0;
}

.qyt-checkout-shell .qyt-book-menu .qyt-menu-list {
    min-width: 150px;
}

.qyt-checkout-shell .qyt-book-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #f3c7bf;
    border-radius: 10px;
    background: #fff4f2;
    color: #8e1f0b;
    font-size: 14px;
    line-height: 1.5;
}

.qyt-checkout-shell .qyt-book-alert .qyt-icon {
    flex: 0 0 20px;
    margin-top: 1px;
    color: #d82c0d;
}

.qyt-checkout-shell .qyt-book-alert p {
    margin: 0;
}

.qyt-checkout-shell .qyt-flow .qyt-book-link {
    display: inline;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.qyt-checkout-shell .qyt-flow .qyt-book-add {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 4px 2px;
    margin: 0;
    border: 0;
    background: none;
    color: #111;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.qyt-checkout-shell .qyt-flow .qyt-book-add:disabled {
    color: #8a8a8a;
    cursor: default;
}

.qyt-checkout-shell .qyt-book-empty {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Billing address: directly below Delivery. */

.qyt-checkout-shell .qyt-book-billing-desc {
    margin: -4px 0 0;
}

.qyt-checkout-shell .qyt-radio-group {
    min-width: 0;
    margin: 12px 0 0;
    padding: 0;
    border: 1px solid #dedede;
    border-radius: 10px;
    background: #fff;
}

.qyt-checkout-shell .qyt-flow .qyt-radio-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 16px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    cursor: pointer;
}

.qyt-checkout-shell .qyt-radio-row + .qyt-radio-row {
    border-top: 1px solid #dedede;
}

.qyt-checkout-shell .qyt-radio-row input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    accent-color: #111;
}

.qyt-checkout-shell .qyt-radio-panel {
    padding: 14px;
    border-top: 1px solid #dedede;
    border-radius: 0 0 10px 10px;
    background: #f6f6f6;
}

.qyt-checkout-shell .qyt-radio-panel .qyt-book {
    margin-top: 0;
}

/* Address dialog. */

.qyt-checkout-shell .qyt-address-modal,
.qyt-checkout-shell .qyt-address-delete {
    padding: 24px;
    background: rgba(0, 0, 0, .5);
    overscroll-behavior: contain;
}

.qyt-checkout-shell .qyt-flow .qyt-address-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 580px;
    max-height: 92vh;
    max-height: min(92vh, 900px);
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.qyt-checkout-shell .qyt-flow .qyt-address-delete-card {
    max-width: 440px;
}

.qyt-checkout-shell #qyt-address-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
}

.qyt-checkout-shell .qyt-address-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 16px 12px 24px;
}

.qyt-checkout-shell .qyt-flow .qyt-address-modal-head h2 {
    margin: 0;
    color: #111;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.qyt-checkout-shell .qyt-flow .qyt-address-modal-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #303030;
    cursor: pointer;
}

.qyt-checkout-shell .qyt-flow .qyt-address-modal-x:hover {
    background: #f2f2f2;
}

.qyt-checkout-shell .qyt-address-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 6px 24px 20px;
    overflow: auto;
    overscroll-behavior: contain;
}

.qyt-checkout-shell .qyt-address-modal-body > p {
    margin: 0 0 10px;
}

.qyt-checkout-shell .qyt-book-delete-summary {
    color: #111;
    font-size: 14px;
}

.qyt-checkout-shell .qyt-address-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 24px 20px;
    border-top: 1px solid #ebebeb;
    background: #fff;
}

.qyt-checkout-shell .qyt-flow .qyt-address-modal-foot .qyt-btn {
    min-height: 46px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.qyt-checkout-shell .qyt-flow .qyt-btn-danger {
    border: 1px solid #c5280c;
    background: #c5280c;
    color: #fff;
}

.qyt-checkout-shell .qyt-flow .qyt-btn-danger:hover {
    border-color: #a32109;
    background: #a32109;
}

.qyt-checkout-shell .qyt-address-modal[aria-busy=true] [data-qyt-book-submit] {
    opacity: .7;
    cursor: progress;
}

.qyt-checkout-shell .qyt-address-modal .qyt-form-grid {
    gap: 12px;
}

.qyt-checkout-shell .qyt-address-modal .qyt-locality-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.qyt-checkout-shell .qyt-book-default {
    padding-top: 2px;
}

.qyt-checkout-shell .qyt-book-default .qyt-check {
    align-items: center;
    font-size: 14px;
}

.qyt-checkout-shell .qyt-book-default .qyt-check input:disabled + span {
    color: #555;
}

.qyt-checkout-shell .qyt-book-default p {
    margin: 4px 0 0 27px;
}

/* Field errors in the dialog: red border and a message under the field. */

/* !important: the shared field rule uses :not() chains with higher specificity. */

.qyt-checkout-shell .qyt-flow .qyt-address-modal .qyt-field [aria-invalid=true] {
    border-color: #d82c0d !important;
    outline: 1px solid #d82c0d !important;
    outline-offset: 0;
}

.qyt-checkout-shell .qyt-address-modal .qyt-field-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 6px;
    padding: 0 2px;
    color: #d82c0d;
    font-size: 13px;
    line-height: 1.4;
}

.qyt-checkout-shell .qyt-address-modal .qyt-field-error:empty {
    display: none;
}

.qyt-checkout-shell .qyt-address-modal .qyt-field-error:not(:empty)::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    margin-top: 2px;
    border-radius: 50%;
    background: #d82c0d;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.qyt-checkout-shell .qyt-book-form-error {
    margin: 14px 0 0;
    padding: 12px 14px;
    border: 1px solid #f3c7bf;
    border-radius: 8px;
    background: #fff4f2;
    color: #8e1f0b;
    font-size: 14px;
}

.qyt-checkout-shell .qyt-book-form-error:focus {
    outline: 0;
}

@media (max-width:640px) {
    .qyt-checkout-shell .qyt-address-modal {
        padding: 0;
        align-items: stretch;
    }

    .qyt-checkout-shell .qyt-flow .qyt-address-modal .qyt-address-card {
        max-width: none;
        max-height: none;
        height: 100%;
        border-radius: 0;
    }

    .qyt-checkout-shell .qyt-address-delete {
        padding: 16px;
    }

    .qyt-checkout-shell .qyt-address-modal-head {
        padding: 16px 12px 10px 20px;
    }

    .qyt-checkout-shell .qyt-address-modal-body {
        padding: 6px 20px 20px;
    }

    .qyt-checkout-shell .qyt-address-modal-foot {
        padding: 12px 20px calc(16px + env(safe-area-inset-bottom));
    }

    .qyt-checkout-shell .qyt-flow .qyt-address-modal-foot .qyt-btn {
        flex: 1 1 0;
    }

    .qyt-checkout-shell .qyt-address-modal .qyt-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .qyt-checkout-shell .qyt-address-modal .qyt-locality-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qyt-checkout-shell .qyt-address-modal .qyt-locality-row > .qyt-field:last-child {
        grid-column: 1 / -1;
    }

    .qyt-checkout-shell .qyt-flow .qyt-book-choice {
        padding-left: 14px;
    }
}

/* ===== qyt_shopify.css ===== */

/* QYT Checkout — Shopify-style layer (Phase 3), loaded last on cart, sign-in, checkout and success.
 * Black/neutral. Scoped to the QYT shell; it only refines qyt_checkout.css (cleaned up in Phase 4). */

/* ---------- Type and section notes ---------- */

.qyt-checkout-shell .qyt-flow h2 {
    font-weight: 600;
    letter-spacing: -.01em;
}

.qyt-checkout-shell .qyt-flow .qyt-section-note {
    margin: -8px 0 14px;
    color: #616161;
    font-size: 14px;
    line-height: 1.5;
}

.qyt-checkout-shell .qyt-flow .qyt-payment-note .qyt-secure-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.qyt-checkout-shell .qyt-secure-note .qyt-icon {
    flex: 0 0 14px;
}

/* ---------- Controls hidden by request (details save automatically; terms stay accepted) ---------- */

.qyt-checkout-shell .qyt-flow .qyt-save-details[hidden],
.qyt-checkout-shell .qyt-flow .qyt-mobile-paybar {
    display: none !important;
}

.qyt-checkout-shell .qyt-flow .qyt-terms {
    display: block;
    min-height: 0;
    margin: 4px 0 16px;
    color: #616161;
    font-size: 13px;
    line-height: 1.5;
}

.qyt-checkout-shell .qyt-flow .qyt-terms .qyt-terms-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    opacity: 0;
    pointer-events: none;
}

.qyt-checkout-shell .qyt-flow .qyt-terms a {
    color: #111;
    text-decoration: underline;
}

/* ---------- Pay now ---------- */

.qyt-checkout-shell .qyt-flow .qyt-desktop-pay {
    display: block;
    margin: 0;
}

.qyt-checkout-shell .qyt-flow .qyt-desktop-pay .qyt-pay-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .01em;
}

.qyt-checkout-shell .qyt-flow .qyt-pay-button:disabled {
    opacity: 1;
    background: #f2f2f2;
    border-color: #e3e3e3;
    color: #8a8a8a;
    cursor: not-allowed;
}

.qyt-checkout-shell .qyt-flow[data-page=checkout] ~ .qyt-shell-footer {
    padding-bottom: 30px;
}

.qyt-checkout-shell .qyt-redirecting {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #111;
}

.qyt-checkout-shell .qyt-redirecting[hidden] {
    display: none;
}

.qyt-checkout-shell .qyt-spinner {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 2px solid #d4d4d4;
    border-top-color: #111;
    border-radius: 50%;
    animation: qyt-spin .8s linear infinite;
}

@keyframes qyt-spin { to { transform: rotate(360deg); } }

/* ---------- Policy links (bigger) ---------- */

.qyt-checkout-shell .qyt-flow .qyt-policy-links {
    gap: 12px 22px;
    margin: 28px 0 0;
    padding: 20px 0 8px;
    font-size: 14px;
    line-height: 1.5;
}

.qyt-checkout-shell .qyt-flow .qyt-policy-links a {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.qyt-checkout-shell .qyt-flow .qyt-policy-links a:hover {
    color: #555;
}

/* ---------- Delivery / payment method lists: one grouped box, selected row outlined ---------- */

.qyt-checkout-shell .qyt-flow .qyt-payment-explanation {
    padding: 16px 20px;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

/* ---------- Order summary ---------- */

.qyt-checkout-shell .qyt-flow .qyt-total-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-height: 0;
    margin: 0 0 0 4px;
    padding: 0;
    border: 0 !important;
    border-radius: 50%;
    background: none !important;
    box-shadow: none !important;
    color: #707070;
    vertical-align: -5px;
    cursor: pointer;
}

.qyt-checkout-shell .qyt-flow .qyt-total-tip:hover,
.qyt-checkout-shell .qyt-flow .qyt-total-tip:focus-visible {
    color: #111;
}

.qyt-checkout-shell .qyt-flow .qyt-total-tip:disabled {
    opacity: 1;
}

.qyt-checkout-shell .qyt-flow .qyt-savings span,
.qyt-checkout-shell .qyt-flow .qyt-savings strong {
    font-weight: 600;
    color: #111;
}

.qyt-checkout-shell .qyt-flow .qyt-savings[hidden] {
    display: none;
}

.qyt-checkout-shell .qyt-flow .qyt-earned-points {
    margin-top: 18px;
}

@media (min-width:1021px) {
    .qyt-checkout-shell .qyt-flow[data-page=checkout] .qyt-page {
        background: #fff;
    }

    .qyt-checkout-shell .qyt-flow[data-page=checkout] .qyt-checkout-grid {
        align-items: stretch;
    }

    .qyt-checkout-shell .qyt-flow[data-page=checkout] .qyt-checkout-side,
    .qyt-checkout-shell .qyt-flow[data-page=checkout] .qyt-checkout-side.qyt-sidebar-tall {
        position: relative;
        top: auto;
        align-self: stretch;
        padding: 0 0 0 38px;
        border-left: 1px solid #dedede;
        background: #f5f5f5;
        box-shadow: 0 0 0 100vmax #f5f5f5;
        clip-path: inset(0 -100vmax 0 0);
    }

    .qyt-checkout-shell .qyt-flow[data-page=checkout] .qyt-checkout-side > .qyt-summary-disclosure {
        position: sticky;
        top: 0;
        padding: 32px 4px 24px 0;
    }

    .qyt-checkout-shell .qyt-flow[data-page=checkout] .qyt-checkout-side .qyt-summary {
        display: flex;
        flex-direction: column;
        max-height: calc(100vh - 56px);
        padding: 0;
    }

    .qyt-checkout-shell .qyt-flow[data-page=checkout] .qyt-checkout-side .qyt-summary > * {
        flex: 0 0 auto;
    }

    .qyt-checkout-shell .qyt-flow[data-page=checkout] .qyt-checkout-side .qyt-summary {
        overflow-y: auto;
        scrollbar-width: thin;
    }

    .qyt-checkout-shell .qyt-flow[data-page=checkout] .qyt-checkout-side .qyt-summary > [data-qyt-mini-products] {
        flex: 0 1 auto;
        min-height: 84px;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        padding: 10px 6px 0 0;
        margin-top: -10px;
    }

    .qyt-checkout-shell .qyt-flow[data-page=checkout] .qyt-checkout-side > .qyt-summary-disclosure > summary {
        display: none;
    }

    .qyt-checkout-shell .qyt-flow[data-page=cart] .qyt-cart-grid > aside,
    .qyt-checkout-shell .qyt-flow[data-page=cart] .qyt-cart-grid > aside.qyt-sidebar-tall {
        position: sticky;
        top: 24px;
        max-height: calc(100vh - 48px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

@media (min-width:1021px) and (max-height:760px) {
    .qyt-checkout-shell .qyt-flow[data-page=checkout] .qyt-checkout-side > .qyt-summary-disclosure {
        position: static;
    }

    .qyt-checkout-shell .qyt-flow[data-page=checkout] .qyt-checkout-side .qyt-summary {
        max-height: none;
    }
}

@media (max-width:1020px) {
    .qyt-checkout-shell .qyt-flow.qyt-summary-bottom .qyt-mobile-summary-slot .qyt-checkout-side {
        position: static;
        top: auto;
        margin: 0 0 20px;
        padding: 20px 16px;
        border: 1px solid #e6e6e6;
        border-radius: 12px;
        background: #f5f5f5;
        box-shadow: none;
        clip-path: none;
    }

    .qyt-checkout-shell .qyt-flow.qyt-summary-bottom .qyt-summary-disclosure > summary {
        display: none;
    }

    .qyt-checkout-shell .qyt-flow.qyt-summary-bottom .qyt-summary-disclosure .qyt-summary {
        display: block;
        padding: 0;
        background: transparent;
    }

    .qyt-checkout-shell .qyt-flow.qyt-summary-bottom #qyt-summary-title {
        position: static;
        width: auto;
        height: auto;
        margin: 0 0 16px;
        overflow: visible;
        clip: auto;
        white-space: normal;
        font-size: 19px;
    }

    .qyt-checkout-shell .qyt-flow.qyt-summary-bottom .qyt-checkout-grid {
        display: block;
    }

    .qyt-checkout-shell .qyt-flow.qyt-summary-bottom .qyt-checkout-stack {
        padding-right: 0;
    }
}

/* ---------- Dialogs (shipping policy) ---------- */

body.qyt-modal-open {
    overflow: hidden;
}

.qyt-checkout-shell .qyt-dialog {
    padding: 24px;
    background: rgba(0, 0, 0, .5);
    overscroll-behavior: contain;
}

.qyt-checkout-shell .qyt-flow .qyt-dialog-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 640px;
    max-height: 88vh;
    max-height: min(88vh, 860px);
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.qyt-checkout-shell .qyt-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 16px 12px 24px;
    border-bottom: 1px solid #ebebeb;
}

.qyt-checkout-shell .qyt-flow .qyt-dialog-head h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

.qyt-checkout-shell .qyt-flow .qyt-dialog-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #303030;
    cursor: pointer;
}

.qyt-checkout-shell .qyt-flow .qyt-dialog-x:hover {
    background: #f2f2f2;
}

.qyt-checkout-shell .qyt-dialog-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 18px 24px;
    overflow: auto;
    color: #303030;
    font-size: 14px;
    line-height: 1.6;
}

.qyt-checkout-shell .qyt-dialog-body:focus {
    outline: 0;
}

.qyt-checkout-shell .qyt-flow .qyt-dialog-body a {
    color: #111;
    text-decoration: underline;
}

.qyt-checkout-shell .qyt-dialog-body img {
    max-width: 100%;
    height: auto;
}

.qyt-checkout-shell .qyt-dialog-body table {
    max-width: 100%;
}

.qyt-checkout-shell .qyt-flow .qyt-dialog-body h1,
.qyt-checkout-shell .qyt-flow .qyt-dialog-body h2,
.qyt-checkout-shell .qyt-flow .qyt-dialog-body h3 {
    margin: 16px 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.qyt-checkout-shell .qyt-dialog-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 24px 18px;
    border-top: 1px solid #ebebeb;
}

.qyt-checkout-shell .qyt-flow .qyt-dialog-foot .qyt-btn {
    min-height: 44px;
    margin: 0 !important;
    padding: 0 20px;
    border-radius: 8px;
}

@media (max-width:640px) {
    .qyt-checkout-shell .qyt-dialog {
        padding: 0;
        align-items: stretch;
    }

    .qyt-checkout-shell .qyt-flow .qyt-dialog .qyt-dialog-card {
        max-width: none;
        max-height: none;
        height: 100%;
        border-radius: 0;
    }

    .qyt-checkout-shell .qyt-dialog-foot {
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
}

/* ---------- Cart ---------- */

.qyt-checkout-shell .qyt-flow[data-page=cart] h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.qyt-checkout-shell .qyt-flow[data-page=cart] .qyt-summary .qyt-btn-primary {
    min-height: 52px;
    border-radius: 8px;
    font-size: 16px;
}

/* ---------- Order confirmation ---------- */

.qyt-checkout-shell .qyt-flow .qyt-page.qyt-success-page {
    max-width: 880px;
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 24px;
}

.qyt-checkout-shell .qyt-flow .qyt-success-page h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.qyt-checkout-shell .qyt-flow .qyt-success-card {
    border-color: #e3e3e3;
    border-radius: 12px;
}

@media (max-width:680px) {
    .qyt-checkout-shell .qyt-flow .qyt-page.qyt-success-page {
        padding-top: 28px;
    }

    .qyt-checkout-shell .qyt-flow .qyt-success-page h1,
    .qyt-checkout-shell .qyt-flow[data-page=cart] h1 {
        font-size: 24px;
    }
}

/* ===== Phase 5: order summary — no inner scroll bars, compact spacing, quantity badge, Savings icon ===== */

.qyt-checkout-shell .qyt-flow .qyt-quantity-badge {
    top: -9px;
    right: -9px;
    z-index: 1;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #5c5c5c;
    box-shadow: 0 0 0 2px #f5f5f5;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 22px;
}

.qyt-checkout-shell .qyt-flow .qyt-summary-offers {
    margin: 6px 0 0;
    padding: 12px 0 10px;
}

.qyt-checkout-shell .qyt-flow .qyt-totals {
    padding-top: 6px;
}

.qyt-checkout-shell .qyt-flow .qyt-total-line {
    padding: 4px 0;
}

.qyt-checkout-shell .qyt-flow .qyt-total-final {
    margin: 8px 0 18px;
    padding-top: 8px;
}

.qyt-checkout-shell .qyt-flow .qyt-savings-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.qyt-checkout-shell .qyt-flow .qyt-savings-icon {
    flex: 0 0 auto;
}

@media (min-width:1021px) {
    /* Sign-in page: the same grey summary column as checkout (it ended flush with the amounts). */
    .qyt-checkout-shell .qyt-flow[data-page=auth] .qyt-checkout-grid {
        align-items: stretch;
    }

    .qyt-checkout-shell .qyt-flow[data-page=auth] .qyt-checkout-side {
        position: relative;
        top: auto;
        align-self: stretch;
        padding: 0 0 0 38px;
        border-left: 1px solid #dedede;
        background: #f5f5f5;
        box-shadow: 0 0 0 100vmax #f5f5f5;
        clip-path: inset(0 -100vmax 0 0);
    }

    .qyt-checkout-shell .qyt-flow[data-page=auth] .qyt-checkout-side > .qyt-summary {
        position: sticky;
        top: 0;
        padding: 32px 4px 24px 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    /* Checkout: no scroll bars inside the summary. common.js sets --qyt-summary-top: 0 when the summary fits
       the window, otherwise (window height - summary height), so a tall summary scrolls with the page and
       then stays with its Total in view. */
    .qyt-checkout-shell .qyt-flow[data-page=checkout] .qyt-checkout-side > .qyt-summary-disclosure {
        top: var(--qyt-summary-top, 0px);
    }

    .qyt-checkout-shell .qyt-flow[data-page=checkout] .qyt-checkout-side .qyt-summary {
        max-height: none;
        overflow: visible;
    }

    .qyt-checkout-shell .qyt-flow[data-page=checkout] .qyt-checkout-side .qyt-summary > [data-qyt-mini-products] {
        flex: 0 0 auto;
        min-height: 0;
        margin-top: 0;
        padding: 10px 0 0;
        overflow: visible;
    }

    /* Five or more items: only the item list scrolls (room kept for the badge and the bar). */
    .qyt-checkout-shell .qyt-flow[data-page=checkout] .qyt-checkout-side .qyt-summary.qyt-many-items > [data-qyt-mini-products] {
        max-height: 372px;
        padding: 10px 12px 0 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }
}


/* ===== Phase 8: birthday voucher, date of birth, reward tooltip, phone header ===== */

/* "Add your birthday and get BIRTHDAY20" prompt above the coupon box. */
.qyt-checkout-shell .qyt-flow .qyt-birthday-prompt {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 0 10px;
    padding: 11px 12px;
    border: 1px dashed #b9b9b9;
    border-radius: 10px;
    background: #fafafa;
    color: #111;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
}

.qyt-checkout-shell .qyt-flow .qyt-birthday-prompt[hidden] {
    display: none;
}

.qyt-checkout-shell .qyt-flow .qyt-birthday-prompt:hover {
    border-color: #111;
    background: #f4f4f4;
}

.qyt-checkout-shell .qyt-birthday-prompt > span {
    flex: 1 1 auto;
    min-width: 0;
}

.qyt-checkout-shell .qyt-birthday-prompt strong {
    font-weight: 650;
    letter-spacing: .02em;
}

.qyt-checkout-shell .qyt-birthday-prompt .qyt-icon {
    flex: 0 0 20px;
}

.qyt-checkout-shell .qyt-birthday-arrow {
    flex: 0 0 16px;
    color: #707070;
}

.qyt-checkout-shell .qyt-birthday-status {
    margin: 8px 0 0;
    font-size: 12px;
    color: #1a7f37;
}

.qyt-checkout-shell .qyt-birthday-status[hidden] {
    display: none;
}

/* Reward-points tooltip next to "Redeem reward points". */
.qyt-checkout-shell .qyt-reward-label strong {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* The tooltip is placed against the whole points box (not the small button) so it always fits the column. */
.qyt-checkout-shell .qyt-reward-offer {
    position: relative;
}

.qyt-checkout-shell .qyt-tooltip.qyt-reward-tip {
    position: static;
    display: inline-flex;
    margin: -8px 0;
}

.qyt-checkout-shell .qyt-flow .qyt-reward-tip .qyt-tip-trigger {
    width: 30px;
    height: 30px;
    min-height: 30px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    font-weight: 700;
}

.qyt-checkout-shell .qyt-reward-tip > [role=tooltip] {
    right: auto;
    left: 0;
    bottom: calc(100% - 8px);
    width: 280px;
    max-width: 100%;
    font-weight: 400;
    text-align: left;
}

.qyt-checkout-shell .qyt-reward-tip .qyt-tip-line {
    display: block;
}

.qyt-checkout-shell .qyt-reward-tip .qyt-tip-line + .qyt-tip-line {
    margin-top: 3px;
}

/* Date of birth: day / month / year selects (profile page and the birthday window). */
.qyt-checkout-shell .qyt-dob {
    min-width: 0;
    margin: 12px 0 4px;
    padding: 0;
    border: 0;
}

.qyt-checkout-shell .qyt-flow .qyt-dob-legend {
    width: auto;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    font-size: 14px;
    font-weight: 550;
    color: #111;
}

.qyt-checkout-shell .qyt-dob-row {
    display: grid;
    grid-template-columns: .8fr 1.3fr 1fr;
    gap: 8px;
}

.qyt-checkout-shell .qyt-dob-row .qyt-field {
    position: relative;
    min-width: 0;
    margin: 0;
}

.qyt-checkout-shell .qyt-flow .qyt-dob-row select {
    padding-right: 6px;
}

.qyt-checkout-shell .qyt-flow .qyt-dob [aria-invalid=true] {
    border: 2px solid #d82c0d;
}

.qyt-checkout-shell .qyt-profile-gender {
    position: relative;
    margin: 14px 0 18px;
}

.qyt-checkout-shell .qyt-profile-dob .qyt-small {
    margin-top: 6px;
}

.qyt-checkout-shell .qyt-dob-locked[hidden] {
    display: none;
}

/* Birthday window: a small centred card, also on phones. */
.qyt-checkout-shell .qyt-flow .qyt-birthday-modal .qyt-dialog-card {
    max-width: 460px;
}

.qyt-checkout-shell .qyt-birthday-intro {
    margin: 0 0 4px;
}

.qyt-checkout-shell .qyt-birthday-modal .qyt-book-form-error {
    margin-top: 12px;
}

@media (max-width:640px) {
    .qyt-checkout-shell .qyt-dialog.qyt-birthday-modal {
        padding: 16px;
        align-items: center;
    }

    .qyt-checkout-shell .qyt-flow .qyt-dialog.qyt-birthday-modal .qyt-dialog-card {
        height: auto;
        max-height: calc(100vh - 32px);
        border-radius: 12px;
    }

    .qyt-checkout-shell .qyt-birthday-modal .qyt-dialog-foot {
        padding-bottom: 16px;
    }
}

/* Phones: the logo keeps its full size; the three reassurance items share the width evenly, centred. */
@media (max-width:680px) {
    .qyt-checkout-shell .qyt-flow .qyt-brand {
        flex: 0 0 auto;
    }

    .qyt-checkout-shell .qyt-flow .qyt-reassurance {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin: 14px 0 22px;
        padding: 12px 6px;
        border-radius: 10px;
        background: #f6f6f6;
        font-size: 11px;
    }

    .qyt-checkout-shell .qyt-flow .qyt-reassurance > span {
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        min-width: 0;
        font-size: 11px;
        line-height: 1.3;
        text-align: center;
        white-space: normal;
    }
}

/* Phase 12: a signed-in member's reminder choice (checkout, profile) and the reminder opt-out page. */
.qyt-checkout-shell .qyt-flow .qyt-reminder-consent { margin: 12px 0 0; }
.qyt-checkout-shell .qyt-flow .qyt-reminder-consent .qyt-check { align-items: flex-start; }
.qyt-checkout-shell .qyt-flow .qyt-reminder-consent [data-qyt-reminder-status]:empty { display: none; }
.qyt-checkout-shell .qyt-flow .qyt-profile-reminders { margin: 4px 0 18px; padding: 12px 14px; border: 1px solid #e3e3e3; border-radius: 8px; }
.qyt-checkout-shell .qyt-flow .qyt-optout-page form { margin: 18px 0; }
.qyt-checkout-shell .qyt-flow .qyt-optout-done { font-weight: 600; }

/* Phase 13b: member offers on the pages with a total summary, the receipt points line, links on every QYT page. */
.qyt-checkout-shell .qyt-flow .qyt-member-promo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid #111;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}
.qyt-checkout-shell .qyt-flow .qyt-member-promo:hover,
.qyt-checkout-shell .qyt-flow .qyt-member-promo:focus-visible { background: #f6f6f6; color: #111; text-decoration: none; }
.qyt-checkout-shell .qyt-flow .qyt-member-promo-icon { flex: 0 0 auto; }
.qyt-checkout-shell .qyt-flow .qyt-member-promo > span:first-of-type { flex: 1 1 auto; }
.qyt-checkout-shell .qyt-flow .qyt-member-promo-go { flex: 0 0 auto; font-size: 18px; }
.qyt-checkout-shell .qyt-flow .qyt-member-offer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.4;
}
.qyt-checkout-shell .qyt-flow .qyt-member-offer[hidden] { display: none; }
.qyt-checkout-shell .qyt-flow .qyt-member-offer .qyt-icon { flex: 0 0 auto; }
.qyt-checkout-shell .qyt-flow .qyt-member-offer-link {
    padding: 0;
    border: 0;
    background: none;
    color: #111;
    font: inherit;
    font-weight: 600;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.qyt-checkout-shell .qyt-flow .qyt-member-offer-link:hover { color: #555; }
.qyt-checkout-shell .qyt-flow[data-page=cart] .qyt-summary .qyt-member-offer { margin-bottom: 14px; }
.qyt-checkout-shell .qyt-flow .qyt-success-earning { margin: 18px 0 0; text-align: left; }
.qyt-checkout-shell .qyt-flow:not([data-page=checkout]) .qyt-policy-links { justify-content: center; }
.qyt-checkout-shell .qyt-flow .qyt-shipping-estimate > span:first-child { flex: 0 0 auto; white-space: nowrap; }
/* Phase 13e: the email of an order (members who signed in with a mobile number); profile email / mobile with a code. */
.qyt-checkout-shell .qyt-flow .qyt-order-email { margin-top: 14px; }
.qyt-checkout-shell .qyt-flow #qyt-order-email-hint { margin: 6px 2px 0; }
.qyt-checkout-shell .qyt-verify { margin: 8px 0 20px; }
.qyt-checkout-shell .qyt-verify .qyt-readonly-field { margin: 0; }
.qyt-checkout-shell .qyt-verify-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.qyt-checkout-shell .qyt-verify-line strong { min-width: 0; overflow-wrap: anywhere; }
.qyt-checkout-shell .qyt-verify-line .qyt-text-button { flex: 0 0 auto; font-size: 14px; }
.qyt-checkout-shell .qyt-verify-panel { margin-top: 10px; padding: 14px; border: 1px solid #ececec; border-radius: 8px; background: #fff; }
.qyt-checkout-shell .qyt-verify-panel .qyt-float-field { margin-bottom: 4px; }
.qyt-checkout-shell .qyt-verify-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
.qyt-checkout-shell .qyt-flow .qyt-verify-actions .qyt-btn { width: auto; min-width: 132px; margin: 0; }
.qyt-checkout-shell .qyt-verify-actions .qyt-text-button[disabled] { color: #8a8a8a; text-decoration: none; cursor: default; }
@media (max-width: 480px) {
    .qyt-checkout-shell .qyt-flow .qyt-verify-actions .qyt-btn { width: 100%; }
}
/* Phase 13e: the policy links sit below the profile form (they stood beside it and squeezed it on phones). */
.qyt-checkout-shell .qyt-profile-page { flex-direction: column; align-items: center; }
.qyt-checkout-shell .qyt-profile-page > .qyt-profile { max-width: 480px; }
.qyt-checkout-shell .qyt-flow .qyt-profile-page > .qyt-policy-links { width: 100%; max-width: 480px; margin-top: 28px; }
