/* Hawamech Loyalty - front end. Soft tinted boxes, no borders. Uses logical properties so Arabic (RTL) works.
   Dark mode: the --hw-* tokens of Hawamech Core take over; without them the light colours below apply. */
.hwl-box, .hwl-account, .hwl-gc-form {
	--hwl-accent: var(--hwl-accent-custom, var(--theme-palette-color-1, #8a5a2b));
	--hwl-acc-text: var(--hw-acc-text, var(--hwl-accent));
	--hwl-on-acc: var(--hw-on-acc, #fff);
	--hwl-text: var(--hw-text, currentColor);
	--hwl-tint: color-mix(in srgb, var(--hwl-accent) 11%, transparent);
	--hwl-tint-strong: color-mix(in srgb, var(--hwl-accent) 18%, transparent);
	color: var(--hwl-text);
}
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
	.hwl-box, .hwl-account, .hwl-gc-form { --hwl-tint: rgba(138, 90, 43, .11); --hwl-tint-strong: rgba(138, 90, 43, .18); }
}
.hwl-box {
	display: block;
	box-sizing: border-box;
	margin: 0 0 1.25em;
	padding: 14px 16px;
	border: 0;
	border-radius: 12px;
	background: var(--hwl-tint);
	color: var(--hwl-text);
	font-size: .95em;
	line-height: 1.55;
}
.hwl-box--line {
	display: flex;
	align-items: center;
	gap: .65em;
	margin: 12px 0;
	padding: 10px 14px;
	width: fit-content;
	max-width: 100%;
}
.hwl-box__head { display: flex; align-items: flex-start; gap: .7em; }
.hwl-box__icon { flex: 0 0 auto; display: inline-flex; width: 26px; height: 26px; color: var(--hwl-accent); }
.hwl-box__icon svg { width: 100%; height: 100%; }
.hwl-box__text { flex: 1 1 auto; min-width: 0; }
.hwl-box__text p { margin: 0 0 .25em; }
.hwl-box__text p:last-child { margin-bottom: 0; }
.hwl-box a { color: var(--hwl-acc-text); text-decoration: underline; }
.hwl-badge { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--hwl-tint-strong); color: var(--hw-ink, var(--hwl-accent)); font-size: .85em; font-weight: 600; }
.hwl-sec { margin-block-start: 12px; padding-block-start: 12px; border-block-start: 1px solid var(--hwl-tint-strong); }
.hwl-sec__title { font-weight: 700; margin-block-end: 6px; }
.hwl-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; margin: 0; }
.hwl-inline input { flex: 1 1 140px; min-width: 0; min-height: 40px; margin: 0; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--hw-line-strong, rgba(0, 0, 0, .15)); background: var(--hw-input, #fff); color: var(--hw-ink, #222); }
.hwl-btn, .hwl-chip-btn { cursor: pointer; font: inherit; }
.hwl-btn { min-height: 40px; padding: 6px 18px; border: 0; border-radius: 8px; background: var(--hwl-accent); color: var(--hwl-on-acc); font-weight: 600; }
.hwl-btn:hover { filter: brightness(1.08); }
.hwl-btn[disabled] { opacity: .6; cursor: wait; }
.hwl-link { padding: 0; border: 0; background: none; color: var(--hwl-acc-text); text-decoration: underline; cursor: pointer; font: inherit; }
.hwl-hint { margin: 6px 0 0; font-size: .88em; opacity: .85; }
.hwl-applied { margin: 0; }
.hwl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 6px; }
.hwl-chip-btn { padding: 4px 12px; border: 0; border-radius: 999px; background: var(--hwl-tint-strong); color: inherit; }
.hwl-msg { margin-block-start: 10px; padding: 8px 12px; border-radius: 8px; background: var(--hwl-tint-strong); font-size: .92em; }
.hwl-msg--error { background: var(--hw-bad-soft, rgba(190, 30, 30, .12)); color: var(--hw-bad, #8a1111); }
.hwl-box-wrap.is-busy { opacity: .65; pointer-events: none; }
.screen-reader-text.hwl-sr { position: absolute; }

/* Gift card order form */
.hwl-gc-form { max-width: 520px; }
.hwl-gc-form label { display: block; font-weight: 600; }
.hwl-gc-form input[type="text"], .hwl-gc-form input[type="email"], .hwl-gc-form textarea { display: block; width: 100%; box-sizing: border-box; margin-block-start: 4px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--hw-line-strong, rgba(0,0,0,.2)); font: inherit; }
.hwl-chip > span span { background: none; padding: 0; }
.hwl-gc-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 12px; }
.hwl-chip { position: relative; }
.hwl-chip input { position: absolute; opacity: 0; }
.hwl-chip > span { display: inline-block; padding: 8px 18px; border-radius: 999px; background: var(--hwl-tint); font-weight: 600; cursor: pointer; }
.hwl-chip input:checked + span { background: var(--hwl-accent); color: var(--hwl-on-acc); }
.hwl-chip input:focus-visible + span { outline: 2px solid var(--hwl-accent); outline-offset: 2px; }
.hwl-gc-note { font-size: .88em; opacity: .8; }

/* My Account */
/* Theme links and headings inside the dashboard panels: the lighter dark-mode orange (no change in light mode). */
.hwl-account { --theme-link-initial-color: var(--hw-acc-text, var(--theme-palette-color-1)); --theme-headings-color: var(--hw-title-sm, var(--theme-palette-color-4)); }
.hwl-account .hwl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-block-end: 20px; }
.hwl-account .hwl-card { padding: 16px; border-radius: 12px; background: var(--hwl-tint); }
.hwl-account .hwl-card small { display: block; opacity: .8; }
.hwl-account .hwl-card strong { display: block; font-size: 1.7em; line-height: 1.2; }
.hwl-account .hwl-card--pending { background: var(--hw-warn-soft, #fff4e5); }
.hwl-account .hwl-card--pending strong { color: var(--hw-warn, #8a5200); }
.hwl-account .hwl-pending .hwl-gc-list strong { color: var(--hw-warn, #8a5200); }
.hwl-account .hwl-panel { margin-block-end: 22px; padding: 16px 18px; border-radius: 12px; background: var(--hwl-tint); }
.hwl-account .hwl-panel h3 { margin: 0 0 8px; font-size: 1.1em; }
.hwl-account .hwl-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.hwl-account .hwl-steps li { padding: 12px 14px; border-radius: 10px; background: var(--hw-surface, rgba(255, 255, 255, .55)); }
.hwl-account .hwl-steps b { display: block; margin-block-end: 2px; }
.hwl-account .hwl-gc-list { margin: 0; padding: 0; list-style: none; }
.hwl-account .hwl-gc-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 8px 0; border-block-end: 1px solid var(--hwl-tint-strong); }
.hwl-account .hwl-gc-list li:last-child { border: 0; }
.hwl-account code { padding: 2px 8px; border-radius: 6px; background: var(--hw-surface-2, rgba(255, 255, 255, .7)); letter-spacing: 1px; }
.hwl-account .hwl-inline { margin-block-start: 8px; }
.hwl-account .hwl-cta { display: inline-block; margin-block-start: 10px; padding: 10px 20px; border-radius: 8px; background: var(--hwl-accent); color: var(--hwl-on-acc); text-decoration: none; font-weight: 600; }
.hwl-account .hwl-progress { height: 8px; margin-block-start: 8px; border-radius: 999px; background: var(--hwl-tint-strong); overflow: hidden; }
.hwl-account .hwl-progress span { display: block; height: 100%; background: var(--hwl-accent); }
@media (max-width: 600px) {
	.hwl-box { padding: 12px; }
	.hwl-box--line { width: auto; }
}


/* Cart / Checkout blocks: keep them at the theme's normal content width. */
.wp-block-woocommerce-checkout.alignwide,
.wp-block-woocommerce-cart.alignwide {
	max-width: var(--theme-normal-container-max-width, 1290px);
	margin-left: auto;
	margin-right: auto;
}

/* Accordion sections (like WooCommerce's "Add coupons") */
.hwl-acc > summary { display: flex; align-items: center; justify-content: space-between; margin: 0; cursor: pointer; list-style: none; }
.hwl-acc > summary::-webkit-details-marker { display: none; }
.hwl-acc > summary::after { content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin-inline-start: 10px; border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.hwl-acc[open] > summary { margin-block-end: 8px; }
.hwl-acc[open] > summary::after { transform: rotate(-135deg); }


/* 0.7.0 — Earn more points: bonus requests on My Account. */
.hwl-account .hwl-earn .hwl-gc-list li > span small { display: block; opacity: .8; }
.hwl-account .hwl-earn .hwl-gc-list li > strong, .hwl-account .hwl-earn .hwl-gc-list li strong, .hwl-account .hwl-earn .hwl-badge { white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.hwl-account .hwl-claim { margin-block-start: 10px; padding: 12px 14px; border-radius: 10px; background: var(--hw-surface, rgba(255, 255, 255, .55)); }
.hwl-account .hwl-claim > summary > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hwl-account .hwl-claim p { margin: 0 0 10px; }
.hwl-account .hwl-claim__form label { display: block; margin-block-end: 4px; font-weight: 600; }
.hwl-account .hwl-claim__form input[type="url"],
.hwl-account .hwl-claim__form input[type="text"],
.hwl-account .hwl-claim__form select { width: 100%; max-width: 460px; }
.hwl-account .hwl-claim__form small { display: block; opacity: .8; }
.hwl-account .hwl-claims__title { margin: 16px 0 4px; font-size: 1em; }
.hwl-account .hwl-claim--approved { background: var(--hw-ok-soft, #e6f4ea); color: var(--hw-ok, #1e6b34); }
.hwl-account .hwl-claim--rejected { background: var(--hw-bad-soft, #fdecea); color: var(--hw-bad, #9b2c2c); }
