/* Loyalty & Referrals Pro — frontend styles */

/* Redemption card (cart / checkout) */
.lrp-card {
	display: flex; gap: 16px; align-items: flex-start;
	background: linear-gradient(120deg, #faf5ff, #fff7ed);
	border: 1px solid #e9d5ff; border-radius: 16px;
	padding: 20px 22px; margin: 0 0 24px;
	box-shadow: 0 8px 20px rgba(126, 34, 206, 0.08);
}
.lrp-card--teaser { background: linear-gradient(120deg, #f9fafb, #fff7ed); }
.lrp-card__icon {
	flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px;
	display: flex; align-items: center; justify-content: center;
	background: #7e22ce; color: #fff; font-size: 22px;
}
.lrp-card h3 { margin: 0 0 4px; font-size: 16px; }
.lrp-card__value { margin: 0 0 10px; color: #78350f; font-weight: 600; font-size: 13px; }
.lrp-card p { margin: 0 0 8px; color: #374151; font-size: 13px; }
.lrp-card a { color: #7e22ce; font-weight: 600; }

.lrp-redeem-row { display: flex; gap: 10px; flex-wrap: wrap; }
.lrp-redeem-row input[type="number"] {
	width: 150px; border: 2px solid #e9d5ff; border-radius: 10px; padding: 9px 12px; font-size: 15px;
}
.lrp-redeem-row input[type="number"]:focus { outline: none; border-color: #7e22ce; box-shadow: 0 0 0 3px rgba(126, 34, 206, 0.15); }
.lrp-btn {
	background: #7e22ce; color: #fff; border: none; border-radius: 10px;
	padding: 10px 20px; font-weight: 700; cursor: pointer; font-size: 14px;
}
.lrp-btn:hover { background: #6b21a8; }
.lrp-btn:disabled { opacity: 0.6; cursor: wait; }

.lrp-applied { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px; padding: 8px 12px; font-size: 13px; color: #065f46; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lrp-applied a { color: #b91c1c; font-weight: 700; }
.lrp-muted { color: #6b7280; font-size: 13px; margin: 0; }
.lrp-mini { font-size: 12px; color: #78350f; margin: 8px 0 0; }

/* Thank-you page banner */
.lrp-thanks-banner {
	display: flex; align-items: center; gap: 14px;
	background: linear-gradient(120deg, #fff7ed, #faf5ff);
	border: 1px solid #fde68a; border-radius: 14px; padding: 16px 20px; margin: 0 0 24px;
}
.lrp-thanks-banner--preview { border-color: #e9d5ff; }
.lrp-thanks-banner__icon { font-size: 26px; }
.lrp-thanks-banner p { margin: 0; font-weight: 600; color: #78350f; }
.lrp-thanks-banner--preview p { color: #6b21a8; }

/* My Account — Rewards tab */
.lrp-account__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
@media (max-width: 782px) { .lrp-account__grid { grid-template-columns: 1fr; } }

.lrp-account__card {
	border-radius: 16px; padding: 20px; border: 1px solid #e5e7eb; background: #fff;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.lrp-account__card--balance { background: linear-gradient(135deg, #7e22ce, #a855f7); color: #fff; border: none; }
.lrp-account__card--balance .lrp-account__label, .lrp-account__card--balance .lrp-account__sub { color: rgba(255, 255, 255, 0.85); }
.lrp-account__card--tier { border-top: 4px solid var(--lrp-tier, #ca8a04); }
.lrp-account__card--referral { display: flex; flex-direction: column; gap: 6px; }

.lrp-account__label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: #6b7280; margin-bottom: 6px; }
.lrp-account__big { display: block; font-size: 32px; font-weight: 800; line-height: 1.1; }
.lrp-account__sub { display: block; font-size: 13px; color: #6b7280; margin-top: 4px; }

.lrp-tierbadge { display: inline-block; font-size: 18px; font-weight: 800; color: var(--lrp-tier, #ca8a04); }
.lrp-progress { height: 8px; border-radius: 999px; background: #eef0f3; overflow: hidden; margin: 10px 0 4px; }
.lrp-progress__fill { height: 100%; border-radius: 999px; background: var(--lrp-tier, #ca8a04); }

.lrp-copy-row { display: flex; gap: 8px; margin: 6px 0; }
.lrp-copy-row input { flex: 1; border-radius: 8px; border: 1px solid #e5e7eb; padding: 8px 10px; font-size: 12px; background: #f9fafb; }
.lrp-copy-row .lrp-btn { padding: 8px 16px; font-size: 13px; }

.lrp-account__history-title { margin: 6px 0 10px; font-size: 17px; }
.lrp-history { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.lrp-history th { text-align: left; background: #faf5ff; padding: 10px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; color: #6b21a8; }
.lrp-history td { padding: 10px 14px; border-top: 1px solid #f1f1f4; font-size: 13px; }
.lrp-history td.is-pos { color: #15803d; font-weight: 700; }
.lrp-history td.is-neg { color: #b91c1c; font-weight: 700; }

.lrp-shortcode-link { font-family: monospace; background: #f3e8ff; padding: 2px 8px; border-radius: 6px; }
