/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/*
 * Brand design tokens — taken from the live Elementor global kit
 * (post-1513.css) so every reward/loyalty surface matches the site.
 * Keep this block identical to the one in points-and-rewards-contest-winner
 * so both plugins render one consistent visual language.
 */
:root {
	--wps-color-primary: #394139;
	--wps-color-primary-hover: #7D8C79;
	--wps-color-secondary: #252724;
	--wps-color-accent: #A6845E;
	--wps-color-text: #68675F;
	--wps-color-bg: #F7F4EE;
	--wps-color-bg-alt: #EAE4DA;
	--wps-color-white: #FFFEFB;
	--wps-color-border: #DDD7CD;
	--wps-font-heading: "Bodoni Moda", Georgia, serif;
	--wps-font-body: "Inter", -apple-system, sans-serif;
	--wps-radius: 10px;
	--wps-radius-sm: 6px;
}

/* ===== Points Charge Confirmation Modal ===== */
.wps_wpr_charge_overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(37, 39, 36, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000000000000;
    transition: opacity 0.3s ease;
}

.wps_wpr_charge_overlay.wps_wpr_active {
    display: block;
    animation: wps_wpr_fadeIn 0.3s ease forwards;
}

.wps_wpr_charge_modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    z-index: 10000000000001;
    width: 90%;
    max-width: 420px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    opacity: 0;
    font-family: var(--wps-font-body);
}

.wps_wpr_charge_modal.wps_wpr_active {
    display: block;
    animation: wps_wpr_slideIn 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes wps_wpr_fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes wps_wpr_slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -62%) scale(0.88);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes wps_wpr_slideOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -58%) scale(0.88);
    }
}

.wps_wpr_charge_modal.wps_wpr_closing {
    animation: wps_wpr_slideOut 0.25s ease forwards;
}

.wps_wpr_charge_modal_inner {
    background: var(--wps-color-primary);
    border-radius: var(--wps-radius);
    padding: 36px 32px 30px;
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(166, 132, 94, 0.2),
        0 20px 60px rgba(37, 39, 36, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.wps_wpr_charge_modal_inner::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(166, 132, 94, 0.16) 0%, transparent 70%);
    pointer-events: none;
}

.wps_wpr_charge_close_btn {
    position: absolute;
    top: 14px;
    right: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    padding: 0;
}

.wps_wpr_charge_close_btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.wps_wpr_charge_icon_wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    background: var(--wps-color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 6px rgba(166, 132, 94, 0.15), 0 4px 20px rgba(166, 132, 94, 0.35);
}

.wps_wpr_charge_coin_icon {
    font-size: 34px;
    color: var(--wps-color-white);
}

.wps_wpr_charge_title {
    font-family: var(--wps-font-heading);
    color: var(--wps-color-white);
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 14px;
    letter-spacing: 0.3px;
}

.wps_wpr_charge_divider {
    width: 50px;
    height: 2px;
    background: var(--wps-color-accent);
    border-radius: 2px;
    margin: 0 auto 20px;
}

.wps_wpr_charge_notice {
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 8px;
}

.wps_wpr_charge_notice strong {
    color: var(--wps-color-accent);
    font-size: 17px;
}

.wps_wpr_charge_sub_notice {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin: 0 0 26px;
    font-style: italic;
}

.wps_wpr_charge_btn_group {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.wps_wpr_charge_cancel_btn,
.wps_wpr_charge_play_btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: var(--wps-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.18s, box-shadow 0.18s, background 0.2s;
    letter-spacing: 0.3px;
}

.wps_wpr_charge_cancel_btn {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.wps_wpr_charge_cancel_btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    transform: translateY(-1px);
}

.wps_wpr_charge_play_btn {
    background: var(--wps-color-accent);
    color: var(--wps-color-white);
    box-shadow: 0 4px 18px rgba(166, 132, 94, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wps_wpr_charge_play_btn:hover {
    background: var(--wps-color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(125, 140, 121, 0.4);
}

.wps_wpr_charge_play_btn:active {
    transform: translateY(0);
}

.wps_wpr_play_btn_icon {
    font-size: 12px;
}

@media (max-width: 480px) {
    .wps_wpr_charge_modal_inner {
        padding: 28px 20px 24px;
    }
    .wps_wpr_charge_title {
        font-size: 20px;
    }
    .wps_wpr_charge_btn_group {
        flex-direction: column;
    }
}


/* My Account start */
.wps-p_masd-i-winwheel-card {
    padding: 15px;
    background: var(--wps-color-white);
    border-radius: var(--wps-radius-sm);
    border: 1px solid var(--wps-color-border);
    box-shadow: 0 0 15px rgba(57, 65, 57, 0.06);
    margin: 0 0 15px;
    transition: all 0.2s linear;
    font-family: var(--wps-font-body);
}

.wps-p_masd-i-winwheel-card:hover {
    border-color: var(--wps-color-accent);
    background: var(--wps-color-bg);
}

.wps-p_masd-i-winwheel-card h3 {
    font-family: var(--wps-font-heading);
    margin: 0 0 5px;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.25;
    color: var(--wps-color-secondary);
}

.wps-p_masd-i-winwheel-card .gift-balance,
.wps-p_masd-i-winwheel-card .gift-rewards {
    color: var(--wps-color-text);
}

.wps-p_masd-i-winwheel-card .gift-balance strong,
.wps-p_masd-i-winwheel-card .gift-rewards strong {
    font-size: 18px;
    color: var(--wps-color-accent);
}

.wps-p_masd-i-winwheel-card .gift-history {
    text-align: right;
    margin: -25px 0 0;
}

.wps-p_masd-i-winwheel-card .gift-rate {
    padding: 5px 10px;
    background: var(--wps-color-bg);
    color: var(--wps-color-accent);
    margin: 15px 0 0;
    border-radius: var(--wps-radius-sm);
    line-height: 1.5;
}

.wps-p_masd-i-winwheel-card .gift-history a {
    color: var(--wps-color-accent);
}

.wps-p_masd-i-winwheel-card progress {
    width: 100%;
    display: block;
    margin: 5px 0;
    border-radius: 2px;
    border: none;
    height: 6px;
    background: var(--wps-color-bg-alt);
}

.wps-p_masd-i-winwheel-card progress::-webkit-progress-bar {
    background-color: var(--wps-color-bg-alt);
    border-radius: 10px;
    overflow: hidden;
}

.wps-p_masd-i-winwheel-card progress::-webkit-progress-value {
    background-color: var(--wps-color-accent);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Firefox */
.wps-p_masd-i-winwheel-card progress::-moz-progress-bar {
    background-color: var(--wps-color-accent);
}

.wps-p_masd-i-winwheel-card .wps_wpr_slide_toggle .wps_wpr_view_log_notice {
    color: var(--wps-color-accent);
    background: var(--wps-color-white);
    border-color: var(--wps-color-accent);
}

.wps-p_masd-i-winwheel-card .wps_wpr_slide_toggle {
    margin: 10px 0;
}

.wps-p_masd-i-winwheel-card .wps_wpr_slide_toggle table {
    margin: 0;
}

.wps-p_masd-i-winwheel-card .wps_wpr_slide_toggle .wps_wpr_common_slider a.wps_wpr_open_toggle::before,
.wps-p_masd-i-winwheel-card .wps_wpr_slide_toggle .wps_wpr_common_slider a.wps_wpr_open_toggle::after {
    background: var(--wps-color-accent);
}

.wps-p_masd-i-winwheel-card .wps_wpr_slide_toggle * {
    color: var(--wps-color-secondary);
}

@media screen and (max-width: 768px) {
    .wps_wpr_tier_modal_content_item .custom-product-card {
        flex: 1 0 95%;
        max-width: 100%;
    }

    .wps_wpr_tier_modal_content_items {
        max-height: 500px;
    }
}

.wps_wpr_container-popup-val .wps_wpr-val {
    font-size: 24px !important;
    color: var(--wps-color-accent) !important;
}

/*
 * Shared UI overrides — the floating "spin the wheel" launcher and its
 * housing (.wps_wpr_wheel_icon, #wps_wpr_spinWheelButton, the win-popup
 * claim button, etc.) are markup we render here, but their CSS ships in
 * the points-and-rewards-for-woocommerce plugin via plain :root custom
 * properties, some of which that plugin also sets at runtime via JS. We
 * cannot edit that plugin's files, so we repin the same variables here
 * with !important — !important always wins over a non-important
 * declaration regardless of stylesheet load order, so this is reliable
 * without needing to control enqueue order. This keeps the wheel launcher,
 * its pointer button and the win-claim popup on the site's brand palette.
 */
:root {
    --wheel-border-color: #FFFEFB !important;
    --pointer-width: 80px !important;
    --pointer-color: #FFFEFB !important;
    --pointer-text-color: #394139 !important;
    --shadow-color: #252724 !important;
    --btn-pr-color: #394139 !important;
    --btn-txt-color: #FFFEFB !important;
    --success-color: #A6845E !important;
    /*
     * The campaign popup modal (points-and-rewards-for-woocommerce,
     * "Points and Rewards Program" trophy popup) reads its gradient from
     * these two variables, also set at runtime via JS. Pin both to the
     * brand primary so it stops rendering as a separate, unrelated
     * product from the win-wheel and gift notices.
     */
    --wps-modal-prim-col: #394139 !important;
    --wps-modal-sec-col: #7D8C79 !important;
}
