/* Nagradna igra: launcher, wheel popup, rules page, "Moji vaučeri" and the cart voucher chips. */
:root {
    --contest-wine: #9d0128;
    --contest-wine-dark: #7e0120;
    --contest-gold: #c9a227;
    --contest-text: #111827;
    --contest-muted: #6b7280;
    --contest-border: #e5e7eb;
    --contest-soft: #fbecef;
}

/* Launcher */
.contest-launcher { position: fixed; left: 1rem; bottom: 1rem; z-index: 1040; display: inline-flex; align-items: center; gap: .55rem; padding: .75rem 1.1rem; border: 0; border-radius: 999px; color: #fff; background: var(--contest-wine); font-size: .85rem; font-weight: 600; box-shadow: 0 10px 25px rgba(157, 1, 40, .3); cursor: pointer; }
.contest-launcher svg { width: 20px; height: 20px; }
.contest-launcher:hover { background: var(--contest-wine-dark); }
.contest-launcher:focus-visible { outline: 3px solid var(--contest-gold); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
    .contest-launcher { animation: contest-pulse 2.6s ease-in-out 3; }
}
@keyframes contest-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (max-width: 575.98px) {
    .contest-launcher { padding: .7rem; }
    .contest-launcher span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Popup */
.contest-modal__content { position: relative; overflow: hidden; border: 0; border-radius: 16px; color: var(--contest-text); }
.contest-modal__close { position: absolute; top: 1rem; right: 1rem; z-index: 2; }
/* The wheel gets the larger share of the dialog; the text column stays compact. */
.contest-modal__layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); }
.contest-modal__stage { display: grid; place-items: center; padding: 3rem 2.5rem; background: radial-gradient(circle at 50% 40%, #fff 0%, #f6eef0 70%); }
.contest-modal__body { display: flex; flex-direction: column; gap: .2rem; padding: 2.5rem 2rem 1.75rem; min-width: 0; }
.contest-modal__eyebrow { color: var(--contest-wine); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.contest-modal__title { margin: .3rem 0 .4rem; font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.2; font-weight: 650; }
.contest-modal__lead, .contest-modal__view p { color: var(--contest-muted); font-size: .84rem; line-height: 1.6; }
.contest-modal__view { margin-top: .75rem; }
.contest-modal__muted { color: var(--contest-muted); font-size: .8rem; }
.contest-modal__error { color: var(--contest-wine); font-weight: 600; }
.contest-modal__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.contest-modal__result-title { margin: 0 0 .35rem; font-size: 1.2rem; font-weight: 650; color: var(--contest-wine); }
.contest-modal__result-title:focus { outline: none; }
.contest-modal__prize { color: var(--contest-text) !important; font-weight: 600; }
.contest-modal__vouchers { margin: 0; padding-left: 1.1rem; font-size: .9rem; }
.contest-modal__vouchers code { color: var(--contest-wine); font-weight: 700; }
.contest-modal__terms { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--contest-border); font-size: .72rem; color: var(--contest-muted); }
.contest-modal__terms p { margin-bottom: .4rem; }
/* Text links only - .contest-button links keep their own white text. */
.contest-modal__terms a, .contest-rules a, .contest-vouchers a:not(.contest-button) { color: var(--contest-wine); text-underline-offset: 3px; }
@media (max-width: 767.98px) {
    .contest-modal__layout { grid-template-columns: 1fr; }
    .contest-modal__stage { padding: 2.25rem 1.25rem 1rem; }
    .contest-modal__body { padding: 1.25rem 1.5rem 1.5rem; }
}

.contest-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .75rem 1.4rem; border: 1px solid var(--contest-wine); border-radius: 7px; color: #fff; background: var(--contest-wine); font-size: .88rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.contest-button:hover { color: #fff; background: var(--contest-wine-dark); border-color: var(--contest-wine-dark); }
.contest-button:disabled { opacity: .65; cursor: progress; }
.contest-button--ghost { color: var(--contest-wine); background: #fff; }
.contest-button--ghost:hover { color: var(--contest-wine-dark); background: var(--contest-soft); }
.contest-button:focus-visible, .contest-voucher__copy:focus-visible, .contest-chip:focus-visible { outline: 3px solid var(--contest-gold); outline-offset: 3px; }

/* Wheel - the pointer stays at the top, the disc turns. */
/* Capped by height too, so the dialog still fits on short laptop screens. */
.contest-wheel { position: relative; width: min(100%, 520px, 64vh); aspect-ratio: 1; }
.contest-wheel__disc { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 8px #fff, 0 0 0 10px var(--contest-gold), 0 18px 40px rgba(17, 24, 39, .25); transform-origin: 50% 50%; }
/* Same face as the product title on the product page. */
.contest-wheel__label { font-family: "Chronicle Display", "Times", serif; font-weight: 600; letter-spacing: .01em; }
.contest-wheel__value { font-weight: 700; letter-spacing: -.02em; }
.contest-wheel__pointer { position: absolute; top: -14px; left: 50%; z-index: 1; width: 0; height: 0; border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 36px solid var(--contest-wine); transform: translateX(-50%); filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .25)); }
.contest-wheel__hub { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 24%; aspect-ratio: 1; padding: 3%; border: 4px solid var(--contest-gold); border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.contest-wheel__hub img { width: 100%; height: 100%; object-fit: contain; }

/* Voucher code */
.contest-voucher { margin: 1rem 0; padding: 1rem 1.1rem; border: 2px dashed var(--contest-wine); border-radius: 10px; background: var(--contest-soft); }
.contest-voucher__label { display: block; color: var(--contest-muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.contest-voucher__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin: .35rem 0; }
.contest-voucher__code { color: var(--contest-wine); font-size: 1.45rem; font-weight: 700; letter-spacing: .08em; overflow-wrap: anywhere; }
.contest-voucher__copy { padding: .4rem .85rem; border: 1px solid var(--contest-wine); border-radius: 6px; color: var(--contest-wine); background: #fff; font-size: .8rem; font-weight: 600; }
.contest-voucher__valid { color: var(--contest-muted); font-size: .8rem; }

/* Rules page */
.contest-rules { padding: 3rem 0 5rem; background: #f5f6f7; color: var(--contest-text); }
.contest-rules__card { max-width: 820px; margin: 0 auto; padding: 2rem; border: 1px solid var(--contest-border); border-radius: 12px; background: #fff; }
.contest-rules__eyebrow { display: block; margin-bottom: .5rem; color: var(--contest-wine); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.contest-rules h1 { margin: 0 0 1rem; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 650; line-height: 1.2; }
.contest-rules h2 { margin: 2rem 0 .75rem; font-size: 1.1rem; font-weight: 650; }
.contest-rules__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.contest-rules__facts li { padding: 1rem; border-radius: 10px; background: #f9fafb; }
.contest-rules__facts strong { display: block; color: var(--contest-muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.contest-rules__body { line-height: 1.8; overflow-wrap: anywhere; }

/* Moji vaučeri */
.contest-vouchers { display: grid; gap: 1rem; }
.contest-vouchers__item { padding: 1.4rem; border: 1px solid var(--contest-border); border-radius: 12px; background: #fff; }
.contest-vouchers__item--inactive { background: #f9fafb; }
.contest-vouchers__item--inactive .contest-voucher { border-color: #d1d5db; background: #f3f4f6; }
.contest-vouchers__item--inactive .contest-voucher__code { color: var(--contest-muted); }
.contest-vouchers__header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.contest-vouchers__title { margin: 0; font-size: 1.05rem; font-weight: 650; }
.contest-vouchers__meta { margin: .25rem 0 0; color: var(--contest-muted); font-size: .85rem; }
.contest-vouchers__status { padding: .25rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.contest-vouchers__status--active { color: #1f6b43; background: #e8f3ed; }
.contest-vouchers__status--used { color: #1e40af; background: #e8eefc; }
.contest-vouchers__status--expired { color: var(--contest-muted); background: #eef0f2; }
.contest-vouchers details { margin-top: .75rem; font-size: .88rem; }
.contest-vouchers summary { color: var(--contest-wine); font-weight: 600; cursor: pointer; }
.contest-vouchers__products { columns: 2 260px; margin: .75rem 0 0; padding-left: 1.1rem; }
.contest-vouchers__empty { padding: 2rem; border: 1px dashed var(--contest-border); border-radius: 12px; text-align: center; color: var(--contest-muted); }

/* Cart - the coupon section is a wrapping flex row, so these take the full width. */
.cart-coupon .contest-applied, .cart-coupon .contest-cart { width: 100%; }
.contest-cart { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--contest-border); }
.contest-cart h3 { margin: 0 0 .5rem; font-size: .9rem; font-weight: 650; }
.contest-cart__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.contest-chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .55rem .85rem; border: 1px dashed var(--contest-wine); border-radius: 8px; color: var(--contest-text); background: var(--contest-soft); font-size: .8rem; text-align: left; cursor: pointer; }
.contest-chip strong { color: var(--contest-wine); letter-spacing: .05em; }
.contest-chip:hover { background: #f7dde3; }
.contest-applied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1rem; border-radius: 8px; background: var(--contest-soft); font-size: .88rem; }
.contest-applied code { color: var(--contest-wine); font-weight: 700; }
.contest-applied__remove { border: 0; background: none; color: var(--contest-wine); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cart-voucher-badge { display: inline-block; margin-top: .35rem; padding: .2rem .55rem; border-radius: 999px; color: var(--contest-wine); background: var(--contest-soft); font-size: .72rem; font-weight: 700; }
.cart-voucher-warning { display: block; margin-top: .35rem; color: #92400e; font-size: .75rem; }
.cart-gift-quantity { color: var(--contest-muted); font-size: .85rem; }
