/* Hide "До кінця маркетингової акції" status label on single product page */
.asp-rfw-draw-wrapper .promo-status.started {
    display: none;
}

/* Single-product timer box */
.asp-rfw-timer-box {
    border: 2px solid var(--pink);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 15px;
    text-align: center;
    background: #fff;
}

.asp-rfw-timer-box .asp-rfw-timer-box-heading {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Mariupol', Montserrat, sans-serif;
    margin: 0 0 25px;
    color: #222;
}

.asp-rfw-timer-box .promo-duration-timer {
    text-align: center;
    font-size: 0;
}

/* Winner card */
.asp-rfw-winner-box {
    border: 2px solid var(--pink);
    border-radius: 8px;
    padding: 30px 35px;
    margin-bottom: 15px;
    background: #fff;
    .asp-rfw-winner-box-heading {
        font-size: 18px;
    }
}

.asp-rfw-winner-box-heading {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 15px;
    color: #222;
}

.asp-rfw-winner-box-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 15px;
}

.asp-rfw-winner-ticket,
.asp-rfw-winner-name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.asp-rfw-winner-congrats {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin: 0 0 12px;
}

.asp-rfw-winner-box .asp-rfw-draw-log-link {
    margin: 0;
}

.asp-rfw-winner-box .asp-rfw-draw-log-link a {
    color: #333;
    text-decoration: underline;
}

/* Draw log modal */
body.asp-rfw-modal-open {
    overflow: hidden;
}

.asp-rfw-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
}

.asp-rfw-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
}

.asp-rfw-modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 640px;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.22);
}

.asp-rfw-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
}

.asp-rfw-modal-close:hover {
    color: #222;
}

.asp-rfw-modal-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin: 22px 40px 6px;
    color: #222;
}

.asp-rfw-modal-subtitle {
    font-size: 13px;
    text-align: center;
    color: #666;
    margin: 0 20px 14px;
}

.asp-rfw-modal-body {
    overflow-y: auto;
    padding: 0 20px 20px;
    flex: 1;
}

.asp-rfw-modal-body .asp-rfw-draw-log-wrapper {
    margin: 0;
}

/* Kaleidoscope ticker box — same card style as .asp-rfw-timer-box */
.asp-rfw-ticker-box {
    border: 2px solid var(--pink);
    border-radius: 8px;
    padding: 20px 15px 15px;
    margin-bottom: 15px;
    text-align: center;
    background: #fff;
}

.asp-rfw-ticker-box-heading {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #222;
}

.asp-rfw-ticker-reel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.asp-rfw-ticker-item {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
}

.asp-rfw-ticker-prev,
.asp-rfw-ticker-next {
    opacity: 0.22;
    font-size: 24px;
    font-weight: 400;
}

@media screen and (max-width: 575px) {

    .asp-rfw-winner-box {
        padding: 20px;

        .asp-rfw-winner-box-heading {
            font-size: 16px;
            margin: 0 0 10px;
        }

        .asp-rfw-winner-box-row {
            padding: 10px;
        }
    }
    .asp-rfw-timer-box {
        padding: 20px;
    }
    .asp-rfw-timer-box .asp-rfw-timer-box-heading {
        font-size: 14px;
        font-weight: 600;
        line-height: 1;
        margin: 0 0 12px;
    }
}