/* Variante visual exclusiva de ONLY_STORE. No afecta el checkout de comunidad. */
body.only-store-checkout-surface {
    background: #f7f9fc !important;
}

/* Oculta únicamente shells conocidos de la comunidad cuando la página fue
   marcada por store_checkout_dispatcher. El contenido del checkout se conserva. */
body.only-store-checkout-surface > header:not(.only-store-checkout-bar),
body.only-store-checkout-surface > nav,
body.only-store-checkout-surface .main-header,
body.only-store-checkout-surface .community-header,
body.only-store-checkout-surface .community-nav,
body.only-store-checkout-surface .community-topbar,
body.only-store-checkout-surface .community-sidebar,
body.only-store-checkout-surface [data-community-header],
body.only-store-checkout-surface [data-community-nav] {
    display: none !important;
}

.only-store-checkout-bar {
    position: sticky;
    z-index: 11000;
    top: 0;
    border-bottom: 1px solid #e7edf4;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
}

.only-store-checkout-bar__inner {
    display: flex;
    width: min(1140px, calc(100% - 24px));
    min-height: 66px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.only-store-checkout-bar__brand,
.only-store-checkout-bar__back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #17324a;
    text-decoration: none;
}

.only-store-checkout-bar__logo {
    display: grid;
    width: 42px;
    height: 42px;
    overflow: hidden;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #0b3558;
}

.only-store-checkout-bar__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.only-store-checkout-bar__name {
    max-width: 360px;
    overflow: hidden;
    font-size: .96rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.only-store-checkout-bar__back {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #dbe4ee;
    border-radius: 10px;
    background: #fff;
    font-size: .82rem;
    font-weight: 750;
}

.only-store-checkout-bar__back:hover {
    border-color: #0b3558;
    color: #0b3558;
}

.only-store-checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr);
    gap: 16px;
    align-items: start;
}

.only-store-checkout-grid > *,
.only-store-checkout-grid > * > *,
#checkoutApp form {
    min-width: 0;
    max-width: 100%;
}

.only-store-checkout-link {
    text-decoration: none;
}

.only-store-order-confirmation {
    display: grid;
    min-height: 72vh;
    padding: 36px 16px;
    place-items: center;
    background: #f7f9fc;
}

.only-store-order-confirmation__card {
    width: min(560px, 100%);
    padding: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    text-align: center;
}

.only-store-order-confirmation__icon {
    display: grid;
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 50%;
    background: #ecfdf3;
    color: #15803d;
    font-size: 1.55rem;
}

.only-store-order-confirmation__card h1 {
    margin: 0 0 10px;
    color: #172b3f;
    font-size: clamp(1.55rem, 4vw, 2.1rem);
}

.only-store-order-confirmation__card p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.only-store-order-confirmation__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin: 18px 0;
}

.only-store-order-confirmation__meta span {
    padding: 8px 11px;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: .84rem;
    font-weight: 700;
}

.only-store-order-confirmation__note {
    margin-top: 14px !important;
}

.only-store-order-confirmation__button {
    display: inline-flex;
    min-height: 44px;
    margin-top: 22px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 11px;
    background: #0b3558;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 820px) {
    .only-store-checkout-grid {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        max-width: 100%;
    }

    .only-store-checkout-bar__inner {
        width: min(100% - 16px, 1140px);
        gap: 10px;
    }

    .only-store-checkout-bar__name {
        max-width: min(46vw, 190px);
    }

    .only-store-checkout-bar__back {
        flex: 0 0 auto;
        padding-inline: 11px;
    }

    .only-store-checkout-bar__back span { display: none; }
}
