.jdr-promotion[hidden], .jdr-promotion [hidden] { display: none !important; }
.jdr-promotion { position: fixed; right: 24px; bottom: 24px; width: 360px; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 30px; background: radial-gradient(ellipse at top right, #f2ddb5, transparent 65%), #fffaf1; color: #29251e; border: 1px solid #d8bb83; border-radius: 20px; box-shadow: 0 16px 50px #29251e30; z-index: 900; text-align: center; }
#jdr-promotion .jdr-promotion-close { position: absolute; top: 8px; right: 8px; border: 0; background: transparent; color: #29251e !important; box-shadow: none; font-size: 25px; line-height: 1; min-width: 36px; min-height: 36px; padding: 4px; }
.jdr-promotion-eyebrow { display: block; margin: 5px 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; }
#jdr-promotion .jdr-promotion-headline { display: block; font-size: 68px; font-weight: 800; line-height: 1; letter-spacing: -3px; color: #583b1d; }
.jdr-promotion-headline span:not(.jdr-promotion-percent) { font-size: 27px; letter-spacing: 0; }
.jdr-promotion-subtitle { font-size: 17px; margin: 14px 0 !important; }
.jdr-promotion-countdown { display: inline-block; margin: 0 0 18px; padding: 7px 14px; border: 1px solid #dfc99f; border-radius: 24px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
#jdr-promotion .jdr-promotion-apply { width: 100%; height: auto !important; min-height: 50px !important; line-height: 1.3 !important; display: block; box-sizing: border-box; padding: 14px 16px !important; border: 0; border-radius: 10px; background: #49331d; color: #fff; font-size: 16px; font-weight: 700; text-transform: none; box-shadow: 0 4px 12px #49331d20; }
#jdr-promotion .jdr-promotion-apply:hover { background: #674a29; }
#jdr-promotion .jdr-promotion-apply:disabled { opacity: .75; }
.jdr-promotion-checkout { display: block; margin: 14px 0; color: #49331d; text-decoration: underline; font-weight: 600; }
.jdr-promotion-details { text-align: left; font-size: 12px; color: #665b4d; }
.jdr-promotion-details summary { cursor: pointer; text-align: center; padding: 4px; }
.jdr-promotion-details small { display: block; margin-top: 8px; line-height: 1.5; }
.jdr-promotion-code { display: block; margin-top: 10px; overflow-wrap: anywhere; font-size: 11px; }
.jdr-promotion-shipping:not(:empty) { padding: 10px 12px; margin: 4px 0 18px; background: #e9efdf; border-radius: 9px; color: #354329; font-weight: 600; font-size: 13px; line-height: 1.5; }
.jdr-promotion-status:empty { display: none; }
.jdr-promotion-status { margin: 12px 0 0; font-size: 13px; line-height: 1.5; }
.jdr-stock-message { display: block; color: #83521c; font-weight: 600; margin: 8px 0; font-size: 13px; }
@media (max-width: 600px) { .jdr-promotion { bottom: 12px; right: 12px; max-width: calc(100vw - 24px); max-height: 70vh; overflow-y: auto; padding: 24px; } #jdr-promotion .jdr-promotion-headline { font-size: 56px; } }
/* One compact launcher survives navigation; expansion always stays within the viewport. */
.jdr-promotion { max-height: min(620px, calc(100dvh - 48px)); overflow-y: auto; }
.jdr-promotion.is-minimized { width: auto; max-width: calc(100vw - 32px); padding: 0; overflow: visible; border-radius: 28px; }
#jdr-promotion .jdr-promotion-mini { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: auto; min-height: 48px; padding: 12px 18px; border: 0; border-radius: 28px; background: #49331d; color: #fff; text-transform: none; font-size: 13px; line-height: 1.4; white-space: normal; box-shadow: none; }
.jdr-promotion-mini-icon { color: #f3d28b; font-size: 21px; }
#jdr-promotion button:focus-visible, #jdr-promotion a:focus-visible { outline: 3px solid #b47b28; outline-offset: 3px; }
.jdr-promotion-shipping:not(:empty) { margin: 0; padding: 0; border-radius: 0; background: none; color: #29251e; font-size: 15px; font-weight: 400; }
.jdr-promotion-shipping-headline { display: block; margin: 6px 0 12px; color: #354b32; font-size: 36px; line-height: 1.05; font-weight: 800; letter-spacing: -1px; }
.jdr-promotion-shipping p { margin: 10px 0 20px; }
#jdr-promotion .jdr-promotion-shipping-claim { display: block; width: 100%; height: auto !important; padding: 14px 12px !important; box-sizing: border-box; border: 0; border-radius: 10px; background: #354b32; color: white; text-transform: none; font-size: 16px; line-height: 1.4 !important; text-decoration: none; font-weight: 700; }
.jdr-promotion-shipping-terms { display: block; margin-top: 12px; color: #665b4d; font-size: 12px; line-height: 1.5; }
.jdr-promotion-combined { margin: 0 0 15px; padding: 8px; background: #e9efdf; border-radius: 8px; color: #354b32; font-size: 12px; font-weight: 600; }
@media (max-width: 600px) {
    .jdr-promotion { width: 320px; max-width: calc(100vw - 20px); right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); padding: 18px; max-height: 48vh; max-height: 48dvh; border-radius: 14px; }
    #jdr-promotion .jdr-promotion-headline { font-size: 42px; letter-spacing: -2px; }
    .jdr-promotion-headline span:not(.jdr-promotion-percent) { font-size: 20px; }
    .jdr-promotion-eyebrow { font-size: 10px; letter-spacing: 1px; margin: 3px 0 8px; }
    .jdr-promotion-subtitle { font-size: 14px; margin: 8px 0 !important; }
    .jdr-promotion-countdown { margin-bottom: 10px; padding: 4px 10px; font-size: 12px; }
    #jdr-promotion .jdr-promotion-apply, #jdr-promotion .jdr-promotion-shipping-claim { min-height: 44px !important; font-size: 14px; padding: 10px 12px !important; }
    .jdr-promotion-checkout { margin: 8px 0; font-size: 12px; }
    .jdr-promotion-combined { margin-bottom: 9px; padding: 6px; font-size: 11px; }
    .jdr-promotion-shipping-headline { font-size: 30px; }
    .jdr-promotion-shipping p { margin: 8px 0 12px; font-size: 14px; }
    .jdr-promotion-shipping-terms { font-size: 11px; margin-top: 8px; }
    #jdr-promotion .jdr-promotion-mini { min-height: 44px; padding: 10px 14px; font-size: 12px; }
}
.jdr-promotion-combined .jdr-promotion-shipping-countdown { display: block; font-size: 11px; font-weight: 400; margin-top: 3px; font-variant-numeric: tabular-nums; }
/* Scarcity is shown only for inventory quantities confirmed by the stock endpoint. */
.jdr-stock-message{display:inline-flex;align-items:center;gap:6px;max-width:100%;box-sizing:border-box;padding:5px 9px;border:1px solid #e3cfaa;border-radius:6px;background:#fff8e9;color:#805b22;font-weight:600;font-size:11px;line-height:1.4;margin:7px 0}
.jdr-stock-message.jdr-stock-urgent{background:#fff0e9;border-color:#e8b49e;color:#a33d20;font-weight:700}
.jdr-stock-urgent::before{content:'!';display:inline-flex;align-items:center;justify-content:center;flex:0 0 15px;width:15px;height:15px;border-radius:50%;background:#a33d20;color:#fff;font-size:10px;font-weight:800}
