.rpe-price-idr,
.rpe-price-idr .amount,
.rpe-flash-price .amount {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.rpe-empty-state {
    margin: 0.5rem 0 1rem;
    padding: 0.875rem 1rem;
    border: 1px solid #e6ebf0;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
}

.rpe-flatsome-loop-countdown,
.rpe-flatsome-single-image-countdown,
.rpe-quickview-countdown {
    margin-top: 0.75rem;
}

.rpe-flatsome-badge-wrap {
    position: relative;
    z-index: 3;
}

.rpe-flash-grid {
    margin-top: 0.5rem;
}

.rpe-flash-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    border: 1px solid #edf2f7;
    border-radius: 14px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rpe-flash-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.rpe-flash-card .box-image {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.rpe-flash-thumb {
    width: 100%;
    height: auto;
    object-fit: cover;
    transform: scale(1.01);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rpe-flash-thumb.is-visible,
.rpe-flash-thumb[loading="lazy"] {
    opacity: 1;
}

.rpe-flash-card .box-text {
    padding: 0.875rem 0.9rem 1rem;
}

.rpe-flash-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}

.rpe-flash-title a {
    color: inherit;
    text-decoration: none;
}

.rpe-flash-price {
    margin-top: 0.45rem;
    font-size: 0.95rem;
}

.rpe-flash-countdown-wrap {
    margin-top: 0.55rem;
}

.rpe-sale-badge-wrap {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    z-index: 4;
    pointer-events: none;
}

.rpe-flash-badge {
    box-shadow: 0 5px 18px rgba(176, 0, 32, 0.28);
}

.rpe-voucher-grid {
    margin-top: 0.75rem;
}

.rpe-voucher-card {
    height: 100%;
    border: 1px solid #e7eaf1;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.rpe-voucher-card-inner {
    padding: 0.95rem;
}

.rpe-voucher-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.rpe-voucher-label {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.rpe-voucher-discount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.9rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.rpe-voucher-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: 0.7rem;
    padding: 0.55rem 0.65rem;
    border: 1px dashed #b6c2d1;
    border-radius: 10px;
    background: #f8fbff;
}

.rpe-voucher-code-text {
    font-weight: 700;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
}

.rpe-voucher-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid #d5deea;
    border-radius: 8px;
    background: #fff;
    color: #1e293b;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.rpe-voucher-copy-btn:hover,
.rpe-voucher-copy-btn:focus-visible {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.rpe-voucher-copy-btn.is-copied {
    background: #ecfdf3;
    border-color: #86efac;
    color: #166534;
}

.rpe-voucher-description {
    margin: 0.7rem 0 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #475569;
}

.rpe-voucher-actions {
    margin-top: 0.75rem;
}

.rpe-voucher-apply-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
    padding: 0.35rem 0.8rem;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.rpe-voucher-apply-link:hover,
.rpe-voucher-apply-link:focus-visible {
    background: #1e293b;
    color: #fff;
}

.rpe-promo-notice-wrap {
    margin: 0 0 1rem;
}

.rpe-promo-notice {
    border: 1px solid #c7f9cc;
    border-radius: 12px;
    background: linear-gradient(140deg, #effef3 0%, #f8fffa 100%);
    color: #14532d;
    padding: 0.85rem 1rem;
}

.rpe-promo-notice-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.rpe-promo-notice-summary {
    margin: 0.55rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.rpe-promo-notice-summary li {
    margin: 0;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.74rem;
    font-weight: 600;
}

.rpe-promo-notice-checkout {
    border-color: #cdd7ff;
    background: linear-gradient(140deg, #eff4ff 0%, #f7f9ff 100%);
    color: #172554;
}

.rpe-promo-notice-checkout .rpe-promo-notice-summary li {
    background: #dbe5ff;
    color: #1d4ed8;
}

.rpe-promo-notice-inline {
    margin-top: 0.65rem;
    font-size: 0.8rem;
    color: #475569;
}

@media (min-width: 48em) {
    .rpe-voucher-card-inner {
        padding: 1rem;
    }

    .rpe-voucher-description {
        min-height: 2.6rem;
    }

    .rpe-flash-title {
        font-size: 1rem;
    }
}

@media (min-width: 64em) {
    .rpe-flash-card .box-text {
        padding: 1rem;
    }

    .rpe-promo-notice {
        padding: 0.95rem 1.15rem;
    }

    .rpe-voucher-code-text {
        font-size: 0.9rem;
    }
}

body.dark,
.dark .rpe-flash-card,
.dark .rpe-voucher-card {
    background: #1e252f;
    border-color: #2f3a48;
    color: #e5e7eb;
}

body.dark .rpe-voucher-code,
.dark .rpe-voucher-code {
    background: #111827;
    border-color: #334155;
}

body.dark .rpe-voucher-copy-btn,
.dark .rpe-voucher-copy-btn {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark .rpe-promo-notice,
.dark .rpe-promo-notice {
    background: #102018;
    border-color: #1f5f34;
    color: #bbf7d0;
}

body.dark .rpe-promo-notice-checkout,
.dark .rpe-promo-notice-checkout {
    background: #111b35;
    border-color: #2f4d9a;
    color: #c7d2fe;
}
