/* Serva Offers Storefront — intentionally scoped to the standalone offers page. */
body.offers-storefront {
    --shop-accent: #25c8ff;
    --shop-accent-strong: #2f8cff;
    --shop-success: #32d795;
    --shop-surface: #071429;
    --shop-surface-soft: #0a1930;
    --shop-line: rgba(148, 190, 224, 0.14);
    --shop-line-strong: rgba(74, 204, 255, 0.3);
    --shop-copy: #f6fbff;
    --shop-muted: #91a6bd;
}

body.offers-storefront .offers-page {
    min-height: calc(100vh - 80px);
    padding: clamp(1.1rem, 2.4vw, 2rem) 0 clamp(2rem, 5vw, 4rem);
    background:
        radial-gradient(circle at 86% 2%, rgba(25, 165, 225, 0.09), transparent 28rem),
        radial-gradient(circle at 8% 38%, rgba(64, 112, 255, 0.06), transparent 24rem),
        linear-gradient(180deg, rgba(3, 10, 24, 0.2), rgba(2, 8, 21, 0.75));
}

body.offers-storefront .offers-page-shell {
    width: min(1160px, calc(100% - 2rem));
    margin: 0 auto;
}

/* Compact opening section */
body.offers-storefront .offers-shop-intro {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 178px;
    padding: clamp(1.35rem, 3vw, 2.15rem);
    overflow: hidden;
    border: 1px solid rgba(76, 199, 248, 0.16);
    border-radius: 26px;
    background:
        linear-gradient(112deg, rgba(8, 29, 55, 0.98), rgba(6, 17, 36, 0.98)),
        var(--shop-surface);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
}

body.offers-storefront .offers-shop-intro::after {
    content: "";
    position: absolute;
    inset: -110px auto auto -50px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(37, 200, 255, 0.08);
    filter: blur(2px);
    pointer-events: none;
}

.offers-shop-intro-copy {
    position: relative;
    z-index: 1;
    max-width: 660px;
}

.offers-shop-eyebrow,
.offers-shop-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #67dcff;
    font-size: 0.76rem;
    font-weight: 800;
}

.offers-shop-eyebrow {
    min-height: 30px;
    padding: 0 0.72rem;
    border: 1px solid rgba(75, 207, 255, 0.22);
    border-radius: 999px;
    background: rgba(37, 200, 255, 0.08);
}

.offers-shop-intro h1 {
    margin: 0.72rem 0 0.35rem;
    color: var(--shop-copy);
    font-size: clamp(1.65rem, 3.5vw, 2.55rem);
    line-height: 1.28;
    letter-spacing: -0.035em;
}

.offers-shop-intro-copy > p {
    max-width: 610px;
    margin: 0;
    color: #a9bad0;
    font-size: clamp(0.86rem, 1.5vw, 1rem);
    line-height: 1.8;
}

.offers-shop-summary {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.7rem;
    min-width: 215px;
}

.offers-shop-count {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(74, 204, 255, 0.2);
    border-radius: 17px;
    background: rgba(37, 200, 255, 0.075);
}

.offers-shop-count > i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
    background: linear-gradient(145deg, #21c6ed, #347df2);
    color: #fff;
    box-shadow: 0 9px 25px rgba(32, 160, 229, 0.24);
}

.offers-shop-count span {
    display: grid;
    line-height: 1.15;
}

.offers-shop-count strong {
    color: #fff;
    font-size: 1.45rem;
}

.offers-shop-count small {
    margin-top: 0.26rem;
    color: var(--shop-muted);
    font-size: 0.7rem;
}

.offers-shop-safe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    color: #a9bdd1;
    font-size: 0.72rem;
}

.offers-shop-safe i { color: var(--shop-success); }

/* Catalog */
body.offers-storefront .offers-page-grid {
    display: block;
    margin-top: clamp(1.5rem, 3vw, 2.2rem);
}

body.offers-storefront .offers-list-shell {
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.offers-shop-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0 0.15rem;
}

.offers-shop-head h2 {
    margin: 0.16rem 0 0;
    color: var(--shop-copy);
    font-size: clamp(1.28rem, 2.5vw, 1.7rem);
}

.offers-shop-head > p {
    margin: 0;
    color: var(--shop-muted);
    font-size: 0.78rem;
}

body.offers-storefront .offers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 0;
}

.offer-shop-card {
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid var(--shop-line);
    border-radius: 21px;
    background: linear-gradient(180deg, rgba(10, 25, 47, 0.98), rgba(6, 16, 32, 0.99));
    box-shadow: 0 15px 36px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.offer-shop-card:hover {
    transform: translateY(-4px);
    border-color: var(--shop-line-strong);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.27), 0 0 0 1px rgba(37, 200, 255, 0.04);
}

.offer-shop-card-link {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
}

.offer-shop-card-link:focus-visible {
    outline: 3px solid rgba(37, 200, 255, 0.65);
    outline-offset: -3px;
    border-radius: inherit;
}

.offer-shop-card-media {
    position: relative;
    height: 205px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(37, 200, 255, 0.13), rgba(52, 94, 229, 0.12));
}

.offer-shop-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 9, 19, 0.02) 42%, rgba(4, 12, 26, 0.74) 100%);
    pointer-events: none;
}

.offer-shop-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.offer-shop-card:hover .offer-shop-card-media img { transform: scale(1.035); }

.offer-shop-card-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: rgba(103, 220, 255, 0.8);
    font-size: 3rem;
}

.offer-shop-card-badges {
    position: absolute;
    z-index: 2;
    inset: 0.75rem 0.75rem auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.offer-shop-discount,
.offer-shop-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 30px;
    padding: 0 0.62rem;
    border-radius: 9px;
    font-size: 0.68rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.offer-shop-discount {
    color: #05251b;
    background: rgba(75, 230, 164, 0.94);
    box-shadow: 0 7px 20px rgba(35, 180, 121, 0.2);
}

.offer-shop-badge {
    max-width: 50%;
    overflow: hidden;
    color: #fff;
    background: rgba(5, 14, 29, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.13);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offer-shop-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 1rem;
}

.offer-shop-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem 0.8rem;
    color: #83a5c1;
    font-size: 0.68rem;
}

.offer-shop-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    min-width: 0;
}

.offer-shop-card-meta i { color: #4ed0f4; }

.offer-shop-card-copy {
    min-height: 92px;
    padding: 0.72rem 0 0.82rem;
}

.offer-shop-card-copy h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--shop-copy);
    font-size: 1.08rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.offer-shop-card-copy p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0.28rem 0 0;
    color: var(--shop-muted);
    font-size: 0.75rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.offer-shop-card-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.7rem;
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(148, 190, 224, 0.1);
}

.offer-shop-price { display: grid; gap: 0.1rem; }
.offer-shop-price > span { color: #7890a8; font-size: 0.62rem; }
.offer-shop-price > div { display: flex; align-items: baseline; gap: 0.42rem; }
.offer-shop-price strong { color: #fff; font-size: 1.23rem; line-height: 1.2; }
.offer-shop-price del { color: #6f8295; font-size: 0.72rem; }
.offer-shop-price small { color: var(--shop-success); font-size: 0.64rem; font-weight: 700; }

.offer-shop-card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 38px;
    padding: 0 0.72rem;
    border-radius: 11px;
    background: rgba(37, 200, 255, 0.1);
    color: #91e8ff;
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.offer-shop-card:hover .offer-shop-card-action {
    background: linear-gradient(135deg, #22bfe9, #347eea);
    color: #fff;
}

/* Loading and empty states */
.offer-shop-card-skeleton { min-height: 380px; pointer-events: none; }
.offer-shop-card-skeleton .offer-shop-card-media,
.offer-shop-card-skeleton .offer-shop-card-body > span {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
    background-size: 220% 100%;
    animation: offerShopShimmer 1.25s linear infinite;
}
.offer-shop-card-skeleton .offer-shop-card-body { gap: 0.65rem; }
.offer-shop-card-skeleton .offer-shop-card-body > span { display: block; height: 14px; border-radius: 999px; }
.offer-shop-card-skeleton .offer-shop-card-body > span:nth-child(2) { width: 72%; }
.offer-shop-card-skeleton .offer-shop-card-body > span:nth-child(3) { width: 46%; }

@keyframes offerShopShimmer { to { background-position: -220% 0; } }

body.offers-storefront .offers-grid > .offer-empty-state {
    min-height: 290px !important;
    padding: 2rem;
    border: 1px solid var(--shop-line);
    border-radius: 22px;
    background: var(--shop-surface);
    box-shadow: none;
}

/* Small trust strip */
.offers-shop-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--shop-line);
    border-radius: 18px;
    background: rgba(7, 20, 41, 0.74);
}

.offers-shop-trust > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 78px;
    padding: 0.75rem 1rem;
}

.offers-shop-trust > div + div { border-inline-start: 1px solid var(--shop-line); }
.offers-shop-trust > div > i { color: #55d9fa; font-size: 1rem; }
.offers-shop-trust span { display: grid; gap: 0.14rem; }
.offers-shop-trust strong { color: #eaf8ff; font-size: 0.78rem; }
.offers-shop-trust small { color: var(--shop-muted); font-size: 0.66rem; }

/* One modal for details and checkout on every viewport */
body.offers-storefront .offers-selection-column:not([open]) {
    display: none !important;
}

body.offers-storefront .offers-selection-column[open].is-offer-dialog {
    position: fixed;
    inset: 0;
    display: block;
    width: min(800px, calc(100% - 2rem));
    max-width: 800px;
    height: auto;
    max-height: min(88dvh, 860px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(99, 207, 248, 0.24);
    border-radius: 24px;
    background: #061225;
    color: var(--shop-copy);
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.62);
}

body.offers-storefront .offers-selection-column.is-offer-dialog::backdrop {
    background: rgba(0, 5, 15, 0.78);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

body.offers-storefront .offer-detail-shell,
body.offers-storefront .offer-purchase-shell {
    display: block;
    gap: 0;
    width: 100%;
    max-height: min(88dvh, 860px);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 0;
    background: #061225;
    box-shadow: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(103, 220, 255, 0.28) transparent;
}

body.offers-storefront .offer-purchase-shell.is-mobile-collapsed,
body.offers-storefront .offers-selection-column.is-checkout .offer-detail-shell {
    display: none !important;
}

body.offers-storefront .offers-selection-column:not(.is-checkout) .offer-purchase-shell {
    display: none !important;
}

body.offers-storefront .offers-selection-column.is-checkout .offer-purchase-shell:not(.hidden) {
    display: block !important;
}

.offer-dialog-topbar {
    position: sticky;
    z-index: 12;
    top: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 58px;
    padding: 0 1rem;
    border-bottom: 1px solid var(--shop-line);
    background: rgba(6, 18, 37, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.offer-dialog-topbar > span:nth-child(2) {
    color: #eaf7ff;
    font-size: 0.82rem;
    font-weight: 800;
}

.offer-dialog-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    justify-self: start;
    padding: 0;
    border: 1px solid var(--shop-line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.035);
    color: #d8e9f6;
    cursor: pointer;
}

.offer-dialog-close:hover { border-color: rgba(255, 115, 129, 0.32); color: #ff8793; }

.offer-dialog-ready {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 0.32rem;
    color: #65dfa9;
    font-size: 0.66rem;
    font-weight: 700;
}

.offer-dialog-content { padding: 1.2rem; }

.offer-dialog-hero {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
    gap: 1.15rem;
    align-items: stretch;
}

.offer-dialog-media {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border: 1px solid var(--shop-line);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(37, 200, 255, 0.12), rgba(52, 94, 229, 0.13));
}

.offer-dialog-media img { width: 100%; height: 100%; object-fit: cover; }

.offer-dialog-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(3, 10, 22, 0.5));
    pointer-events: none;
}

.offer-dialog-media-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 230px;
    color: #6de0ff;
    font-size: 3.5rem;
}

.offer-dialog-discount {
    position: absolute;
    z-index: 2;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    min-height: 32px;
    padding: 0 0.68rem;
    border-radius: 10px;
    background: rgba(71, 225, 159, 0.94);
    color: #05251a;
    font-size: 0.7rem;
    font-weight: 900;
}

.offer-dialog-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: 0.4rem 0;
}

.offer-dialog-badge {
    display: inline-flex;
    max-width: 100%;
    min-height: 28px;
    align-items: center;
    padding: 0 0.62rem;
    overflow: hidden;
    border: 1px solid rgba(75, 207, 255, 0.2);
    border-radius: 999px;
    background: rgba(37, 200, 255, 0.08);
    color: #68dcff;
    font-size: 0.68rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offer-dialog-summary h2 {
    margin: 0.65rem 0 0.18rem;
    color: #fff;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    line-height: 1.45;
}

.offer-dialog-summary > p {
    margin: 0;
    color: var(--shop-muted);
    font-size: 0.79rem;
    line-height: 1.7;
}

.offer-dialog-price {
    width: 100%;
    margin-top: auto;
    padding-top: 1rem;
}

.offer-dialog-price > span { color: #7892aa; font-size: 0.66rem; }
.offer-dialog-price > div { display: flex; align-items: baseline; gap: 0.55rem; margin-top: 0.12rem; }
.offer-dialog-price strong { color: #fff; font-size: 1.75rem; }
.offer-dialog-price del { color: #718497; font-size: 0.82rem; }
.offer-dialog-price small { display: inline-flex; align-items: center; gap: 0.32rem; color: var(--shop-success); font-size: 0.7rem; font-weight: 700; }

.offer-dialog-description {
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    border-inline-start: 3px solid rgba(37, 200, 255, 0.48);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    color: #aabdd0;
    font-size: 0.76rem;
    line-height: 1.8;
}

.offer-dialog-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1rem;
}

.offer-dialog-facts > span {
    display: flex;
    align-items: center;
    gap: 0.48rem;
    min-height: 48px;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--shop-line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
    color: #849db5;
    font-size: 0.68rem;
}

.offer-dialog-facts i { color: #58d7f8; }
.offer-dialog-facts strong { color: #e8f7ff; }

.offer-dialog-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.3rem 0 0.65rem;
}

.offer-dialog-section-head h3 { margin: 0.1rem 0 0; color: #f4fbff; font-size: 1rem; }
.offer-dialog-section-head > span { color: var(--shop-muted); font-size: 0.68rem; }

.offer-dialog-services { display: grid; gap: 0.55rem; }

.offer-dialog-service {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 76px;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--shop-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.offer-dialog-service-media {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(37, 200, 255, 0.08);
    color: #61d8f8;
}

.offer-dialog-service-media img { width: 100%; height: 100%; object-fit: cover; }
.offer-dialog-service-copy { min-width: 0; }
.offer-dialog-service-copy h4 { margin: 0; color: #eaf8ff; font-size: 0.82rem; }
.offer-dialog-service-copy p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0.2rem 0 0;
    color: #849bb1;
    font-size: 0.68rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.offer-dialog-service-quantity {
    min-width: 42px;
    padding: 0.34rem 0.48rem;
    border-radius: 9px;
    background: rgba(37, 200, 255, 0.08);
    color: #7ee4ff;
    font-size: 0.68rem;
    font-weight: 800;
    text-align: center;
}

.offer-dialog-footer {
    position: sticky;
    z-index: 10;
    bottom: 0;
    display: grid;
    grid-template-columns: auto minmax(210px, 0.55fr);
    align-items: center;
    justify-content: end;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    border-top: 1px solid var(--shop-line);
    background: rgba(6, 18, 37, 0.96);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.offer-dialog-footer > div { display: grid; min-width: 105px; }
.offer-dialog-footer > div span { color: var(--shop-muted); font-size: 0.65rem; }
.offer-dialog-footer > div strong { color: #fff; font-size: 1.16rem; }

body.offers-storefront .offer-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0 1rem;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #22bfe9, #347eea);
    color: #fff;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(33, 151, 223, 0.2);
}

body.offers-storefront .offer-button:hover { filter: brightness(1.07); }
body.offers-storefront .offer-button:disabled { opacity: 0.58; cursor: wait; }

/* Checkout step */
.offer-checkout-topbar { grid-template-columns: 1fr auto 1fr; }

.offer-dialog-back {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 0.4rem;
    min-height: 36px;
    padding: 0 0.65rem;
    border: 1px solid var(--shop-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    color: #c9dbea;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
}

body.offers-storefront .offer-purchase-head {
    display: grid;
    gap: 0.25rem;
    padding: 1.2rem 1.25rem 0.8rem;
    border: 0;
}

body.offers-storefront .offer-purchase-head h3 { margin: 0; color: #fff; font-size: 1.22rem; }
body.offers-storefront .offer-purchase-head p { margin: 0; color: var(--shop-muted); font-size: 0.74rem; line-height: 1.7; }

body.offers-storefront .offer-purchase-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 1.25rem 0.8rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(50, 215, 149, 0.18);
    border-radius: 14px;
    background: rgba(50, 215, 149, 0.06);
}

.offer-purchase-summary > div { display: grid; gap: 0.12rem; }
.offer-purchase-summary span { color: #b6c7d6; font-size: 0.72rem; }
.offer-purchase-summary strong { color: #fff; font-size: 1.25rem; }
.offer-purchase-summary small { color: #63dda9; font-size: 0.66rem; }
.offer-purchase-summary > i { color: #58dfa8; font-size: 1.35rem; }

body.offers-storefront #offerPurchaseAlert,
body.offers-storefront #offerAuthBanner {
    margin-inline: 1.25rem;
}

body.offers-storefront .offer-auth-banner {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 0.8rem;
    padding: 0.9rem;
    border: 1px solid rgba(255, 190, 78, 0.2);
    border-radius: 14px;
    background: rgba(255, 190, 78, 0.06);
}

.offer-auth-banner strong { color: #ffe2a4; font-size: 0.8rem; }
.offer-auth-banner p { font-size: 0.7rem !important; line-height: 1.65; }
.offer-auth-banner .offer-button { justify-self: start; min-height: 40px; box-shadow: none; }

body.offers-storefront .offer-purchase-items {
    display: grid;
    gap: 0.75rem;
    padding: 0 1.25rem;
}

body.offers-storefront .offer-purchase-item {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--shop-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.offer-purchase-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; }
.offer-purchase-item-title-row { display: flex; gap: 0.65rem; min-width: 0; }
.offer-purchase-step-number {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 9px;
    background: rgba(37, 200, 255, 0.11);
    color: #75ddfa;
    font-size: 0.72rem;
    font-weight: 900;
}

.offer-purchase-item-title { min-width: 0; }
.offer-purchase-item-title h4 { margin: 0; color: #ecf9ff; font-size: 0.86rem; }
.offer-purchase-item-title p { margin: 0.18rem 0 0; color: #8299b0; font-size: 0.67rem; line-height: 1.6; }
.offer-purchase-chip-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem; }
.offer-purchase-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    min-height: 28px;
    padding: 0 0.5rem;
    border-radius: 8px;
    background: rgba(37, 200, 255, 0.07);
    color: #8fdff5;
    font-size: 0.62rem;
    white-space: nowrap;
}

body.offers-storefront .offer-form-field { display: grid; gap: 0.36rem; }
body.offers-storefront .offer-form-field label { color: #c8d9e7; font-size: 0.72rem; font-weight: 700; }
body.offers-storefront .offer-form-field input,
body.offers-storefront .offer-form-field textarea,
body.offers-storefront .offer-form-field select {
    width: 100%;
    min-height: 45px;
    padding: 0.68rem 0.78rem;
    border: 1px solid rgba(148, 190, 224, 0.16);
    border-radius: 11px;
    outline: 0;
    background: rgba(2, 10, 23, 0.7);
    color: #edf9ff;
    font: inherit;
    font-size: 0.76rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.offers-storefront .offer-form-field textarea { min-height: 100px; resize: vertical; }
body.offers-storefront .offer-form-field input:focus,
body.offers-storefront .offer-form-field textarea:focus,
body.offers-storefront .offer-form-field select:focus {
    border-color: rgba(37, 200, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(37, 200, 255, 0.08);
}

body.offers-storefront .offer-form-field small { color: #7189a0; font-size: 0.62rem; }
body.offers-storefront .offer-inline-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }

body.offers-storefront .offer-submit-note {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0.85rem 1.25rem 0;
    padding: 0.7rem 0.8rem;
    border-radius: 11px;
    background: rgba(37, 200, 255, 0.055);
    color: #89a2b9;
    font-size: 0.66rem;
    line-height: 1.65;
}

body.offers-storefront .offer-purchase-item .offer-submit-note { margin: 0; }

body.offers-storefront .offer-checkout-button {
    position: sticky;
    z-index: 10;
    bottom: 0;
    width: calc(100% - 2.5rem);
    min-height: 50px;
    margin: 0.9rem 1.25rem 1.1rem;
    box-shadow: 0 -10px 28px #061225, 0 12px 28px rgba(34, 151, 224, 0.22);
}

/* Keep the dedicated offers footer compact and predictable. */
body.offers-storefront > .offers-footer { margin-top: 0; }

@media (max-width: 980px) {
    body.offers-storefront .offers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    body.offers-storefront .offers-page {
        min-height: 0;
        padding: 0.75rem 0 calc(1.25rem + env(safe-area-inset-bottom, 0px));
    }

    body.offers-storefront .offers-page-shell { width: min(100% - 1rem, 620px); }

    body.offers-storefront .offers-shop-intro {
        display: block;
        min-height: 0;
        padding: 1rem;
        border-radius: 19px;
    }

    .offers-shop-intro h1 {
        margin-top: 0.55rem;
        font-size: 1.55rem;
    }

    .offers-shop-intro-copy > p {
        font-size: 0.78rem;
        line-height: 1.65;
    }

    .offers-shop-summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.7rem;
        min-width: 0;
        margin-top: 0.85rem;
        padding-top: 0.75rem;
        border-top: 1px solid var(--shop-line);
    }

    .offers-shop-count {
        gap: 0.5rem;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .offers-shop-count > i {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 10px;
        font-size: 0.78rem;
    }

    .offers-shop-count strong { font-size: 1.12rem; }
    .offers-shop-count small { font-size: 0.61rem; }
    .offers-shop-safe { justify-content: flex-end; font-size: 0.62rem; }

    body.offers-storefront .offers-page-grid { margin-top: 1.2rem; }

    .offers-shop-head {
        align-items: center;
        margin-bottom: 0.7rem;
        padding-inline: 0.15rem;
    }

    .offers-shop-head h2 { font-size: 1.12rem; }
    .offers-shop-head > p { max-width: 48%; text-align: left; font-size: 0.64rem; }

    body.offers-storefront .offers-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .offer-shop-card { border-radius: 17px; }

    .offer-shop-card-link {
        display: grid;
        grid-template-columns: 116px minmax(0, 1fr);
        min-height: 174px;
    }

    .offer-shop-card-media {
        width: 116px;
        height: 100%;
        min-height: 174px;
    }

    .offer-shop-card-body { padding: 0.72rem; }
    .offer-shop-card-badges { inset: 0.45rem 0.42rem auto; display: grid; justify-items: start; }
    .offer-shop-badge { display: none; }
    .offer-shop-discount { min-height: 26px; padding-inline: 0.45rem; border-radius: 8px; font-size: 0.59rem; }
    .offer-shop-card-meta { font-size: 0.6rem; }
    .offer-shop-card-meta span:nth-child(2) { display: none; }

    .offer-shop-card-copy {
        min-height: 62px;
        padding: 0.48rem 0 0.42rem;
    }

    .offer-shop-card-copy h3 { font-size: 0.88rem; line-height: 1.45; }
    .offer-shop-card-copy p { margin-top: 0.12rem; font-size: 0.65rem; -webkit-line-clamp: 1; }
    .offer-shop-card-footer { gap: 0.35rem; padding-top: 0.5rem; }
    .offer-shop-price > span { display: none; }
    .offer-shop-price strong { font-size: 0.98rem; }
    .offer-shop-price del { font-size: 0.62rem; }
    .offer-shop-price small { font-size: 0.56rem; }
    .offer-shop-card-action { min-height: 34px; padding-inline: 0.5rem; font-size: 0.62rem; }

    .offer-shop-card-skeleton {
        display: grid;
        grid-template-columns: 116px minmax(0, 1fr);
        min-height: 174px;
        height: 174px;
    }
    .offer-shop-card-skeleton .offer-shop-card-media { width: 116px; height: 174px; min-height: 174px; }
    .offer-shop-card-skeleton .offer-shop-card-body { display: flex; min-width: 0; }

    .offers-shop-trust { margin-top: 0.85rem; border-radius: 14px; }
    .offers-shop-trust > div { min-height: 56px; gap: 0.35rem; padding: 0.45rem 0.3rem; text-align: center; }
    .offers-shop-trust > div > i { font-size: 0.78rem; }
    .offers-shop-trust strong { font-size: 0.62rem; }
    .offers-shop-trust small { display: none; }

    body.offers-storefront .offers-selection-column[open].is-offer-dialog {
        inset: calc(66px + env(safe-area-inset-top, 0px)) 0.4rem calc(66px + env(safe-area-inset-bottom, 0px));
        width: auto;
        max-width: none;
        height: auto;
        max-height: none;
        margin: 0;
        border-radius: 20px 20px 0 0;
    }

    body.offers-storefront .offer-detail-shell,
    body.offers-storefront .offer-purchase-shell {
        height: 100%;
        max-height: none;
    }

    .offer-dialog-topbar { min-height: 52px; padding-inline: 0.7rem; }
    .offer-dialog-ready { font-size: 0.58rem; }
    .offer-dialog-content { padding: 0.78rem; }

    .offer-dialog-hero {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 0.75rem;
    }

    .offer-dialog-media,
    .offer-dialog-media-fallback { min-height: 148px; }
    .offer-dialog-media { border-radius: 14px; }
    .offer-dialog-discount { top: 0.42rem; right: 0.42rem; min-height: 25px; padding-inline: 0.42rem; border-radius: 8px; font-size: 0.57rem; }
    .offer-dialog-summary { padding: 0; }
    .offer-dialog-badge { min-height: 24px; padding-inline: 0.48rem; font-size: 0.58rem; }
    .offer-dialog-summary h2 { margin-top: 0.42rem; font-size: 1.04rem; line-height: 1.4; }
    .offer-dialog-summary > p { display: -webkit-box; overflow: hidden; font-size: 0.65rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .offer-dialog-price { padding-top: 0.52rem; }
    .offer-dialog-price > span { font-size: 0.58rem; }
    .offer-dialog-price strong { font-size: 1.28rem; }
    .offer-dialog-price del { font-size: 0.67rem; }
    .offer-dialog-price small { font-size: 0.58rem; }
    .offer-dialog-description { margin-top: 0.72rem; padding: 0.66rem 0.72rem; font-size: 0.66rem; line-height: 1.65; }
    .offer-dialog-facts { gap: 0.45rem; margin-top: 0.7rem; }
    .offer-dialog-facts > span { min-height: 42px; padding: 0.45rem 0.55rem; font-size: 0.58rem; }
    .offer-dialog-section-head { margin-top: 0.9rem; }
    .offer-dialog-section-head h3 { font-size: 0.87rem; }
    .offer-dialog-section-head > span { font-size: 0.6rem; }
    .offer-dialog-service { grid-template-columns: 48px minmax(0, 1fr) auto; min-height: 64px; gap: 0.55rem; padding: 0.42rem 0.5rem; border-radius: 12px; }
    .offer-dialog-service-media { width: 48px; height: 48px; border-radius: 10px; }
    .offer-dialog-service-copy h4 { font-size: 0.72rem; }
    .offer-dialog-service-copy p { font-size: 0.6rem; -webkit-line-clamp: 1; }
    .offer-dialog-service-quantity { min-width: 34px; padding-inline: 0.32rem; font-size: 0.6rem; }

    .offer-dialog-footer {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.65rem;
        padding: 0.65rem 0.75rem;
    }

    .offer-dialog-footer > div { min-width: 75px; }
    .offer-dialog-footer > div strong { font-size: 0.95rem; }
    .offer-dialog-footer .offer-button { min-height: 43px; }

    .offer-dialog-back { min-height: 34px; padding-inline: 0.5rem; font-size: 0.6rem; }
    body.offers-storefront .offer-purchase-head { padding: 0.85rem 0.8rem 0.6rem; }
    body.offers-storefront .offer-purchase-head h3 { font-size: 1rem; }
    body.offers-storefront .offer-purchase-head p { font-size: 0.65rem; }
    body.offers-storefront .offer-purchase-summary { margin: 0 0.8rem 0.65rem; padding: 0.7rem 0.75rem; }
    body.offers-storefront #offerPurchaseAlert,
    body.offers-storefront #offerAuthBanner { margin-inline: 0.8rem; }
    body.offers-storefront .offer-purchase-items { gap: 0.6rem; padding-inline: 0.8rem; }
    body.offers-storefront .offer-purchase-item { gap: 0.7rem; padding: 0.75rem; border-radius: 13px; }
    .offer-purchase-item-head { display: grid; }
    .offer-purchase-chip-row { justify-content: flex-start; padding-inline-start: 2.65rem; }
    .offer-purchase-item-title h4 { font-size: 0.76rem; }
    .offer-purchase-item-title p { font-size: 0.61rem; }
    body.offers-storefront .offer-inline-grid { grid-template-columns: 1fr; gap: 0.6rem; }
    body.offers-storefront .offer-submit-note { margin: 0.65rem 0.8rem 0; }
    body.offers-storefront .offer-purchase-item .offer-submit-note { margin: 0; }
    body.offers-storefront .offer-checkout-button { width: calc(100% - 1.6rem); margin: 0.75rem 0.8rem 0.85rem; }
}

@media (max-width: 380px) {
    .offers-shop-safe { display: none; }
    .offer-shop-card-link { grid-template-columns: 104px minmax(0, 1fr); }
    .offer-shop-card-media { width: 104px; }
    .offer-shop-card-skeleton { grid-template-columns: 104px minmax(0, 1fr); }
    .offer-shop-card-skeleton .offer-shop-card-media { width: 104px; }
    .offer-shop-card-action { padding-inline: 0.42rem; }
    .offer-dialog-hero { grid-template-columns: 98px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .offer-shop-card,
    .offer-shop-card-media img { transition: none; }
    .offer-shop-card-skeleton .offer-shop-card-media,
    .offer-shop-card-skeleton .offer-shop-card-body > span { animation: none; }
}
