/* Benefit page - discount banner, code reveal, expiry section.
   Used by Type A (permanent benefit) and Type D (coupon). */

/* Groups the discount banner + outbound CTA as a paired top section. */
.benefit-cta-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

/* Discount headline banner (e.g., "10% הנחה אוטומטית...") */
.discount-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: #EDEDFA;
    border: 2px solid transparent; /* color from _benefit_dynamic_styles.php → $brand */
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(11, 4, 39, 0.1);
    box-sizing: border-box;
    width: 100%;
}

.discount-banner-text {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: #000;
    text-align: center;
    margin: 0;
}

@media (max-width: 768px) {
    .discount-banner {
        padding: 10px 14px;
    }

    .discount-banner-text {
        font-size: 14px;
        line-height: 1.4;
    }
}

/* Unified code-reveal panel — brand-tinted soft surface with brand-color prompt
   text; on .revealed it transforms in place to show the actual code. Structure
   only here; brand-aware colors (bg, border, prompt text, revealed state) all
   come from _benefit_dynamic_styles.php so any club color1 looks coherent. */
.show-code-button {
    position: relative;
    display: block;
    width: 100%;
    height: 64px;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(11, 4, 39, 0.1);
    box-sizing: border-box;
    overflow: hidden;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.show-code-prompt,
.show-code-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease;
}

.show-code-prompt {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.01em;
    opacity: 1;
    /* color set by _benefit_dynamic_styles.php → $brand */
}

.show-code-value {
    color: #0B0427;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.08em;
    direction: ltr;
    opacity: 0;
    pointer-events: none;
    user-select: text;
}

.show-code-button.revealed .show-code-prompt {
    opacity: 0;
    pointer-events: none;
}

.show-code-button.revealed .show-code-value {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .show-code-button {
        height: 56px;
    }

    .show-code-prompt {
        font-size: 15px;
    }

    .show-code-value {
        font-size: 22px;
    }
}

/* Coupon-popup styles (legacy benefit_views/coupon_popup.php) — keep behavior; light visual hook */
#couponCode {
    display: none;
    margin-top: 16px;
    padding: 14px 20px;
    background: #F4F4FF;
    border-radius: 6px;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    color: #0B0427;
    direction: ltr;
}
