.loyalty-account{max-width:100%;margin:1.5rem 0}.loyalty-balances{display:flex;flex-wrap:wrap;gap:1rem;margin:1.5rem 0}.loyalty-balances>div{flex:1;min-width:180px;padding:1.25rem;background:#fffaf2;border:1px solid #efe7dd;border-radius:12px}.loyalty-balances strong{font-size:2rem;display:block}.loyalty-preview{padding:1rem;border-left:4px solid #f4b011;background:#fffaf2}.loyalty-actions{display:flex;flex-wrap:wrap;gap:12px;margin:1.5rem 0}.loyalty-history{overflow-x:auto}.loyalty-history td{vertical-align:top;font-size:.9em}.loyalty-pages{display:flex;justify-content:space-between;margin-top:1rem}#loyalty-live-qr{padding:16px;background:white;max-width:292px;min-height:292px}#loyalty-live-qr img,#loyalty-live-qr canvas{max-width:100%;height:auto}

/* Compact cart / checkout loyalty card. It is rendered directly under the
   Proceed to Checkout / Place Order action for Woo Blocks. */
.loyalty-checkout{box-sizing:border-box;width:100%;margin:14px 0 0;padding:18px;background:#fffaf2;border:1px solid #eadfce;border-radius:16px;color:#2b2b2b;box-shadow:0 8px 28px rgba(52,37,24,.05)}
.loyalty-checkout *{box-sizing:border-box}.loyalty-checkout__head{display:flex;align-items:flex-start;gap:11px}.loyalty-checkout__mark{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:#f4b011;color:#2b2b2b;font-size:15px;line-height:1}.loyalty-checkout h3{margin:0 0 3px;font-size:16px;line-height:1.25}.loyalty-checkout__balance{margin:0;color:#756f68;font-size:13px;line-height:1.4}.loyalty-checkout__benefits{display:grid;gap:7px;margin:14px 0}.loyalty-checkout__benefit{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:9px 10px;background:#fff;border:1px solid #efe7dd;border-radius:10px;font-size:12px;line-height:1.35}.loyalty-checkout__benefit strong{flex:0 0 auto;color:#315f39;font-size:11px;font-weight:700;text-align:right}.loyalty-checkout__form{margin-top:12px}.loyalty-checkout__label{display:block;margin-bottom:6px;color:#5f584f;font-size:12px;font-weight:700}.loyalty-checkout__controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.loyalty-checkout input[type=number]{width:100%;max-width:none;min-width:0;height:42px;margin:0;padding:8px 10px;background:#fff;border:1px solid #ded5ca;border-radius:10px}.loyalty-checkout .button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;margin:0!important;padding:9px 16px!important;background:#f4b011!important;color:#241a12!important;border:1px solid #f4b011!important;border-radius:10px!important;box-shadow:none!important;font-weight:700!important;line-height:1.15!important;white-space:nowrap;cursor:pointer;transition:background-color .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease}.loyalty-checkout .button:hover,.loyalty-checkout .button:focus-visible{background:#d99a08!important;border-color:#d99a08!important;color:#241a12!important;transform:translateY(-1px);box-shadow:0 7px 18px rgba(217,154,8,.18)!important;outline:none}.loyalty-checkout .button:active{transform:translateY(0);box-shadow:none!important}.loyalty-checkout__help{margin:8px 0 0;color:#817970;font-size:11px;line-height:1.4}.loyalty-checkout--join p{margin:0}.loyalty-checkout__coupon-chip button[hidden]{display:none!important}

@media(max-width:480px){.loyalty-checkout{padding:15px;border-radius:14px}.loyalty-checkout__controls{grid-template-columns:1fr}.loyalty-checkout .button{width:100%}.loyalty-checkout__benefit{align-items:flex-start;flex-direction:column;gap:3px}.loyalty-checkout__benefit strong{text-align:left}}

.loyalty-checkout__status{min-height:16px;margin:8px 0 0;font-size:11px;font-weight:600;line-height:1.35}.loyalty-checkout__status.is-success{color:#315f39}.loyalty-checkout__status.is-error{color:#a4332b}.loyalty-checkout .button[aria-busy=true]{opacity:.72;cursor:wait;transform:none;box-shadow:none!important}

/* Lifetime rewards — deliberately separate from the spendable balance. */
.loyalty-lifetime-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:-.35rem 0 1.4rem}
.loyalty-lifetime-stats>div{padding:15px 18px;border:1px solid #e6dbd2;border-radius:12px;background:#f7f3ef}
.loyalty-lifetime-stats strong{display:block;color:#5c3b2e;font-size:1.6rem;line-height:1.2}
.loyalty-lifetime-stats span,.loyalty-lifetime-stats small{display:block;color:#65564e;margin-top:4px}
.loyalty-lifetime-stats small{font-size:.82rem}
@media(max-width:520px){.loyalty-lifetime-stats{grid-template-columns:1fr}}


/* v1.2.15 — keep Woo price markup inline inside loyalty statistic cards. */
.loyalty-account .loyalty-balances .woocommerce-Price-amount,
.loyalty-account .loyalty-balances .woocommerce-Price-currencySymbol,
.loyalty-account .loyalty-lifetime-stats .woocommerce-Price-amount,
.loyalty-account .loyalty-lifetime-stats .woocommerce-Price-currencySymbol,
.loyalty-account .loyalty-lifetime-stats bdi{display:inline!important;white-space:nowrap}

/* Checkout Blocks additional field / classic checkout fallback. */
.wc-block-checkout .wc-block-components-checkbox:has(input[id*="loyalty-pass-system"]),
.loyalty-checkout-join{margin-top:12px;padding:12px 14px;border:1px solid #eadfce;border-radius:12px;background:#fffaf2}


/* v1.2.16 — loyalty opt-out confirmation. */
.loyalty-danger-zone{margin:2rem 0 1.5rem;padding:18px 20px;border:1px solid #e4cbc4;border-radius:14px;background:#fff7f4;color:#4f2e28}
.loyalty-danger-zone h3{margin:0 0 .45rem;color:#7a2f26}.loyalty-danger-zone p{margin:.35rem 0 1rem;max-width:760px}.loyalty-danger-zone--confirm{border-color:#d7a59a;background:#fff0ec}.loyalty-danger-button{background:#fff!important;color:#9b2d22!important;border:1px solid #c65a4e!important;box-shadow:none!important}.loyalty-danger-button:hover,.loyalty-danger-button:focus-visible{background:#9b2d22!important;color:#fff!important;border-color:#9b2d22!important}
