.rle-dashboard{max-width:900px}.rle-balance{padding:24px;border:1px solid #ddd;margin:20px 0}.rle-balance strong{font-size:36px;display:block}.rle-balance span{display:block}.rle-balance small{display:block;margin-top:8px}.rle-rule{padding:14px;border-bottom:1px solid #eee;display:flex;gap:20px;align-items:center}.rle-rule em{margin-left:auto}.rle-redeem{padding:16px;border:1px solid #ddd}.rle-redeem input{max-width:160px;margin:0 8px}.rle-redeem button{cursor:pointer}.rle-redeem-message{margin-top:10px}@media(max-width:700px){.rle-rule{display:block}.rle-rule em{display:block;margin-top:6px}.rle-redeem input{margin:8px 0;width:100%;max-width:none}.rle-redeem button{width:100%}}
.rle-order-rewards{background:#fafafa}.rle-order-rewards h2{font-size:1.25em}.rle-order-list-points{font-weight:600}


/* ============================================================
 * RLE ORDER NOTIFICATION STYLE
 * Reference visual language:
 * - information/card backgrounds
 * - strong left accent rail
 * - circular icon area
 * - compact uppercase headline
 * - concise supporting text
 * ============================================================ */

.rle-notice-card{
    box-sizing:border-box;
    display:flex;
    align-items:flex-start;
    gap:18px;
    width:100%;
    margin-top:24px;
    padding:22px 24px 22px 28px;
    border:0;
    border-left:4px solid #2272B1;
    border-radius:0;
    background:#EEF5FB;
    color:#123F63;
    box-shadow:0 1px 3px rgba(0,0,0,.08);
    font-family:inherit;
}
.rle-notice-card *{box-sizing:border-box}

.rle-notice-card--rewards{
    border-left-color:#E59B00;
    background:#FFF2DF;
    color:#765000;
}

/* Circular visual marker, matching the reference notification cards. */
.rle-notice-card::before{
    content:"★";
    flex:0 0 62px;
    width:62px;
    height:62px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-top:2px;
    border-radius:50%;
    background:#2272B1;
    color:#fff;
    font-size:24px;
    font-weight:800;
    line-height:1;
}
.rle-notice-card--rewards::before{
    content:"★";
    background:#E59B00;
    color:#fff;
}

/* Content column */
.rle-notice-card__header{
    margin:0 0 7px;
}
.rle-notice-card__eyebrow{
    display:none;
}
.rle-notice-card h2,
.rle-notice-card h3{
    margin:0;
    color:#1F527C;
    font-size:21px;
    line-height:1.16;
    font-weight:800;
    letter-spacing:.015em;
    text-transform:uppercase;
}
.rle-notice-card--rewards h2,
.rle-notice-card--rewards h3{
    color:#7A5200;
}

.rle-notice-card__status{
    margin:0 0 12px;
    padding:0;
    border:0;
    background:transparent;
    color:inherit;
    font-size:14px;
    font-weight:700;
}

.rle-reward-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
    margin-top:10px;
}
.rle-reward-stat{
    min-width:0;
    padding:0;
    border:0;
    background:transparent;
}
.rle-reward-stat strong{
    display:block;
    margin:0 0 2px;
    color:#1F527C;
    font-size:21px;
    line-height:1.15;
    font-weight:800;
}
.rle-notice-card--rewards .rle-reward-stat strong{
    color:#7A5200;
}
.rle-reward-stat span{
    display:block;
    color:#285B82;
    font-size:12px;
    line-height:1.35;
    font-weight:600;
}
.rle-notice-card--rewards .rle-reward-stat span{
    color:#806020;
}

.rle-notice-card__footer{
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:10px;
    padding-top:9px;
    border-top:1px solid rgba(34,114,177,.18);
    color:#285B82;
    font-size:13px;
}
.rle-notice-card--rewards .rle-notice-card__footer{
    border-top-color:rgba(229,155,0,.22);
    color:#806020;
}
.rle-notice-card__footer strong{
    color:#1F527C;
}
.rle-notice-card--rewards .rle-notice-card__footer strong{
    color:#7A5200;
}

.rle-notice-card__button{
    display:inline-block;
    margin-top:13px;
    padding:9px 14px;
    border:0;
    border-radius:3px;
    background:#2272B1;
    color:#fff !important;
    font-size:11px;
    font-weight:800;
    line-height:1.2;
    letter-spacing:.05em;
    text-decoration:none !important;
    text-transform:uppercase;
}
.rle-notice-card--rewards .rle-notice-card__button{
    background:#E59B00;
    color:#fff !important;
}
.rle-notice-card__button:hover,
.rle-notice-card__button:focus{
    filter:brightness(.94);
    color:#fff !important;
}

/* Customer order list */
.rle-order-list-points{
    display:inline-block;
    color:#7A5200;
    font-weight:800;
}

/* Existing Rewards dashboard keeps its own layout but uses the same
 * notification language for order-related reward messages. */
.rle-redeem-message{
    margin-top:10px;
}

@media(max-width:700px){
    .rle-notice-card{
        gap:14px;
        padding:18px 16px 18px 18px;
    }
    .rle-notice-card::before{
        flex-basis:48px;
        width:48px;
        height:48px;
        font-size:18px;
    }
    .rle-notice-card h2,
    .rle-notice-card h3{
        font-size:18px;
    }
    .rle-reward-grid{
        grid-template-columns:1fr;
        gap:8px;
    }
}

/* v0.4.0 redemption wallet */
.rle-redemption-box{
    margin:24px 0;
    padding:22px 24px 24px 28px;
    border-left:4px solid #E59B00;
    background:#FFF2DF;
    color:#765000;
    box-shadow:0 1px 3px rgba(0,0,0,.08);
}
.rle-redemption-box__title{
    color:#7A5200;
    font-size:20px;
    line-height:1.2;
    font-weight:800;
    text-transform:uppercase;
}
.rle-redemption-box__balance{
    margin-top:5px;
    color:#806020;
    font-size:13px;
    font-weight:700;
}
.rle-redemption-box__tiers{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    margin-top:18px;
}
.rle-redemption-tier{
    padding:15px;
    border:1px solid rgba(229,155,0,.28);
    background:#fff9f0;
}
.rle-redemption-tier strong,
.rle-redemption-tier span,
.rle-redemption-tier small{display:block}
.rle-redemption-tier strong{font-size:21px;color:#7A5200}
.rle-redemption-tier span{margin-top:3px;font-size:12px;font-weight:700;color:#806020}
.rle-redemption-tier small{margin-top:8px;color:#806020}
.rle-redemption-tier.is-locked{opacity:.62}
.rle-redeem-tier,
.rle-apply-tier,
.rle-release-tier{
    margin-top:11px;
    padding:9px 12px;
    border:0;
    border-radius:3px;
    cursor:pointer;
    font-size:11px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
}
.rle-redeem-tier,
.rle-apply-tier{background:#E59B00;color:#fff}
.rle-release-tier{background:#765000;color:#fff;margin-left:5px}
.rle-redeem-tier:disabled,
.rle-apply-tier:disabled,
.rle-release-tier:disabled{opacity:.55;cursor:wait}
.rle-active-reward{
    margin-top:16px;
    padding:14px;
    border:1px solid rgba(229,155,0,.3);
    background:#fff9f0;
}
.rle-active-reward strong{display:block;color:#7A5200;font-size:16px}
.rle-active-reward span{display:block;margin-top:4px;color:#806020;font-size:12px}
.rle-redemption-message{margin-top:12px;font-weight:700}
@media(max-width:700px){
    .rle-redemption-box{padding:18px}
    .rle-redemption-box__tiers{grid-template-columns:1fr}
}

/* v0.4.1 Admin QA Console */
.rle-qa-wrap .rle-qa-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:1180px;margin-top:20px}
.rle-qa-card{background:#fff;border:1px solid #dcdcde;padding:20px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.rle-qa-card h2{margin-top:0}
.rle-qa-stat{display:flex;justify-content:space-between;border-bottom:1px solid #eee;padding:10px 0}
.rle-qa-stat:last-child{border-bottom:0}
.rle-qa-buttons{display:flex;flex-wrap:wrap;gap:8px}
.rle-qa-redemption{border-left:4px solid #E59B00;background:#fff8ed;padding:12px;margin-bottom:10px}
.rle-qa-danger{border-color:#d63638}
@media(max-width:900px){.rle-qa-wrap .rle-qa-grid{grid-template-columns:1fr}}

/* v0.4.2 cart synchronization */
.rle-custom-points-redeem{margin-top:16px;padding:15px;background:#fff9f0;border:1px solid rgba(229,155,0,.3)}
.rle-custom-points-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:9px}
.rle-custom-points-row input{max-width:150px;padding:8px}
.rle-custom-points-value{font-weight:700;color:#7A5200}
.rle-redeem-custom-points{padding:9px 12px;border:0;border-radius:3px;background:#E59B00;color:#fff;font-size:11px;font-weight:800;cursor:pointer}

/* v0.4.4 points-earned state */
.rle-order-rewards__earned-note{margin:12px 0 0;font-size:13px;opacity:.9}

/* ============================================================
 * v0.4.5 UX VISIBILITY SYSTEM
 * Design language aligned to the restaurant order notification
 * cards: strong left rail, high-contrast blue/gold, circular marker,
 * uppercase instant-recognition labels, responsive stacking.
 * ============================================================ */

.rle-ux-card,
.rle-dashboard-hero,
.rle-cart-reward-line{
    box-sizing:border-box;
    font-family:inherit;
}

.rle-ux-card *,
.rle-dashboard-hero *{
    box-sizing:border-box;
}

.rle-ux-card{
    border:1px solid #D9DEE5;
    border-left:5px solid #E59B00;
    border-radius:2px;
    background:#FFF8ED;
    color:#2B2B2B;
    box-shadow:0 1px 3px rgba(0,0,0,.06);
}

.rle-order-panel.rle-ux-card{
    margin:18px 0 22px;
    padding:0;
}

.rle-ux-card__top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    padding:18px 20px 14px;
}

.rle-ux-eyebrow{
    margin-bottom:4px;
    color:#7A5200;
    font-size:12px;
    line-height:1.2;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.rle-ux-card h2,
.rle-ux-card h3{
    margin:0;
    color:#214C36;
    font-size:22px;
    line-height:1.15;
    font-weight:900;
}

.rle-status-badge{
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:7px 11px;
    border-radius:3px;
    font-size:11px;
    line-height:1.1;
    font-weight:900;
    letter-spacing:.05em;
    text-align:center;
    text-transform:uppercase;
    white-space:nowrap;
}

.rle-status-badge--confirmed{
    background:#E8F4EA;
    color:#1E6B32;
    border:1px solid #A9D4B0;
}
.rle-status-badge--pending{
    background:#FFF0D1;
    color:#805400;
    border:1px solid #E5BF72;
}
.rle-status-badge--released{
    background:#FDEBEC;
    color:#9B1C24;
    border:1px solid #E7A4A8;
}
.rle-status-badge--none{
    background:#EEF2F6;
    color:#425466;
    border:1px solid #CDD6E0;
}

.rle-order-hero-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:1px;
    margin:0 20px;
    border:1px solid #E5D7BE;
    background:#E5D7BE;
}

.rle-order-hero-stat{
    min-width:0;
    padding:15px 14px;
    background:#FFFFFF;
}

.rle-order-hero-stat--primary{
    background:#FFF2DF;
}

.rle-order-hero-stat span{
    display:block;
    margin-bottom:5px;
    color:#5B6770;
    font-size:11px;
    line-height:1.25;
    font-weight:800;
    letter-spacing:.03em;
    text-transform:uppercase;
}

.rle-order-hero-stat strong{
    display:block;
    color:#214C36;
    font-size:21px;
    line-height:1.1;
    font-weight:900;
    overflow-wrap:anywhere;
}

.rle-order-hero-stat--primary strong{
    color:#7A5200;
}

.rle-order-meta-strip{
    display:flex;
    flex-wrap:wrap;
    gap:0;
    margin:14px 20px 0;
    border-top:1px solid rgba(122,82,0,.18);
}

.rle-order-meta-strip>div{
    flex:1 1 180px;
    padding:10px 12px 8px 0;
}

.rle-order-meta-strip span{
    display:block;
    color:#68737D;
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
}
.rle-order-meta-strip strong{
    display:block;
    margin-top:2px;
    color:#2D3740;
    font-size:14px;
    line-height:1.3;
}

.rle-action-message{
    display:flex;
    align-items:flex-start;
    gap:8px;
    margin:14px 20px 20px;
    padding:11px 13px;
    border-left:4px solid;
    font-size:13px;
    line-height:1.4;
}
.rle-action-message strong{display:block}
.rle-action-message span{display:block}
.rle-action-message--pending{
    border-left-color:#E59B00;
    background:#FFF3DC;
    color:#684A0B;
}
.rle-action-message--success{
    border-left-color:#2E7D32;
    background:#EDF7EF;
    color:#205C27;
}

.rle-ux-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    margin:0 20px 20px;
    padding:10px 16px;
    border:0;
    border-radius:3px;
    background:#214C36;
    color:#fff !important;
    font-size:12px;
    line-height:1.2;
    font-weight:900;
    letter-spacing:.04em;
    text-decoration:none !important;
    text-transform:uppercase;
}
.rle-ux-button:hover,
.rle-ux-button:focus{filter:brightness(.94);color:#fff !important}

.rle-order-list-reward{
    display:inline-block;
    color:#7A5200;
    font-weight:900;
    font-size:12px;
}
.rle-order-list-points{
    display:inline-block;
    color:#1E6B32;
    font-weight:900;
    font-size:12px;
}
.rle-order-list-pending{
    display:inline-block;
    color:#805400;
    font-size:11px;
    font-weight:800;
}

/* Customer Rewards dashboard */
.rle-dashboard--premium{
    max-width:960px;
    margin:0 auto;
}
.rle-dashboard-hero{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin:0 0 20px;
    padding:22px;
    border-left:5px solid #214C36;
    background:#F2F7F3;
    box-shadow:0 1px 3px rgba(0,0,0,.06);
}
.rle-dashboard-hero h2{
    margin:0;
    color:#214C36;
    font-size:26px;
    line-height:1.15;
    font-weight:900;
}
.rle-dashboard-hero p{
    margin:6px 0 0;
    color:#4B5B54;
    font-size:14px;
}
.rle-dashboard-balance{
    flex:0 0 auto;
    min-width:190px;
    padding:14px 16px;
    border:1px solid #D7E1DA;
    background:#fff;
    text-align:center;
}
.rle-dashboard-balance strong{
    display:block;
    color:#214C36;
    font-size:34px;
    line-height:1;
    font-weight:900;
}
.rle-dashboard-balance span{
    display:block;
    margin-top:5px;
    color:#4B5B54;
    font-size:11px;
    font-weight:900;
    letter-spacing:.06em;
}
.rle-dashboard-balance small{
    display:block;
    margin-top:5px;
    color:#7A5200;
    font-size:12px;
    font-weight:800;
}

.rle-dashboard-section{
    margin:24px 0;
}
.rle-dashboard-section>h3{
    margin:0 0 10px;
    color:#214C36;
    font-size:18px;
    line-height:1.2;
    font-weight:900;
}

.rle-custom-points-redeem{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    gap:14px;
    margin:18px 0;
    padding:16px 18px;
    border-left:5px solid #E59B00 !important;
    background:#FFF8ED !important;
}
.rle-custom-points-redeem>div:first-child strong,
.rle-custom-points-redeem>div:first-child span{
    display:block;
}
.rle-custom-points-redeem>div:first-child strong{
    color:#7A5200;
    font-size:15px;
    font-weight:900;
}
.rle-custom-points-redeem>div:first-child span{
    margin-top:3px;
    color:#685D4A;
    font-size:13px;
}
.rle-custom-points-redeem small{
    grid-column:1/-1;
    color:#685D4A;
    font-size:12px;
}

.rle-history-wrap{overflow-x:auto}
.rle-history-table{min-width:560px}
.rle-history-positive{color:#1E6B32;font-weight:900}
.rle-history-negative{color:#9B1C24;font-weight:900}

/* Cart / checkout: make reward instantly visible before payment */
.rle-checkout-reward th{
    padding:0 !important;
    border-top:1px solid #E7D5B6 !important;
}
.rle-cart-reward-line{
    display:grid;
    grid-template-columns:42px 1fr auto;
    align-items:center;
    gap:11px;
    width:100%;
    padding:13px 4px;
}
.rle-cart-reward-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:38px;
    height:38px;
    border-radius:50%;
    background:#E59B00;
    color:#fff;
    font-size:17px;
    font-weight:900;
}
.rle-cart-reward-copy strong,
.rle-cart-reward-copy small{display:block}
.rle-cart-reward-copy strong{
    color:#7A5200;
    font-size:12px;
    line-height:1.2;
    font-weight:900;
    letter-spacing:.04em;
}
.rle-cart-reward-copy small{
    margin-top:3px;
    color:#5D5A54;
    font-size:12px;
    line-height:1.35;
}
.rle-cart-reward-value{
    color:#7A5200;
    font-size:16px;
    font-weight:900;
    white-space:nowrap;
}

@media(max-width:900px){
    .rle-order-hero-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .rle-dashboard-hero{align-items:stretch}
}

@media(max-width:600px){
    .rle-ux-card__top{
        display:block;
        padding:15px;
    }
    .rle-ux-card h2,
    .rle-ux-card h3{font-size:19px}
    .rle-status-badge{
        width:100%;
        margin-top:11px;
        min-height:38px;
    }
    .rle-order-hero-grid{
        grid-template-columns:1fr 1fr;
        margin:0 12px;
    }
    .rle-order-hero-stat{
        padding:12px 10px;
    }
    .rle-order-hero-stat strong{font-size:19px}
    .rle-order-hero-stat span{font-size:10px}
    .rle-order-meta-strip{margin:12px 12px 0}
    .rle-order-meta-strip>div{flex-basis:50%;padding:8px 8px 7px 0}
    .rle-action-message{
        margin:12px 12px 15px;
        display:block;
        font-size:13px;
    }
    .rle-action-message span{margin-top:2px}
    .rle-ux-button{
        width:calc(100% - 24px);
        margin:0 12px 15px;
    }

    .rle-dashboard-hero{
        display:block;
        padding:17px;
    }
    .rle-dashboard-hero h2{font-size:23px}
    .rle-dashboard-balance{
        min-width:0;
        margin-top:15px;
    }
    .rle-dashboard-balance strong{font-size:32px}

    .rle-custom-points-redeem{
        grid-template-columns:1fr;
        padding:14px;
    }
    .rle-custom-points-row{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:8px;
    }
    .rle-custom-points-row input{
        width:100%;
        max-width:none;
        min-height:44px;
    }
    .rle-custom-points-value{
        display:flex;
        align-items:center;
        justify-content:center;
        min-height:44px;
    }
    .rle-redeem-custom-points{
        grid-column:1/-1;
        width:100%;
        min-height:44px;
    }

    .rle-cart-reward-line{
        grid-template-columns:38px 1fr;
        gap:9px;
        padding:11px 0;
    }
    .rle-cart-reward-value{
        grid-column:2;
        font-size:15px;
    }
}

/* ============================================================
 * v0.4.6 ADMIN ORDER REWARDS PREVIEW
 * High-visibility WooCommerce order-page card.
 * ============================================================ */
.rle-admin-order-rewards{
    position:relative;
    overflow:hidden;
    margin:20px 0 !important;
    padding:0 !important;
    border:1px solid #D7DDE3 !important;
    border-left:5px solid #E59B00 !important;
    border-radius:4px !important;
    background:#FFF8ED !important;
    box-shadow:0 2px 6px rgba(0,0,0,.07) !important;
    color:#263238 !important;
    font-family:inherit !important;
}
.rle-admin-order-rewards .rle-admin-rewards-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:16px 18px;
    background:#fff;
    border-bottom:1px solid #E7DCCB;
}
.rle-admin-order-rewards .rle-admin-rewards-brand{
    display:flex;
    align-items:center;
    gap:10px;
}
.rle-admin-order-rewards .rle-admin-rewards-star{
    display:flex;
    align-items:center;
    justify-content:center;
    width:36px;
    height:36px;
    border-radius:50%;
    background:#E59B00;
    color:#fff;
    font-weight:900;
    font-size:16px;
}
.rle-admin-order-rewards .rle-admin-rewards-title{
    margin:0;
    color:#214C36;
    font-size:16px;
    line-height:1.15;
    font-weight:900;
}
.rle-admin-order-rewards .rle-admin-rewards-subtitle{
    margin:3px 0 0;
    color:#68737D;
    font-size:11px;
    line-height:1.25;
    font-weight:700;
}
.rle-admin-order-rewards .rle-admin-rewards-status{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:32px;
    padding:7px 10px;
    border-radius:3px;
    font-size:10px;
    line-height:1.1;
    font-weight:900;
    letter-spacing:.06em;
    white-space:nowrap;
}
.rle-admin-order-rewards .rle-admin-rewards-status.is-confirmed{
    color:#1E6B32;
    background:#E8F4EA;
    border:1px solid #A9D4B0;
}
.rle-admin-order-rewards .rle-admin-rewards-status.is-pending{
    color:#805400;
    background:#FFF0D1;
    border:1px solid #E5BF72;
}
.rle-admin-order-rewards .rle-admin-rewards-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:1px;
    margin:0;
    background:#E4D9C5;
}
.rle-admin-order-rewards .rle-admin-rewards-stat{
    min-width:0;
    padding:14px 15px;
    background:#fff;
}
.rle-admin-order-rewards .rle-admin-rewards-stat.is-primary{
    background:#FFF2DF;
}
.rle-admin-order-rewards .rle-admin-rewards-label{
    display:block;
    margin-bottom:5px;
    color:#65727C;
    font-size:10px;
    line-height:1.2;
    font-weight:900;
    letter-spacing:.05em;
    text-transform:uppercase;
}
.rle-admin-order-rewards .rle-admin-rewards-value{
    display:block;
    color:#214C36;
    font-size:20px;
    line-height:1.05;
    font-weight:900;
    overflow-wrap:anywhere;
}
.rle-admin-order-rewards .is-primary .rle-admin-rewards-value{
    color:#7A5200;
}
.rle-admin-order-rewards .rle-admin-rewards-meta{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:0;
    padding:0 15px;
    background:#FFF8ED;
    border-top:1px solid #E7DCCB;
}
.rle-admin-order-rewards .rle-admin-rewards-meta-item{
    padding:11px 12px 11px 0;
}
.rle-admin-order-rewards .rle-admin-rewards-meta-item span{
    display:block;
    color:#68737D;
    font-size:10px;
    font-weight:800;
    text-transform:uppercase;
}
.rle-admin-order-rewards .rle-admin-rewards-meta-item strong{
    display:block;
    margin-top:2px;
    color:#29343B;
    font-size:13px;
    line-height:1.25;
}
.rle-admin-order-rewards .rle-admin-rewards-notice{
    margin:12px 15px 15px;
    padding:10px 12px;
    border-left:4px solid #E59B00;
    background:#FFF0D1;
    color:#684A0B;
    font-size:12px;
    line-height:1.35;
}
.rle-admin-order-rewards .rle-admin-rewards-notice.is-confirmed{
    border-left-color:#2E7D32;
    background:#EDF7EF;
    color:#205C27;
}
@media(max-width:700px){
    .rle-admin-order-rewards .rle-admin-rewards-header{
        display:block;
    }
    .rle-admin-order-rewards .rle-admin-rewards-status{
        width:100%;
        margin-top:10px;
    }
    .rle-admin-order-rewards .rle-admin-rewards-grid{
        grid-template-columns:1fr 1fr;
    }
    .rle-admin-order-rewards .rle-admin-rewards-meta{
        grid-template-columns:1fr 1fr;
    }
}

/* ============================================================
 * v0.4.7 — ESTRELLA AZTECA FRONT-END REWARDS BAR
 * Brand reference palette:
 * Teal #20ACC3 / Gold #E8AD25 / Red #C6493D / White
 * ============================================================ */
.rle-persistent-rewards{
    --rle-teal:#20ACC3;
    --rle-gold:#E8AD25;
    --rle-red:#C6493D;
    --rle-cream:#FFFDF7;
    --rle-ink:#242424;
    --rle-green:#276B43;
    width:100%;
    position:relative;
    z-index:20;
    background:var(--rle-cream);
    border-top:3px solid var(--rle-gold);
    border-bottom:1px solid rgba(36,36,36,.12);
    box-shadow:0 2px 8px rgba(0,0,0,.08);
    font-family:inherit;
}
.rle-persistent-rewards__inner{
    max-width:1280px;
    min-height:64px;
    margin:0 auto;
    padding:9px 18px;
    display:flex;
    align-items:center;
    gap:18px;
}
.rle-persistent-rewards__identity{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:180px;
}
.rle-persistent-rewards__star{
    width:40px;
    height:40px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--rle-red);
    color:#fff;
    border:2px solid var(--rle-gold);
    font-size:19px;
    font-weight:900;
}
.rle-persistent-rewards__identity strong{
    display:block;
    color:var(--rle-red);
    font-size:18px;
    line-height:1;
    font-weight:900;
    letter-spacing:.02em;
}
.rle-persistent-rewards__identity small{
    display:block;
    margin-top:4px;
    color:#5F5B53;
    font-size:9px;
    line-height:1.1;
    font-weight:800;
    letter-spacing:.05em;
}
.rle-persistent-rewards__balance{
    display:flex;
    align-items:baseline;
    gap:9px;
    flex:1 1 auto;
}
.rle-persistent-rewards__balance>strong{
    color:#167F94;
    font-size:19px;
    line-height:1;
    font-weight:900;
    white-space:nowrap;
}
.rle-persistent-rewards__balance>strong:nth-of-type(2){
    color:#B77A00;
}
.rle-persistent-rewards__balance strong span{
    font-size:9px;
    letter-spacing:.05em;
}
.rle-persistent-rewards__dot{
    color:var(--rle-gold);
    font-weight:900;
}
.rle-persistent-rewards__applied{
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:7px 13px;
    border-left:3px solid var(--rle-gold);
    background:#FFF4D9;
}
.rle-persistent-rewards__applied strong{
    color:var(--rle-green);
    font-size:12px;
    line-height:1.1;
    font-weight:900;
}
.rle-persistent-rewards__applied small{
    margin-top:3px;
    color:#665E4E;
    font-size:9px;
    line-height:1.1;
    font-weight:800;
}
.rle-persistent-rewards__button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:40px;
    padding:9px 14px;
    border:2px solid var(--rle-red);
    border-radius:5px;
    background:#fff;
    color:var(--rle-red) !important;
    font-size:11px;
    line-height:1;
    font-weight:900;
    letter-spacing:.02em;
    text-decoration:none !important;
    white-space:nowrap;
}
.rle-persistent-rewards__button:hover,
.rle-persistent-rewards__button:focus{
    background:var(--rle-red);
    color:#fff !important;
}
.rle-persistent-rewards__button span{font-size:19px;line-height:10px}

/* Cart / checkout: brand-integrated reward row */
.rle-checkout-reward th{
    background:transparent !important;
}
.rle-cart-reward-line{
    border:2px solid var(--rle-gold);
    border-radius:6px;
    background:var(--rle-cream);
}
.rle-cart-reward-icon{
    background:var(--rle-red) !important;
    border:2px solid var(--rle-gold);
}
.rle-cart-reward-copy strong{color:var(--rle-red) !important}
.rle-cart-reward-copy small{color:var(--rle-ink) !important;font-weight:800}
.rle-cart-reward-copy em{
    display:block;
    margin-top:3px;
    color:var(--rle-green);
    font-size:10px;
    line-height:1.2;
    font-style:normal;
    font-weight:900;
    letter-spacing:.02em;
    text-transform:uppercase;
}
.rle-cart-reward-value{color:var(--rle-green) !important}

/* Mobile */
@media(max-width:700px){
    .rle-persistent-rewards__inner{
        min-height:56px;
        padding:7px 10px;
        gap:8px;
    }
    .rle-persistent-rewards__identity{
        min-width:0;
        flex:0 0 auto;
        gap:7px;
    }
    .rle-persistent-rewards__star{
        width:32px;
        height:32px;
        font-size:15px;
    }
    .rle-persistent-rewards__identity strong{font-size:14px}
    .rle-persistent-rewards__identity small{display:none}
    .rle-persistent-rewards__balance{
        min-width:0;
        gap:5px;
        flex-wrap:wrap;
    }
    .rle-persistent-rewards__balance>strong{
        font-size:15px;
    }
    .rle-persistent-rewards__balance strong span{font-size:8px}
    .rle-persistent-rewards__dot{display:none}
    .rle-persistent-rewards__applied{
        display:none;
    }
    .rle-persistent-rewards__button{
        min-height:36px;
        padding:8px 9px;
        font-size:9px;
    }
    .rle-persistent-rewards__button > span[aria-hidden="true"]{display:none}.rle-persistent-rewards__button .rle-rewards-button-text{display:inline !important;font-size:11px;line-height:1.1;white-space:nowrap}
    .rle-cart-reward-copy em{font-size:9px}
}

/* ============================================================
 * v0.4.8 — LIVE CART / CART ALL IN ONE REWARDS WIDGET
 * ============================================================ */
.rle-cart-live-rewards{
    --rle-teal:#20ACC3;
    --rle-gold:#E8AD25;
    --rle-red:#C6493D;
    --rle-cream:#FFFDF7;
    --rle-green:#276B43;
    box-sizing:border-box;
    width:100%;
    margin:10px 0;
    padding:12px 13px;
    border:2px solid var(--rle-gold);
    border-radius:6px;
    background:var(--rle-cream);
    color:#242424;
    box-shadow:0 1px 3px rgba(0,0,0,.07);
    font-family:inherit;
}
.rle-cart-live-rewards *{box-sizing:border-box}
.rle-cart-live-rewards__head{
    display:flex;
    align-items:center;
    gap:8px;
    padding-bottom:8px;
    border-bottom:1px solid rgba(232,173,37,.55);
}
.rle-cart-live-rewards__star{
    display:flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    border-radius:50%;
    background:var(--rle-red);
    border:1px solid var(--rle-gold);
    color:#fff;
    font-size:13px;
    font-weight:900;
}
.rle-cart-live-rewards__head strong{
    color:var(--rle-red);
    font-size:14px;
    line-height:1;
    font-weight:900;
    letter-spacing:.03em;
}
.rle-cart-live-rewards__refresh{
    margin-left:auto;
    padding:0 3px;
    border:0;
    background:transparent;
    color:#7D7464;
    font-size:17px;
    line-height:1;
    cursor:pointer;
}
.rle-cart-live-rewards__body{
    display:grid;
    grid-template-columns:105px 1fr;
    gap:12px;
    align-items:center;
    padding-top:10px;
}
.rle-cart-live-rewards__available strong{
    display:block;
    color:#167F94;
    font-size:22px;
    line-height:1;
    font-weight:900;
}
.rle-cart-live-rewards__available span{
    display:block;
    margin-top:3px;
    color:#68635A;
    font-size:8px;
    line-height:1.1;
    font-weight:900;
    letter-spacing:.04em;
}
.rle-cart-live-rewards__state{
    color:#3F3B35;
    font-size:11px;
    line-height:1.4;
    font-weight:700;
}
.rle-cart-live-rewards__state strong{color:var(--rle-green);font-weight:900}
.rle-cart-live-rewards__state small{
    display:block;
    margin-top:3px;
    color:#8A6500;
    font-size:9px;
    line-height:1.2;
    font-weight:900;
    text-transform:uppercase;
}

/* Make the live rewards block safe inside VillaTheme's sidebar cart and menu cart. */
[class*="viwcaio"] .rle-cart-live-rewards{
    position:relative;
    z-index:2;
}

@media(max-width:700px){
    .rle-cart-live-rewards{margin:8px 0;padding:10px}
    .rle-cart-live-rewards__body{grid-template-columns:88px 1fr;gap:9px}
    .rle-cart-live-rewards__available strong{font-size:19px}
    .rle-cart-live-rewards__state{font-size:10px}
}

/* v0.4.9 — Cart All in One integration widget */
.rle-cart-live-rewards{
    margin:12px 0;
    padding:12px 14px;
    background:#FFF9ED;
    border:2px solid #E8AE24;
    border-radius:6px;
    color:#242424;
    box-sizing:border-box;
}
.rle-cart-live-rewards__head{display:flex;align-items:center;gap:8px;color:#C9473B;font-size:12px;font-weight:900;letter-spacing:.02em}
.rle-cart-live-rewards__star{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#C9473B;color:#fff;border:2px solid #E8AE24;font-size:11px}
.rle-cart-live-rewards__available{display:flex;align-items:baseline;gap:6px;margin-top:9px;color:#20AFC3}
.rle-cart-live-rewards__available strong{font-size:20px;font-weight:900;line-height:1}
.rle-cart-live-rewards__available span{font-size:9px;font-weight:900;letter-spacing:.04em;color:#5F5B53}
.rle-cart-live-rewards__state{margin-top:7px;font-size:10px;line-height:1.35;color:#242424}
.rle-cart-live-rewards__state strong{color:#2B7046;font-weight:900}
.rle-cart-live-rewards__state small{display:block;margin-top:4px;color:#5F5B53;font-size:9px;font-weight:800;text-transform:uppercase}

/* ============================================================
 * v0.5.0 — ADMIN ORDER + PRODUCT REWARD UX
 * ============================================================ */
.rle-admin-order-rewards,
.rle-admin-product-reward{
    box-sizing:border-box;
    font-family:inherit;
}
.rle-admin-product-reward{
    margin:16px 0 20px;
    padding:0;
    border:1px solid #DDD8CB;
    border-left:5px solid #E8AE24;
    border-radius:5px;
    overflow:hidden;
    background:#FFF9ED;
    box-shadow:0 2px 8px rgba(0,0,0,.06);
}
.rle-admin-product-reward__title{
    display:flex;align-items:center;gap:12px;padding:14px 16px;background:#fff;border-bottom:1px solid #E9E1D0;
}
.rle-admin-product-reward__icon{
    width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#C9473B;color:#fff;border:2px solid #E8AE24;font-weight:900;
}
.rle-admin-product-reward__title strong{display:block;color:#276B43;font-size:14px;font-weight:900;letter-spacing:.03em}
.rle-admin-product-reward__title small{display:block;margin-top:3px;color:#687078;font-size:10px;font-weight:700}
.rle-admin-product-reward__earned{
    padding:12px 16px;background:#EAF6EF;border-bottom:1px solid #D2E7D9;color:#276B43;
}
.rle-admin-product-reward__earned strong{display:block;font-size:13px;font-weight:900}
.rle-admin-product-reward__earned span{display:block;margin-top:3px;font-size:11px}
.rle-admin-product-reward__claim{
    display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px;padding:12px 16px;background:#fff;border-bottom:1px solid #EEEAE1;
}
.rle-admin-product-reward__claim:last-child{border-bottom:0}
.rle-admin-product-reward__claim span{font-weight:800;color:#242424;font-size:12px}
.rle-admin-product-reward__claim strong{padding:5px 8px;border-radius:3px;background:#EAF6EF;color:#276B43;font-size:9px;letter-spacing:.05em}
.rle-admin-product-reward__claim small{color:#687078;font-size:9px;font-weight:800;text-transform:uppercase}

.rle-product-reward-claim{display:flex;align-items:center;gap:8px;margin-top:9px;flex-wrap:wrap}
.rle-product-reward-product{max-width:240px;min-height:34px}
.rle-claim-product-reward{min-height:34px;padding:7px 12px;border:0;border-radius:4px;background:#C9473B;color:#fff;font-size:10px;font-weight:900;cursor:pointer}
.rle-claim-product-reward:hover,.rle-claim-product-reward:focus{background:#A83A31;color:#fff}
.rle-rule em{display:block;color:#276B43;font-size:11px;font-weight:900;margin-top:5px}
.rle-rule small{display:block;color:#687078;font-size:10px;margin-top:5px}

.rle-cart-product-reward{
    margin-top:10px;padding:10px;border:2px solid #E8AE24;border-radius:5px;background:#FFF9ED;
}
.rle-cart-product-reward>div strong{display:block;color:#C9473B;font-size:10px;font-weight:900;letter-spacing:.04em}
.rle-cart-product-reward>div small{display:block;margin-top:3px;color:#687078;font-size:9px;font-weight:700}
.rle-cart-product-reward select{width:100%;margin-top:8px;min-height:34px}
.rle-cart-product-reward button{width:100%;margin-top:8px;min-height:36px;border:0;border-radius:4px;background:#C9473B;color:#fff;font-weight:900;font-size:10px}

@media(max-width:700px){
    .rle-admin-product-reward__claim{grid-template-columns:1fr;gap:6px}
    .rle-product-reward-product,.rle-claim-product-reward{width:100%;max-width:none}
}

.rle-admin-product-reward__pending{padding:12px 16px;background:#FFF0D1;border-bottom:1px solid #E8D09A;color:#805400}
.rle-admin-product-reward__pending strong{display:block;font-size:12px;font-weight:900}
.rle-admin-product-reward__pending span{display:block;margin-top:3px;font-size:10px}


/* v0.5.1 universal points + qualifying-unit visibility */
.rle-admin-product-reward__units{display:block;margin-top:7px;color:#687078;font-size:9px;font-weight:700}
.rle-admin-rewards-notice.is-confirmed{border-left-color:#2B7046!important;background:#EAF6EF!important;color:#205635!important}
.rle-admin-rewards-notice{font-size:11px;line-height:1.45}
.rle-admin-rewards-status.is-pending{background:#FFF0D1!important;color:#805400!important;border-color:#E8AE24!important}
@media(max-width:700px){.rle-admin-rewards-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.rle-admin-rewards-value{font-size:18px!important}}

/* v0.5.2 — live order-earning points */
.rle-persistent-rewards__current-order{
    display:flex;flex-direction:column;justify-content:center;
    padding:6px 12px;border-left:2px solid #20AFC3;background:#F2FBFD;
    min-width:105px;
}
.rle-persistent-rewards__current-order[hidden]{display:none}
.rle-persistent-rewards__current-order strong{color:#2B7046;font-size:13px;font-weight:900;line-height:1}
.rle-persistent-rewards__current-order small{margin-top:3px;color:#5F5B53;font-size:8px;font-weight:900;letter-spacing:.05em}
.rle-cart-live-rewards__order-points{color:#167F94 !important;font-weight:900 !important;text-transform:uppercase}
@media(max-width:700px){
 .rle-persistent-rewards__current-order{min-width:70px;padding:5px 7px}
 .rle-persistent-rewards__current-order strong{font-size:11px}
 .rle-persistent-rewards__current-order small{font-size:7px}
 .rle-cart-live-rewards__order-points{font-size:9px !important}
}


/* ============================================================
 * v0.5.3 — CASH PAYMENT & REWARDS COMMIT
 * ============================================================ */
.rle-admin-cash-confirm{
    margin-top:14px;
    padding:16px;
    border:2px solid #E8AE24;
    border-radius:7px;
    background:#FFF8E8;
    display:flex;
    align-items:center;
    gap:16px;
    flex-wrap:wrap;
}
.rle-admin-cash-confirm__copy{flex:1 1 420px;min-width:260px}
.rle-admin-cash-confirm__eyebrow{
    display:block;
    margin-bottom:4px;
    color:#C9473B;
    font-size:10px;
    font-weight:900;
    letter-spacing:.06em;
}
.rle-admin-cash-confirm__copy strong{
    display:block;
    color:#242424;
    font-size:13px;
    line-height:1.3;
}
.rle-admin-cash-confirm__copy small{
    display:block;
    margin-top:5px;
    color:#665E4E;
    font-size:10px;
    line-height:1.4;
}
.rle-admin-cash-confirm__button{
    min-height:42px!important;
    padding:10px 15px!important;
    border:0!important;
    border-radius:5px!important;
    background:#C9473B!important;
    color:#fff!important;
    font-weight:900!important;
    font-size:10px!important;
    letter-spacing:.02em;
    box-shadow:none!important;
    white-space:normal;
    text-align:center;
}
.rle-admin-cash-confirm__button:hover,
.rle-admin-cash-confirm__button:focus{background:#A83B32!important;color:#fff!important}
.rle-admin-cash-confirm__button.is-loading{opacity:.65;cursor:wait}
.rle-admin-cash-confirm__result{flex:1 1 100%;font-size:10px;font-weight:800}
.rle-admin-cash-confirm__result.is-success{color:#2B7046}
.rle-admin-cash-confirm__result.is-error{color:#C9473B}
@media(max-width:700px){
 .rle-admin-cash-confirm{display:block}
 .rle-admin-cash-confirm__button{width:100%;margin-top:12px!important}
}


/* v0.5.5 Reward Fulfillment */
.rle-reward-choice-label{display:block;margin-top:10px;color:#7A5200;font-size:10px;font-weight:900;letter-spacing:.05em;text-transform:uppercase}
.rle-reward-choice{width:100%;min-height:38px;margin-top:6px;padding:7px 10px;border:1px solid #E8AE24;border-radius:4px;background:#fff;color:#242424;font-weight:700}
.rle-reward-choice-note{display:block;margin-top:5px;color:#687078;font-size:9px;line-height:1.35;font-weight:700}
.rle-admin-cash-confirm{box-sizing:border-box;display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:14px;padding:16px 18px;border-left:4px solid #E8AE24;background:#FFF2DF;border-radius:2px}
.rle-admin-cash-confirm__copy{flex:1 1 380px;min-width:240px}
.rle-admin-cash-confirm__eyebrow{display:block;color:#7A5200;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.rle-admin-cash-confirm__copy strong{display:block;margin-top:4px;color:#5E450F;font-size:14px;font-weight:900}
.rle-admin-cash-confirm__copy small{display:block;margin-top:5px;color:#765F2C;font-size:10px;line-height:1.45;font-weight:700}
.rle-admin-cash-confirm__button{min-height:42px!important;padding:10px 16px!important;border:0!important;border-radius:4px!important;background:#C9473B!important;color:#fff!important;font-size:11px!important;font-weight:900!important;letter-spacing:.03em;text-transform:uppercase}
.rle-admin-cash-confirm__button:hover,.rle-admin-cash-confirm__button:focus{background:#A83B32!important;color:#fff!important}
.rle-admin-cash-confirm__result{flex:1 1 100%;font-size:10px;font-weight:800}
.rle-admin-cash-confirm__result.is-success{color:#2B7046}.rle-admin-cash-confirm__result.is-error{color:#C9473B}
@media(max-width:700px){.rle-admin-cash-confirm{display:block}.rle-admin-cash-confirm__button{width:100%;margin-top:12px!important}.rle-reward-choice{min-height:42px}}

/* v0.5.9 — split administration into independent reward engines */
.rle-admin-wrap{max-width:1180px}
.rle-admin-tabs{margin:22px 0 0}
.rle-admin-tab{padding-top:4px}
.rle-config-card{margin:18px 0 28px;padding:24px 28px;background:#fff;border:1px solid #dcdcde;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.rle-config-card h2{margin-top:0;font-size:24px}
.rle-config-card h3{margin-top:26px;font-size:18px}
.rle-scope-option{display:block;max-width:780px;margin:0 0 10px;padding:13px 16px;border:1px solid #dcdcde;background:#f8f9fa;cursor:pointer}
.rle-scope-option:hover{border-color:#8c8f94;background:#fff}
.rle-scope-option input{margin-right:8px}
.rle-scope-option strong{display:block;font-size:14px}
.rle-scope-option span{display:block;margin:4px 0 0 25px;color:#646970;font-size:12px}
.rle-multi-select{min-width:420px;max-width:760px;width:100%;height:auto;padding:6px}
.rle-eligibility-card{margin:18px 0;padding:16px 18px;border-left:4px solid #e59b00;background:#fff7e6;color:#5d4300}
.rle-eligibility-card strong{display:block;margin-bottom:7px}
.rle-eligibility-card ul{margin:0 0 0 20px}
@media(max-width:782px){.rle-config-card{padding:18px}.rle-multi-select{min-width:0;width:100%}.rle-scope-option{max-width:none}}

/* v0.5.13 — Product Reward Quantity Lock */
.rle-reward-quantity-locked-row .quantity,
.rle-reward-quantity-locked-row .qty,
.rle-reward-quantity-locked-row .vi-wcaio-product-quantity,
.rle-reward-quantity-locked-row .vicaio-product-quantity,
.rle-reward-quantity-locked-row .vi-wcaio-quantity,
.rle-reward-quantity-locked-row .quantity-button,
.rle-reward-quantity-locked-row .plus,
.rle-reward-quantity-locked-row .minus{pointer-events:none}
.rle-reward-quantity-locked{display:inline-flex;align-items:center;justify-content:center;min-width:2.2em;font-weight:800}
.rle-reward-lock-marker{display:none!important}
.rle-reward-locked .rle-reward-quantity-lock-display{display:inline-flex!important;align-items:center;justify-content:center;min-width:2.2em;font-weight:800}

/* v0.5.14 — Reward quantity lock for VillaTheme Cart All In One */
.rle-reward-locked .quantity-button,
.rle-reward-locked .plus,
.rle-reward-locked .minus,
.rle-reward-locked .vi-wcaio-product-quantity,
.rle-reward-locked .vicaio-product-quantity,
.rle-reward-locked .vi-wcaio-quantity,
.rle-reward-locked input.qty{display:none!important;pointer-events:none!important}
.rle-reward-locked .rle-reward-quantity-lock-display{display:inline-flex!important;align-items:center;justify-content:center;min-width:2.2em;font-weight:800}

/* v0.5.17 — Loyalty Progress & Transparency Layer */
.rle-dashboard--v0517{max-width:980px}.rle-dashboard--v0517 .rle-dashboard-hero{margin-bottom:18px}
.rle-progress-card{padding:20px;margin:18px 0}.rle-progress-card__head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.rle-progress-card__head h3{margin:4px 0 0;font-size:20px}.rle-progress-card__icon{font-size:24px}.rle-progress-card__goal{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:18px 0 10px}.rle-progress-card__goal strong{font-size:24px}.rle-progress-card__goal span{font-weight:800}.rle-progress-track{height:10px;border-radius:99px;background:#e8e8e8;overflow:hidden;margin:10px 0 12px}.rle-progress-track span{display:block;height:100%;background:#E59B00;border-radius:inherit;transition:width .25s ease}.rle-progress-card__complete,.rle-goal-ready{font-weight:800}.rle-dashboard-section__heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:14px}.rle-dashboard-section__heading h3{margin:4px 0 0}.rle-v0517-secondary{font-size:12px;opacity:.7}.rle-v0517-tier-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.rle-v0517-tier{padding:16px;border:1px solid #ddd;border-radius:4px;background:#fff;position:relative}.rle-v0517-tier.is-unlocked{border-left:4px solid #2e7d32}.rle-v0517-tier.is-locked{border-left:4px solid #aaa;opacity:.78}.rle-v0517-tier__badge{display:block;font-size:10px;font-weight:900;letter-spacing:.06em;margin-bottom:8px}.rle-v0517-tier.is-unlocked .rle-v0517-tier__badge{color:#2e7d32}.rle-v0517-tier strong{display:block;font-size:22px}.rle-v0517-tier small{display:block;margin-top:4px;font-weight:800}.rle-v0517-tier em{display:block;margin-top:8px;font-size:11px;font-style:normal;opacity:.7}.rle-v0517-goal,.rle-v0517-frequency{padding:16px;border:1px solid #ddd;background:#fff;margin-bottom:10px}.rle-v0517-goal__top{display:flex;justify-content:space-between;gap:12px;align-items:center}.rle-v0517-goal__top strong{font-size:15px}.rle-v0517-goal__top span{font-weight:800}.rle-v0517-goal p,.rle-v0517-frequency p{margin:8px 0 0;font-size:13px}.rle-v0517-frequency{border-left:4px solid #E59B00}.rle-how-it-works{margin:18px 0;padding:0;overflow:hidden}.rle-how-it-works summary{cursor:pointer;list-style:none;padding:18px 20px;display:flex;justify-content:space-between;align-items:center;gap:18px}.rle-how-it-works summary::-webkit-details-marker{display:none}.rle-how-it-works summary span{font-weight:900}.rle-how-it-works summary small{opacity:.7}.rle-how-it-works__body{padding:0 20px 20px}.rle-rule-explanation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rle-rule-explanation-grid article{border:1px solid #e0e0e0;padding:16px;background:#fff}.rle-rule-explanation__icon{font-size:20px}.rle-rule-explanation-grid h4{margin:7px 0;font-size:13px;letter-spacing:.03em}.rle-rule-explanation-grid p{font-size:13px;margin:7px 0;line-height:1.5}.rle-rule-explanation-grid ul{margin:8px 0 0 18px;font-size:13px}.rle-rule-explanation__note{opacity:.7}.rle-rule-transparency-note{margin-top:12px;padding:12px 14px;background:#f7f7f7;font-size:12px;display:flex;gap:8px}.rle-v0517-orders{display:grid;gap:8px}.rle-v0517-order{border:1px solid #ddd;background:#fff}.rle-v0517-order summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px 16px}.rle-v0517-order summary::-webkit-details-marker{display:none}.rle-v0517-order summary span{display:flex;flex-direction:column;gap:3px}.rle-v0517-order summary small{opacity:.65}.rle-v0517-order summary b{font-size:12px}.rle-v0517-order>div{border-top:1px solid #eee;padding:14px 16px}.rle-v0517-order ul{list-style:none;margin:10px 0 0;padding:0}.rle-v0517-order li{display:flex;justify-content:space-between;gap:16px;padding:8px 0;border-bottom:1px solid #eee;font-size:12px}.rle-v0517-order li:last-child{border-bottom:0}.rle-v0517-order .is-positive{color:#2e7d32}.rle-v0517-order .is-negative{color:#b3261e}.rle-v0517-link{font-weight:800;text-decoration:underline}.rle-v0517-full-history{margin-top:14px}.rle-v0517-full-history summary{cursor:pointer;font-weight:800}.rle-v0517-transparency>p{font-size:13px;line-height:1.5}
@media(max-width:760px){.rle-v0517-tier-grid,.rle-rule-explanation-grid{grid-template-columns:1fr}.rle-dashboard-section__heading,.rle-how-it-works summary,.rle-v0517-order summary{align-items:flex-start;flex-direction:column}.rle-progress-card__goal{align-items:flex-start;flex-direction:column}}


/* ============================================================
 * v0.5.21 — REDEMPTION SUCCESS TOAST
 * Estrella Azteca visual language derived from the approved Rewards UI:
 * Cream + Teal + Azteca Orange + Marigold Gold + Chile Red + Avocado Green.
 * ============================================================ */
.rle-redemption-success-toast{
    position:fixed;
    top:24px;
    right:24px;
    z-index:999999;
    width:min(450px,calc(100vw - 32px));
    display:flex;
    align-items:flex-start;
    gap:14px;
    padding:16px 18px;
    border:2px solid #F0A21A;
    border-radius:12px;
    background:#FCF3E8;
    color:#1A1B19;
    box-shadow:0 16px 42px rgba(4,64,67,.24),0 0 0 1px rgba(236,186,108,.35);
    opacity:0;
    transform:translateY(-12px) scale(.98);
    transition:opacity .25s ease,transform .25s ease;
    pointer-events:none;
    font-family:inherit;
    overflow:hidden;
}
.rle-redemption-success-toast:before{
    content:"";
    position:absolute;
    left:0;top:0;bottom:0;
    width:6px;
    background:#0A737A;
}
.rle-redemption-success-toast.is-visible{
    opacity:1;
    transform:translateY(0) scale(1);
}
.rle-redemption-success-toast__icon{
    flex:0 0 44px;
    width:44px;
    height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#ECAE1A;
    color:#B02210;
    font-size:23px;
    font-weight:900;
    box-shadow:0 0 0 4px rgba(236,186,108,.28);
}
.rle-redemption-success-toast__content{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:4px;
    line-height:1.35;
}
.rle-redemption-success-toast__content strong{
    color:#B02210;
    font-size:15px;
    line-height:1.2;
    letter-spacing:.055em;
}
.rle-redemption-success-toast__content span{
    color:#044043;
    font-size:13px;
    font-weight:700;
}
.rle-redemption-success-toast__content span b{
    color:#0A737A;
    font-weight:900;
}
.rle-redemption-success-toast__content small{
    color:#506753;
    font-size:11px;
    line-height:1.35;
}
@media(max-width:700px){
    .rle-redemption-success-toast{
        top:12px;
        right:12px;
        width:calc(100vw - 24px);
        padding:14px 14px 14px 16px;
        border-radius:11px;
    }
    .rle-redemption-success-toast__icon{
        flex-basis:38px;
        width:38px;
        height:38px;
        font-size:19px;
    }
    .rle-redemption-success-toast__content strong{font-size:13px}
    .rle-redemption-success-toast__content span{font-size:12px}
}

/* v0.5.27 — Points → Product Rewards */
.rle-point-product-rewards{margin-top:22px;padding:20px;border:1px solid rgba(236,186,108,.35);border-radius:14px;background:linear-gradient(135deg,rgba(4,64,67,.96),rgba(10,115,122,.92));color:#FCF3E8}
.rle-point-product-rewards__heading{display:flex;justify-content:space-between;gap:16px;align-items:end;margin-bottom:14px}
.rle-point-product-rewards__heading strong{font-size:15px;letter-spacing:.08em;color:#F0A21A}
.rle-point-product-rewards__heading small{opacity:.86}
.rle-point-product-rewards__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.rle-point-product-reward{position:relative;padding:16px;border-radius:12px;background:#FCF3E8;color:#044043;display:flex;flex-direction:column;gap:7px;min-height:145px}
.rle-point-product-reward.is-locked{opacity:.78}
.rle-point-product-reward__badge{font-size:10px;font-weight:800;letter-spacing:.08em;color:#B02210}
.rle-point-product-reward strong{font-size:17px;line-height:1.2}
.rle-point-product-reward small{font-size:12px}
.rle-redeem-point-product{margin-top:auto;border:0;border-radius:8px;padding:10px 12px;background:#B02210;color:#fff;font-weight:800;cursor:pointer}
.rle-redeem-point-product:hover{background:#044043}
.rle-redeem-point-product:disabled{opacity:.65;cursor:wait}
.rle-point-product-reward__success{color:#2E7D32;font-weight:700}
.rle-point-product-reward-message{margin-top:14px;padding:10px 12px;border-left:4px solid #F0A21A;background:rgba(252,243,232,.12);color:#FCF3E8;font-weight:700}
.rle-product-reward-message{margin-top:10px;padding:8px 10px;border-left:3px solid #F0A21A;color:#2E7D32;font-weight:700}
@media(max-width:700px){.rle-point-product-rewards__heading{display:block}.rle-point-product-rewards__heading small{display:block;margin-top:4px}.rle-point-product-rewards__grid{grid-template-columns:1fr}}

/* v0.5.28 — Reward Choice Layer: let customers choose how to use points. */
.rle-reward-choice{margin-top:20px;padding:20px;border:1px solid #e7d8c4;border-radius:16px;background:#fffdf9;box-shadow:0 8px 24px rgba(4,64,67,.06)}
.rle-reward-choice__intro{margin-bottom:16px}.rle-reward-choice__intro h4{margin:5px 0 6px;font-size:20px;color:#044043}.rle-reward-choice__intro p{margin:0;color:#526463;font-size:13px;line-height:1.5}.rle-reward-choice__tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}.rle-reward-choice__tab{appearance:none;border:1px solid #d9cbb9;border-radius:12px;background:#fff;color:#044043;padding:13px 14px;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:4px;transition:.18s ease}.rle-reward-choice__tab span{font-size:12px;font-weight:900;letter-spacing:.04em}.rle-reward-choice__tab small{font-size:11px;color:#657574}.rle-reward-choice__tab.is-active{border-color:#F0A21A;box-shadow:inset 0 0 0 2px rgba(240,162,26,.2);background:#FCF3E8}.rle-reward-choice__tab:hover{border-color:#0A737A}.rle-reward-choice__panel[hidden]{display:none}.rle-reward-choice__panel>.rle-redemption-box{margin-top:0}.rle-point-product-rewards{margin-top:0}.rle-point-product-rewards__heading{align-items:center}.rle-point-product-rewards__heading>div{display:flex;flex-direction:column;gap:3px}.rle-point-product-rewards__balance{white-space:nowrap;padding:7px 10px;border-radius:999px;background:#F0A21A;color:#044043;font-weight:900;font-size:11px}.rle-point-product-reward.is-available{box-shadow:0 0 0 1px rgba(46,125,50,.18)}.rle-point-product-reward.is-locked .rle-redeem-point-product{display:none}
@media(max-width:700px){.rle-reward-choice{padding:15px}.rle-reward-choice__tabs{grid-template-columns:1fr}.rle-point-product-rewards__heading{display:flex}.rle-point-product-rewards__balance{margin-top:8px;display:inline-block}}

/* v0.5.29 — Product Reward Selection UX */
.rle-point-product-reward__image{height:105px;display:flex;align-items:center;justify-content:center;margin:-2px -2px 4px;border-radius:10px;overflow:hidden;background:#fff;border:1px solid rgba(4,64,67,.08)}
.rle-point-product-reward__image img{width:100%;height:100%;object-fit:cover;display:block}
.rle-point-product-reward__value{color:#526463;font-weight:700}
.rle-point-product-reward__empty{padding:22px;border:1px dashed rgba(240,162,26,.65);border-radius:12px;background:#FCF3E8;color:#044043;text-align:center}
.rle-point-product-reward__empty strong{display:block;color:#B02210;letter-spacing:.04em}
.rle-point-product-reward__empty p{margin:7px 0 0;font-size:13px;line-height:1.5}
.rle-point-product-reward button.rle-redeem-point-product{margin-top:auto;width:100%;border:0;border-radius:8px;background:#F0A21A;color:#044043;font-weight:900;padding:10px 9px;cursor:pointer;letter-spacing:.02em}
.rle-point-product-reward button.rle-redeem-point-product:hover{background:#B02210;color:#FCF3E8}
@media(max-width:700px){.rle-point-product-reward__image{height:130px}}


/* v0.5.36 — SAFE MOBILE REWARDS CTA FIX
 * Keeps the existing v0.5.34 frontend architecture.
 * Only restores visibility of the customer-facing CTA text.
 */
@media (max-width:700px){
    #rle-persistent-rewards-bar .rle-persistent-rewards__button{
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        flex:0 0 auto !important;
        min-width:92px !important;
        min-height:38px !important;
        padding:8px 10px !important;
        overflow:visible !important;
        visibility:visible !important;
        opacity:1 !important;
    }
    #rle-persistent-rewards-bar .rle-persistent-rewards__button .rle-rewards-button-text{
        display:inline !important;
        visibility:visible !important;
        opacity:1 !important;
        font-size:10px !important;
        line-height:1.1 !important;
        white-space:nowrap !important;
    }
    #rle-persistent-rewards-bar .rle-persistent-rewards__button > span[aria-hidden="true"]{
        display:none !important;
    }
}
