/* Solid editorial offer seals. Absolute placement preserves image/card dimensions. */
.tw-event-badge-host { position:relative; }
.tw-event-badge {
    position:absolute; top:5px; left:5px; right:auto; z-index:3;
    width:118px; height:118px; aspect-ratio:1;
    container-type:inline-size; box-sizing:border-box;
    padding:0; margin:0; border:1px solid #073f43; border-radius:50%;
    background:#073f43; color:#fff;
    font-family:'TW Sora',Arial,sans-serif; line-height:1; text-align:center;
    pointer-events:none; box-shadow:0 2px 5px #073f4320;
}
.tw-event-badge::before { content:''; position:absolute; inset:5px; border:1px dashed #b9d9cd; border-radius:50%; opacity:.85; }
.tw-event-badge[hidden] { display:none !important; }
.tw-event-badge-heading {
    position:absolute; top:26%; left:13%; right:13%; display:block;
    color:#e0eee7; font-size:8cqw; font-weight:500; letter-spacing:.1em;
    line-height:1.3; text-transform:uppercase;
}
.tw-event-badge-value {
    position:absolute; top:48%; left:5%; right:5%; display:block;
    color:#fff; font-size:16cqw; font-weight:600; letter-spacing:-.04em;
    line-height:1.15; text-transform:uppercase; white-space:nowrap;
}
/* Full offer terms remain in the title and product copy, keeping the image seal concise. */
.tw-event-badge-code,.tw-event-badge-note { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.gallery-viewport > .tw-event-badge { width:126px; height:126px; top:12px; left:12px; }
@media(max-width:760px) {
    .card-photo > .tw-event-badge,.fb-model-photo > .tw-event-badge { width:70px; height:70px; top:2px; left:2px; }
    .card-photo > .tw-event-badge::before,.fb-model-photo > .tw-event-badge::before { inset:4px; }
    .gallery-viewport > .tw-event-badge { width:100px; height:100px; top:8px; left:8px; }
}

.tw-event-badge-save-label { display:block; font-size:7cqw; font-weight:500; letter-spacing:.12em; margin-bottom:3.575cqw; transform:translateY(3.3cqw); }
.tw-event-badge-save-amount { display:block; font-size:23cqw; font-weight:600; letter-spacing:-.04em; }
@media(max-width:760px) {
    /* Landing photos lift 18px; allow their seal to extend past the card edge. */
    .tw-family-landing .fb-model { overflow:visible; }
    .gallery-viewport > .tw-event-badge { width:126px; height:126px; }
}
@media(min-width:761px) {
    .gallery-viewport > .tw-event-badge { width:172px; height:172px; }
}
/* Extra clearance below collection tools only; subsequent row gaps stay unchanged. */
.collection-section > .compact-collection-tools + .grid:has(> .product-card > .card-photo:is(.mattress-cutout-card,.family-cutout-card)) {
    padding-top:12px;
}
@media(max-width:760px) {
    .collection-section > .compact-collection-tools + .grid:has(> .product-card > .card-photo:is(.mattress-cutout-card,.family-cutout-card)) { padding-top:10px; }
}
