/* LP Rewards Public Styles */

/* ══════════════════════════════════════
   PRODUCT BADGES
   ══════════════════════════════════════ */

/* Single product page badge */
.lp-rewards-product-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 8px 14px;
    margin: 10px 0;
    font-size: 14px;
    color: #92400e;
}
.lp-rewards-product-badge strong {
    font-size: 15px;
    color: #78350f;
}

/* Loop badge (inline, same style as sale badge) */
.lpr-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f5c842, #e8a917);
    color: #fff;
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 9px;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 0.02em;
    margin: 6px 0 2px 14px;
    text-shadow: 0 1px 1px rgba(0,0,0,.15);
    box-shadow: 0 1px 3px rgba(180,130,20,.25);
}

/* ══════════════════════════════════════
   MY ACCOUNT — POINTS DASHBOARD
   ══════════════════════════════════════ */

.lpr-dash {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    -webkit-font-smoothing: auto;
}

/* ── Hero / Balance Card ── */
.lpr-hero {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: linear-gradient(135deg, #E07318 0%, #F5821F 100%);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(245,130,31,.2);
}
.lpr-hero__left {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 32px;
    flex-shrink: 0;
}
.lpr-hero__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5c842;
    flex-shrink: 0;
}
.lpr-hero__balance {
    display: flex;
    flex-direction: column;
}
.lpr-hero__number {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
}
.lpr-hero__label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,.6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

.lpr-hero__right {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
    padding: 20px 32px;
    background: rgba(0,0,0,.1);
    border-left: 1px solid rgba(255,255,255,.08);
}
.lpr-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 80px;
}
.lpr-hero__stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.lpr-hero__stat-label {
    font-size: 10px;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
    line-height: 1.3;
}

/* ── CTA Button ── */
.lpr-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f5c842, #e8a917);
    color: #5c4a08 !important;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    margin-bottom: 28px;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 2px 8px rgba(180,130,20,.25);
}
.lpr-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(180,130,20,.35);
    color: #3d3106 !important;
}

/* ── Section ── */
.lpr-section__title {
    font-size: 17px;
    font-weight: 700;
    color: #2A2A2A;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8e8e8;
}

/* ── Empty State ── */
.lpr-empty {
    text-align: center;
    padding: 48px 20px;
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 12px;
}
.lpr-empty svg {
    margin-bottom: 12px;
}
.lpr-empty p {
    font-size: 15px;
    font-weight: 600;
    color: #555;
    margin: 0 0 4px;
}
.lpr-empty span {
    font-size: 13px;
    color: #999;
}

/* ── History Table ── */
.lpr-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.lpr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.lpr-table thead th {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    padding: 10px 12px;
    border-bottom: 2px solid #e8e8e8;
    text-align: left;
    white-space: nowrap;
}
.lpr-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    color: #444;
}
.lpr-table tbody tr:last-child td {
    border-bottom: none;
}

/* Type badges */
.lpr-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.lpr-type--earn   { background: #e8f5e9; color: #2e7d32; }
.lpr-type--bonus  { background: #fff3e0; color: #e65100; }
.lpr-type--redeem { background: #e3f2fd; color: #1565c0; }
.lpr-type--expire { background: #fbe9e7; color: #bf360c; }
.lpr-type--adjust { background: #f3e5f5; color: #6a1b9a; }

/* Points column */
.lpr-pts { font-weight: 700; white-space: nowrap; }
.lpr-pts--plus  { color: #2e7d32; }
.lpr-pts--minus { color: #c62828; }

/* Order link */
.lpr-order-link {
    display: block;
    font-size: 12px;
    color: #F5821F !important;
    margin-top: 2px;
}

/* ── Pagination ── */
.lpr-pagination {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
}
.lpr-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    border-radius: 6px;
    color: #555;
    text-decoration: none;
    transition: background .15s;
}
.lpr-pagination .page-numbers:hover {
    background: #f0f0f0;
}
.lpr-pagination .page-numbers.current {
    background: #F5821F;
    color: #fff;
    font-weight: 600;
}

/* ══════════════════════════════════════
   MY ACCOUNT — BALANCE CARD (legacy)
   ══════════════════════════════════════ */

.lp-rewards-balance-card {
    display: flex;
    gap: 30px;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e2e6ea;
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 25px;
}
.lp-rewards-balance-main {
    text-align: center;
    min-width: 180px;
}
.lp-rewards-balance-number {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: #2e7d32;
    line-height: 1.1;
}
.lp-rewards-balance-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.lp-rewards-balance-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}
.lp-rewards-cta { margin: 20px 0; }
.lp-rewards-cta .button {
    background: #2e7d32 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
}
.lp-rewards-cta .button:hover {
    background: #1b5e20 !important;
}

/* Cart redemption box */
.lp-rewards-redeem { font-size: 14px; }
.lp-rewards-redeem h3 { font-size: 16px; }

/* ══════════════════════════════════════
   CART POINTS PREVIEW
   ══════════════════════════════════════ */

.lpr-cart-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    margin-top: 12px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-left: 4px solid #f5c842;
    border-radius: 10px;
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    font-size: 14px;
    color: #92400e;
    line-height: 1.5;
    -webkit-font-smoothing: auto;
}
.lpr-cart-preview svg {
    flex-shrink: 0;
}
.lpr-cart-preview strong {
    color: #78350f;
}
.lpr-cart-preview__value {
    font-size: 12px;
    color: #a16207;
    font-weight: 500;
}

/* ── Per-item points under product name ── */
.lpr-cart-item-pts {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #92400e;
    line-height: 1.4;
    -webkit-font-smoothing: auto;
}
.lpr-cart-item-pts svg {
    flex-shrink: 0;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 768px) {
    .lpr-hero {
        flex-direction: column;
    }
    .lpr-hero__left {
        padding: 24px 20px 16px;
    }
    .lpr-hero__right {
        margin-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,.08);
        padding: 16px 20px;
        justify-content: space-around;
    }
    .lpr-hero__number {
        font-size: 32px;
    }
    .lpr-table {
        font-size: 12px;
    }
    .lpr-table thead { display: none; }
    .lpr-table tbody tr {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }
    .lpr-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 4px 0;
        border: none;
    }
    .lpr-table tbody td::before {
        content: attr(data-title);
        font-weight: 600;
        font-size: 11px;
        color: #888;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-right: 12px;
    }
    .lpr-cart-preview {
        padding: 12px 16px;
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .lp-rewards-balance-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    .lp-rewards-balance-number { font-size: 36px; }
    .lpr-hero__right { gap: 16px; }
    .lpr-hero__stat { min-width: 60px; }
}

@media (max-width: 480px) {
    .lpr-hero__left {
        padding: 20px 16px 12px;
        gap: 12px;
    }
    .lpr-hero__number {
        font-size: 28px;
    }
    .lpr-hero__right {
        padding: 12px 16px;
        gap: 12px;
    }
    .lpr-hero__stat {
        min-width: auto;
    }
    .lpr-cta {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 10px 18px;
        font-size: 13px;
    }
    .lpr-cart-preview {
        padding: 10px 12px;
        gap: 8px;
        font-size: 12px;
        border-radius: 8px;
    }
    .lpr-cart-item-pts {
        font-size: 11px;
    }
    .lpr-badge {
        font-size: 10px;
        padding: 4px 7px;
    }
    .lp-rewards-product-badge {
        font-size: 13px;
        padding: 6px 10px;
    }
    .lp-rewards-product-badge strong {
        font-size: 13px;
    }
}
