.dd-shopstart-frame{position:relative;container:dd-shopstart-image / inline-size}
.dd-shopstart-offer{position:absolute;z-index:2;inset:10px auto auto 10px;width:max-content;max-width:min(152px,46%);box-sizing:border-box;overflow:hidden;border:1px solid #dfe9ee;border-radius:9px;background:#f9fbfc;color:#115988;box-shadow:0 4px 11px #0b2e4a35;font:700 10px/1.12 Arial,Helvetica,sans-serif;pointer-events:none}
.dd-shopstart-offer[hidden]{display:none}
.dd-shopstart-ribbon{display:flex;align-items:center;justify-content:center;gap:6px;min-height:39px;padding:6px;background:#115988;color:#fff;font-size:13px;letter-spacing:.04em}
.dd-shopstart-sun{position:relative;display:block;width:20px;height:20px;flex:none;border-radius:50%;background:repeating-conic-gradient(#f6ca2c 0deg 8deg,transparent 8deg 18deg)}
.dd-shopstart-sun::after{content:"";position:absolute;inset:3px;border-radius:50%;background:#f6ca2c}
.dd-shopstart-main{text-align:center;padding:8px 4px 6px}
.dd-shopstart-percent{display:flex;justify-content:center;align-items:baseline;gap:3px;color:#075d92;line-height:1}
.dd-shopstart-percent strong{font-size:35px;letter-spacing:-1px}
.dd-shopstart-percent span{font-size:21px}
.dd-shopstart-discount{font-size:13px;margin-top:1px}
.dd-shopstart-copy{display:grid;justify-items:center;margin-top:7px;font-size:10.5px;line-height:1.16}
.dd-shopstart-copy span{white-space:nowrap;letter-spacing:.24px}
.dd-shopstart-copy span:last-child{letter-spacing:.85px}
.dd-shopstart-clock{display:grid;justify-items:center;gap:3px;margin:0;padding:5px 7px;border-top:1px solid #dfe9ee;color:#484848;font-variant-numeric:tabular-nums}
.dd-shopstart-days{width:100%;font-size:15px;font-weight:800;line-height:1.15;text-align:center;white-space:nowrap}
.dd-shopstart-time{font-size:14px;font-weight:700;line-height:1.15;letter-spacing:.04em;text-align:center}
@media(max-width:420px){.dd-shopstart-offer{inset:7px auto auto 7px}}
.dd-shopstart-reason{white-space:pre-line;overflow-wrap:anywhere;min-width:0;text-align:center}
@media(max-width:350px){.dd-shopstart-copy{font-size:9px}.dd-shopstart-days{font-size:13px}}

/* Keep the badge proportional to the image, including narrow desktop columns. */
@container dd-shopstart-image (max-width: 520px) {
    .dd-shopstart-offer {
        inset: 7px auto auto 7px;
        max-width: min(134px, 43%);
        border-radius: 7px;
    }

    .dd-shopstart-ribbon { min-height: 32px; gap: 5px; padding: 4px; font-size: 11px; }
    .dd-shopstart-sun { width: 16px; height: 16px; }
    .dd-shopstart-sun::after { inset: 2px; }
    .dd-shopstart-main { padding: 5px 3px 4px; }
    .dd-shopstart-percent strong { font-size: 26px; }
    .dd-shopstart-percent span { font-size: 16px; }
    .dd-shopstart-discount { font-size: 10px; }
    .dd-shopstart-copy { margin-top: 4px; font-size: 9px; }
    .dd-shopstart-copy span,
    .dd-shopstart-copy span:last-child { white-space: normal; letter-spacing: 0; }
    .dd-shopstart-clock { gap: 2px; padding: 5px 3px; }
    .dd-shopstart-days { font-size: 12px; }
    .dd-shopstart-time { font-size: 11px; }
}

@container dd-shopstart-image (max-width: 345px) {
    .dd-shopstart-offer { max-width: min(113px, 44%); }
    .dd-shopstart-percent strong { font-size: 23px; }
    .dd-shopstart-percent span { font-size: 14px; }
    .dd-shopstart-days { font-size: 11px; white-space: normal; }
}

.dd-shopstart-category-tab{display:block;box-sizing:border-box;margin:0 0 12px;overflow:hidden;border:1px solid #dfe9ee;border-radius:12px;background:#f9fbfc;color:#115988;text-decoration:none;box-shadow:0 3px 9px #0b2e4a25}
.dd-shopstart-category-tab:hover,.dd-shopstart-category-tab:focus-visible{color:#115988;text-decoration:none;box-shadow:0 4px 11px #0b2e4a45}
.dd-shopstart-category-tab .dd-shopstart-ribbon{background:var(--dd-blue);box-sizing:border-box;height:42px;min-height:42px;width:100%;padding:0 10px;gap:9px;font-size:clamp(16px,2vw,20px);line-height:1}
.dd-shopstart-category-tab .dd-shopstart-reason{font-weight:800;letter-spacing:.04em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.dd-shopstart-category-tab .dd-shopstart-main{display:block;padding:9px 5px 7px}
.dd-shopstart-category-tab .dd-shopstart-clock:has(.dd-shopstart-days:empty){display:none}
