/* ── Loyalty and Email Sender Pro — Frontend CSS ── */

/* Product strip widget */
.lesp-loyalty-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 9px 12px;
    margin: 10px 0;
    font-size: 13px;
}
.lesp-loyalty-strip__icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #2A795C;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lesp-loyalty-strip__icon svg { width: 13px; height: 13px; }
.lesp-loyalty-strip__text { flex: 1; line-height: 1.3; min-width: 0; }
.lesp-loyalty-strip__main { font-size: 13px; font-weight: 600; color: #14532d; }
.lesp-loyalty-strip__sub  { font-size: 11px; color: #6b7280; margin-top: 1px; }
.lesp-loyalty-strip__pts  { font-size: 14px; font-weight: 700; white-space: nowrap; }

/* Guest version */
.lesp-loyalty-strip--guest { background: #f5f3ff; border-color: #ddd6fe; }
.lesp-loyalty-strip--guest .lesp-loyalty-strip__icon { background: #7c3aed; }
.lesp-loyalty-strip--guest .lesp-loyalty-strip__main { color: #5b21b6; }

/* Mobile — very compact */
@media (max-width: 480px) {
    .lesp-loyalty-strip { padding: 8px 10px; gap: 8px; }
    .lesp-loyalty-strip__icon { width: 24px; height: 24px; }
    .lesp-loyalty-strip__main { font-size: 12px; }
    .lesp-loyalty-strip__pts  { font-size: 13px; }
}

/* Customer dashboard */
.lesp-dash { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; max-width: 700px; color: #1d2327; line-height: 1.5; }
.lesp-dash * { box-sizing: border-box; }
.lesp-profile { display: flex; align-items: center; gap: 12px; padding: 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; margin-bottom: 14px; }
.lesp-avatar { width: 46px; height: 46px; border-radius: 50%; background: #2A795C; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; color: #fff; flex-shrink: 0; }
.lesp-profile-name { font-size: 16px; font-weight: 700; color: #1d2327; }
.lesp-profile-since { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.lesp-tier-badge { margin-left: auto; padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; color: #fff; background: #2A795C; white-space: nowrap; }
.lesp-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 600px) { .lesp-stats { grid-template-columns: repeat(4, 1fr); } }
.lesp-stat { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; }
.lesp-stat-label { font-size: 10px; font-weight: 600; color: #9ca3af; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.lesp-stat-val { font-size: 22px; font-weight: 800; color: #1d2327; letter-spacing: -.02em; line-height: 1; margin-bottom: 3px; }
.lesp-stat-sub { font-size: 11px; color: #9ca3af; }
.lesp-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.lesp-card-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid #e5e7eb; }
.lesp-card-title { font-size: 14px; font-weight: 700; color: #1d2327; }
.lesp-card-meta { font-size: 12px; color: #9ca3af; }

/* Checkout redeem widget */
.lesp-redeem-wrap { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; margin: 14px 0; }
.lesp-redeem-wrap h4 { font-size: 13px; font-weight: 600; color: #1d2327; margin: 0 0 10px; }

/* Points badge on images */
.lesp-pts-badge { position: absolute; top: 10px; left: 10px; z-index: 10; background: #2A795C; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; pointer-events: none; }

/* Toast */
.lesp-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(12px); background: #1d2327; color: #fff; border-radius: 10px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; max-width: 340px; width: calc(100% - 32px); z-index: 99999; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; }
.lesp-toast.lesp-toast--show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.lesp-toast__close { font-size: 18px; opacity: .5; cursor: pointer; padding: 0 4px; background: none; border: none; color: #fff; flex-shrink: 0; }

/* WoodMart overrides */
body.woodmart-ajax-single-on .lesp-toast { bottom: 70px; }
