/* ============================================================
 * Heaxabell Custom — Points & Rewards (front-end)
 * Checkout coupon selector + My Account rewards page.
 * Uses theme tokens (fallback to the pink/ink values) so it stays
 * visually consistent with the Heaxabell v2 design system.
 * ============================================================ */

/* ---- shared text reset (never strike-through a reward value) ---- */
.hx-rewards, .hx-rw-checkout { color: var(--ink, #161823); }
.hx-rewards del, .hx-rewards ins, .hx-rewards s, .hx-rewards strike,
.hx-rw-checkout del, .hx-rw-checkout ins, .hx-rw-checkout s, .hx-rw-checkout strike,
.hx-rw-item__value, .hx-rw-coupon__value,
.hx-rw-item__value .woocommerce-Price-amount, .hx-rw-coupon__value .woocommerce-Price-amount {
	text-decoration: none !important;
}

/* ============================================================
 * CHECKOUT — "My reward coupons" selector
 * ============================================================ */
.hx-rw-checkout {
	margin: 0 0 16px;
	padding: 16px;
	background: var(--card, #fff);
	border: 1px solid var(--line, #e6e6ea);
	border-radius: 14px;
	box-shadow: var(--shadow, 0 1px 3px rgba(22,24,35,.06));
}
@media(min-width:820px){
	.checkoutPage form.checkout .hx-rw-checkout{grid-column:1}
}
.hx-rw-checkout__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}
.hx-rw-checkout__title { font-weight: 800; font-size: 16px; color: var(--ink, #161823); display: flex; align-items: center; }
.hx-ic{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;vertical-align:-2px;margin-right:7px}
.hx-ic svg{width:18px;height:18px;display:block}
.hx-rw-checkout__balance {
	font-size: 12.5px;
	font-weight: 800;
	color: var(--accent, #fe2c55);
	background: var(--accent-soft, #fff0f3);
	padding: 5px 11px;
	border-radius: 999px;
	white-space: nowrap;
}
.hx-rw-note {
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--accent-soft, #fff0f3);
	color: #c81e43;
	font-size: 13px;
	margin-bottom: 14px;
}
.hx-rw-note--ok { background: #e6f7ef; color: #0a8a4e; }
.hx-rw-note--ok strong { font-weight: 800; font-family: monospace; letter-spacing: .3px; }
.hx-rw-coupons { display: flex; flex-direction: column; gap: 10px; }
.hx-rw-coupon {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid #b7e4c7;
	border-radius: 12px;
	background: #eaf7ee;
}
.hx-rw-coupon.is-applied { border-color: var(--accent, #fe2c55); background: var(--accent-soft, #fff0f3); }
.hx-rw-coupon__main { min-width: 0; }
.hx-rw-coupon__value { font-weight: 800; font-size: 15px; color: #0a8a4e; }
.hx-rw-coupon__meta { font-size: 12.5px; color: var(--ink-2, #6b6b74); margin-top: 3px; }
.hx-rw-coupons__more { display: flex; flex-direction: column; gap: 10px; }
.hx-rw-coupons__more[hidden] { display: none; }
.hx-rw-coupons__toggle {
	width: 100%;
	min-height: 40px;
	margin-top: 2px;
	border: 1px dashed #b7e4c7;
	border-radius: 10px;
	background: #f2faf5;
	color: #0a8a4e;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
.hx-rw-coupons__toggle:hover { border-color: #0a8a4e; }
.hx-rw-coupons__toggle.is-open { background: #eaf7ee; }
.hx-rw-apply {
	flex-shrink: 0;
	height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 10px;
	background: var(--accent, #fe2c55);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
}
.hx-rw-apply:disabled { opacity: .6; cursor: default; }
.hx-rw-apply[data-hx-do="remove"] { background: var(--ink, #161823); }
.hx-rw-apply.is-loading { display: inline-flex; align-items: center; gap: 8px; opacity: 1; }
.hx-rw-apply.is-loading::before {
	content: '';
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: hxrwspin .6s linear infinite;
}
@keyframes hxrwspin { to { transform: rotate(360deg); } }
.hx-rw-checkout__link {
	display: inline-block;
	margin-top: 12px;
	font-size: 13px;
	font-weight: 700;
	color: var(--accent, #fe2c55);
	text-decoration: none;
}

/* ============================================================
 * MY ACCOUNT — "My Rewards" page
 * ============================================================ */
.hx-rewards { max-width: 720px; }

/* Points balance card — compact horizontal */
.hx-rw-balance {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	background: linear-gradient(135deg, #fe2c55, #ff5f7a);
	border-radius: 14px;
	color: #fff;
	margin-bottom: 28px;
	box-shadow: 0 8px 20px rgba(254, 44, 85, 0.22);
}
.hx-rw-balance__icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.18);
	display: grid;
	place-items: center;
}
.hx-rw-balance__icon svg { width: 24px; height: 24px; }
.hx-rw-balance__info { display: flex; flex-direction: column; }
.hx-rw-balance__num { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -0.5px; font-family: var(--font-price, 'Space Grotesk', sans-serif); }
.hx-rw-balance__lbl { font-size: 12.5px; opacity: .92; margin-top: 3px; font-weight: 600; }

/* Section titles */
.hx-rw-title {
	position: relative;
	font-size: 15px;
	font-weight: 800;
	color: var(--ink, #161823);
	margin: 0;
	padding: 48px 0 16px;
}
.hx-rw-title::before {
	content: '';
	position: absolute;
	top: 24px;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--line, #e6e6ea);
}
.hx-rw-title:first-of-type { padding-top: 0; }
.hx-rw-title:first-of-type::before { display: none; }

/* Reward + coupon list */
.hx-rw-list { display: flex; flex-direction: column; gap: 12px; }
.hx-rw-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 16px;
	background: var(--bg, #f7f7f8);
	border: 1px solid var(--line, #e6e6ea);
	border-radius: 12px;
}
.hx-rw-item__main { min-width: 0; flex: 1; }
.hx-rw-item__label { font-weight: 800; font-size: 14.5px; color: var(--ink, #161823); }
.hx-rw-item__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hx-rw-item__meta span,
.hx-rw-item__chip {
	font-size: 12px;
	font-weight: 600;
	color: var(--ink-2, #6b6b74);
	background: #fff;
	border: 1px solid var(--line, #e6e6ea);
	padding: 3px 9px;
	border-radius: 999px;
	white-space: nowrap;
}
.hx-rw-item__side { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hx-rw-item__value { font-weight: 800; font-size: 15px; color: var(--accent, #fe2c55); font-family: var(--font-price, 'Space Grotesk', sans-serif); }
.hx-rw-item > form { flex-shrink: 0; margin: 0; }
.hx-rw-claim {
	height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 10px;
	background: var(--accent, #fe2c55);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	white-space: nowrap;
}
.hx-rw-claim:disabled { background: #c7c7cd; cursor: default; }

/* Claim reward rows — pink (action) */
.hx-rw-item--claim {
	background: var(--accent-soft, #fff0f3);
	border-color: #ffc2cd;
}
.hx-rw-item--claim .hx-rw-item__label { color: #c81e43; }

/* Claimed (available) coupon rows — green (ready to use) */
.hx-rw-item--claimed {
	background: #eaf7ee;
	border-color: #b7e4c7;
}
.hx-rw-item--claimed .hx-rw-item__label { color: #0a8a4e; }

/* History entries */
.hx-rw-item--history .hx-rw-item__meta span {
	background: transparent;
	border: 0;
	padding-left: 0;
	color: var(--ink-3, #a1a1aa);
}

/* Empty states — boxed */
.hx-rw-empty {
	margin: 0;
	padding: 18px 16px;
	background: var(--bg, #f7f7f8);
	border: 1px dashed var(--line, #e6e6ea);
	border-radius: 12px;
	color: var(--ink-2, #6b6b74);
	font-size: 13.5px;
	text-align: center;
}
.hx-rw-empty a { color: var(--accent, #fe2c55); font-weight: 700; }

/* Used coupon order link (chip-style) */
.hx-rw-item__link {
	font-size: 12px;
	font-weight: 700;
	color: var(--accent, #fe2c55);
	background: #fff;
	border: 1px solid var(--line, #e6e6ea);
	padding: 3px 9px;
	border-radius: 999px;
	white-space: nowrap;
	text-decoration: none;
}
.hx-rw-item__link:hover { border-color: var(--accent, #fe2c55); }
.hx-rw-item--used { background: #fbfbfb; }
.hx-rw-item--used .hx-rw-item__label { color: var(--ink-2, #6b6b74); }

/* Pagination */
.hx-pager {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 16px;
}
.hx-pager__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	padding: 0 14px;
	border: 1px solid var(--line, #e6e6ea);
	border-radius: 10px;
	background: #fff;
	color: var(--ink, #161823);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}
.hx-pager__btn:active { background: var(--bg, #f7f7f8); }
.hx-pager__btn.is-disabled { opacity: .45; pointer-events: none; }
.hx-pager__info {
	font-size: 12.5px;
	color: var(--ink-2, #6b6b74);
	font-weight: 600;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.hx-rw-item { gap: 12px; }
}
