/* Loyalty points: checkout card + account meter */
.qtl-card { --qtl-blue: #1767f2; --qtl-gold: #f5b301; margin: 0 0 18px; padding: 16px 18px; border: 1.5px solid var(--qtl-blue); border-radius: 14px; background: linear-gradient(180deg, #f4f8ff, #fff); color: #14233f; box-shadow: 0 8px 24px -14px rgba(23, 103, 242, .45); }
.qtl-card .qtl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qtl-checkout .qtl-head { justify-content: flex-start; }
.qtl-card strong { display: block; font-size: 15px; line-height: 1.3; }
.qtl-card small { display: block; margin-top: 2px; color: #52627f; font-size: 12.5px; }
.qtl-star { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #ffd34d, var(--qtl-gold)); color: #fff; font-size: 20px; box-shadow: 0 4px 10px -4px rgba(245, 179, 1, .8); }
.qtl-pop { color: var(--qtl-blue); font-size: 1.25em; display: inline-block; }
.qtl-card.is-pulse .qtl-pop { animation: qtl-pop .6s ease; }
@keyframes qtl-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.qtl-meter { position: relative; margin: 16px 0 6px; padding: 0 0 18px; }
.qtl-track { height: 14px; border-radius: 999px; background: #dfe8f8; box-shadow: inset 0 1px 2px rgba(20, 35, 63, .12); overflow: hidden; }
.qtl-fill { width: calc(var(--p, 0) * 1%); height: 100%; border-radius: 999px; background: linear-gradient(90deg, #5b9bff, var(--qtl-blue)); background-size: 200% 100%; transition: width .6s ease; }
.qtl-cap { position: absolute; top: -7px; left: calc(var(--p, 0) * 1%); transform: translateX(calc(var(--p, 0) * -1%)); min-width: 42px; padding: 0 12px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; border-radius: 999px; background: var(--qtl-blue); color: #fff; font-size: 13px; font-weight: 800; line-height: 1; box-shadow: 0 4px 10px -3px rgba(23, 103, 242, .65); transition: left .6s ease, transform .6s ease; }
.qtl-scale { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 600; color: #6b7a96; }
.qtl-meter.is-full .qtl-fill, .qtl-card.is-unlocked .qtl-fill { background: linear-gradient(90deg, #ffd34d, var(--qtl-gold)); }
.qtl-meter.is-full .qtl-cap, .qtl-card.is-unlocked .qtl-cap { background: var(--qtl-gold); color: #3d2a00; box-shadow: 0 4px 10px -3px rgba(245, 179, 1, .8); }

.qtl-line { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: #52627f; }
.qtl-line b { color: #14233f; }
.qtl-msg { margin: 4px 0 0; font-size: 14px; }
.qtl-expiry { margin: 8px 0 0; font-size: 12.5px; color: #8a5a00; }
.qtl-balance { margin-top: 2px; }
.qtl-balance b { font-size: 34px; line-height: 1; color: var(--qtl-blue); }
.qtl-balance span { font-size: 14px; color: #52627f; }
.qtl-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #52627f; }
.qtl-badge { padding: 6px 12px; border-radius: 999px; background: linear-gradient(135deg, #ffd34d, var(--qtl-gold)); color: #3d2a00; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.qtl-link { display: inline-block; margin-top: 10px; color: var(--qtl-blue); font-weight: 700; text-decoration: none; }
.qtl-cta { display: inline-block; margin-top: 12px; padding: 9px 16px; border-radius: 10px; background: var(--qtl-blue); color: #fff; font-weight: 700; text-decoration: none; }
.qtl-cta:hover { filter: brightness(1.08); color: #fff; }

.qtl-redeem { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 12px; padding: 10px 12px; border: 1.5px solid var(--qtl-blue); border-radius: 10px; background: #fff; color: var(--qtl-blue); font: inherit; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.qtl-redeem:hover { background: #eef4ff; }
.qtl-redeem.is-on { background: var(--qtl-blue); color: #fff; }
.qtl-switch { flex: none; position: relative; width: 34px; height: 20px; border-radius: 999px; background: #c5d4ef; transition: background .2s; }
.qtl-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.qtl-redeem.is-on .qtl-switch { background: var(--qtl-gold); }
.qtl-redeem.is-on .qtl-switch::after { transform: translateX(14px); }
.qtl-card.is-busy { opacity: .65; pointer-events: none; }

.qtl-card.is-compact { margin-bottom: 20px; }
.qtl-rules { margin: 14px 0 0; color: #52627f; font-size: 13.5px; }
.qtl-title { margin: 26px 0 10px; }
.qtl-history { width: 100%; border-collapse: collapse; font-size: 14px; }
.qtl-history th, .qtl-history td { padding: 9px 8px; border-bottom: 1px solid #e3e9f4; text-align: left; vertical-align: top; }
.qtl-history small { display: block; color: #6b7a96; }
.qtl-history .is-plus { color: #1a7f37; font-weight: 700; }
.qtl-history .is-minus { color: #b32d2e; font-weight: 700; }
.qtl-thanks { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #fff8e1; color: #5c4200; font-weight: 600; }

@media (max-width: 767px) {
  .qtl-card { padding: 14px; }
  .qtl-history thead { display: none; }
  .qtl-history tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 0; border-bottom: 1px solid #e3e9f4; }
  .qtl-history td { padding: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { .qtl-card.is-pulse .qtl-pop { animation: none; } }
