/* Hawamech - Choose your gift. Site palette (Blocksy), 2px corners, line icons.
   Locked gifts are wrapped in kraft paper with a ribbon and a wax lock seal; that is the one bold element.
   Dark mode: the --hw-* tokens of Hawamech Core (set only while the page is dark) replace the light colours,
   which stay as the fallbacks, so light mode is unchanged. */
.hwg {
	--hwg-green: var(--theme-palette-color-1, #4d7865);
	--hwg-green-d: var(--hw-acc-text, #3b5e4f);
	--hwg-on: var(--hw-on-acc, #fff);
	--hwg-head: var(--theme-palette-color-4, #18181b);
	--hwg-ink: var(--hw-ink, var(--theme-palette-color-4, #18181b));
	--hwg-text: var(--hw-text, var(--theme-palette-color-3, #3f3f46));
	--hwg-muted: var(--hw-muted, #8b938f);
	--hwg-mist: var(--hw-surface-2, var(--theme-palette-color-6, #e6f0ee));
	--hwg-line: var(--hw-line, var(--theme-palette-color-5, #d2ddd8));
	--hwg-surface: var(--hw-surface, #fff);
	--hwg-gold-t: var(--hw-warn, #a97b22);
	--hwg-bad-soft: var(--hw-bad-soft, #fbf3f1);
	--hwg-bad-t: var(--hw-bad, #6d2a1f);
	--hwg-lock-bg: var(--hw-warn-soft, #faf4ec);
	--hwg-lock-line: var(--hw-line-strong, #e0c9a8);
	--hwg-lock-t: var(--hw-warn, var(--hwg-wax));
	--hwg-paper: #f6f1e7;
	--hwg-kraft: #c9a679;
	--hwg-kraft-d: #a8834f;
	--hwg-wax: #95382a;
	--hwg-wax-l: #c25b48;
	--hwg-gold: #a97b22;
	--hwg-r: 2px;
	--hwg-px: 22px;
	position: relative;
	margin: 0 0 24px;
	padding: 22px var(--hwg-px) 20px;
	background: var(--hwg-surface);
	border: 1px solid var(--hwg-line);
	border-radius: var(--hwg-r);
	color: var(--hwg-text);
	font-size: 14px;
	line-height: 1.6;
	box-sizing: border-box;
	overflow: hidden;
}
.hwg *, .hwg *::before, .hwg *::after { box-sizing: border-box; }
.hwg button { font: inherit; cursor: pointer; }
.hwg :focus-visible { outline: 2px solid var(--hwg-green); outline-offset: 2px; }
.hwg-wrap.is-busy .hwg { opacity: .65; pointer-events: none; transition: opacity .15s; }
.hwg .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.hwg-i { display: block; flex: none; }

/* Head: the whole header folds the box (accordion). */
.hwg__head { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.hwg__mark { width: 44px; height: 44px; display: grid; place-items: center; background: var(--hwg-green); color: var(--hwg-on); border-radius: var(--hwg-r); flex: none; }
.hwg__mark .hwg-i { width: 24px; height: 24px; }
.hwg__heading { flex: 1; min-width: 0; }
.hwg__title { margin: 0; font-family: "Reem Kufi", var(--theme-font-family, inherit); font-size: 24px; line-height: 1.25; font-weight: 600; color: var(--hwg-head); }
.hwg__sub { margin: 2px 0 0; font-size: 13.5px; color: var(--hwg-text); }
.hwg__time { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; background: var(--hwg-mist); color: var(--hwg-green-d); border-radius: var(--hwg-r); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.hwg__time .hwg-i { width: 16px; height: 16px; }
.hwg__toggle { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 6px 10px; background: none; border: 1px solid var(--hwg-line); border-radius: var(--hwg-r); color: var(--hwg-green-d); font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.hwg__toggle:hover { background: var(--hwg-mist); }
.hwg__toggle .hwg-i { width: 14px; height: 14px; transition: transform .3s; transform: rotate(90deg); }
.hwg.is-open .hwg__toggle .hwg-i { transform: rotate(-90deg); }
.hwg.is-open .hwg__t-closed, .hwg.is-closed .hwg__t-open { display: none; }
.hwg__status { display: none; margin: 2px 0 0; font-size: 13.5px; color: var(--hwg-text); }
.hwg__status strong { color: var(--hwg-ink); font-weight: 700; }
.hwg.is-closed .hwg__status { display: block; }
.hwg.is-closed .hwg__sub { display: none; }
.hwg__body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s ease; }
.hwg.is-closed .hwg__body { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .35s ease, visibility 0s .35s; }
.hwg__inner { min-height: 0; overflow: hidden; margin-inline: calc(var(--hwg-px) * -1); padding: 0 var(--hwg-px) 2px; }

.hwg__flash { margin: 14px 0 0; padding: 8px 12px; border-inline-start: 3px solid var(--hwg-wax); background: var(--hwg-bad-soft); color: var(--hwg-bad-t); font-size: 13px; }
.hwg__hint { margin: 16px 0 0; font-size: 13px; }

.hwg__mine { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.hwg__mine-item { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; background: var(--hwg-mist); border-radius: var(--hwg-r); color: var(--hwg-ink); font-size: 13.5px; }
.hwg__upgrade { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--hwg-gold-t); font-weight: 600; }
.hwg__mine-thumb img { width: 34px; height: 34px; object-fit: cover; border-radius: var(--hwg-r); display: block; }

/* Lists (two hubs) */
.hwg__tabs { display: flex; gap: 0; margin: 12px 0 0; border-bottom: 1px solid var(--hwg-line); }
.hwg__tab { flex: 0 1 auto; padding: 9px 14px; line-height: 1.35; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--hwg-text); font-weight: 600; font-size: 13.5px; }
.hwg__tab[aria-selected="true"] { color: var(--hwg-green-d); border-bottom-color: var(--hwg-green); }

/* Goal + road */
.hwg__goal { margin: 20px 0 0; }
.hwg__goal-main { margin: 0; font-size: 16px; color: var(--hwg-ink); }
.hwg__goal-main strong { font-weight: 700; }
.hwg__gap { color: var(--hwg-green-d); }
.hwg__goal-sub { margin: 2px 0 0; font-size: 13px; }

.hwg__road { position: relative; margin: 18px 6px 4px; padding-top: 6px; }
.hwg__track { position: relative; height: 6px; margin: 11px 17px 0; background: var(--hwg-line); border-radius: 3px; overflow: hidden; }
.hwg__fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--hwg-fill, 0%); background: var(--hwg-green); border-radius: 3px; transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.hwg__fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-100%); animation: hwg-sheen 3.2s ease-in-out 1s infinite; }
.hwg__stops { list-style: none; margin: 0; padding: 0; position: relative; height: 72px; margin-top: -23px; }
.hwg__stop { position: absolute; top: 0; inset-inline-start: calc(17px + (100% - 34px) * var(--at) / 100); display: flex; flex-direction: column; align-items: center; width: 0; }
.hwg__seal { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--hwg-surface); border: 2px solid var(--hwg-line); color: var(--hw-muted, #9aa5a0); flex: none; }
.hwg__seal .hwg-i { width: 17px; height: 17px; }
.hwg__stop.is-open .hwg__seal { background: var(--hwg-green); border-color: var(--hwg-green); color: var(--hwg-on); }
.hwg__stop.is-next .hwg__seal { border-color: var(--hwg-gold-t); color: var(--hwg-gold-t); box-shadow: 0 0 0 0 rgba(169, 123, 34, .35); animation: hwg-pulse 2.4s ease-out infinite; }
.hwg__stop-text { display: flex; flex-direction: column; align-items: center; text-align: center; white-space: nowrap; margin-top: 4px; line-height: 1.3; }
.hwg__stop-name { font-size: 12.5px; font-weight: 600; color: var(--hwg-ink); }
.hwg__stop-min { font-size: 11.5px; color: var(--hwg-text); }
.hwg__stop:first-child .hwg__stop-text { align-items: flex-start; text-align: start; transform: translateX(-17px); }
.hwg__stop:last-child .hwg__stop-text { align-items: flex-end; text-align: end; transform: translateX(17px); }
.hwg:dir(rtl) .hwg__stop:first-child .hwg__stop-text { transform: translateX(17px); }
.hwg:dir(rtl) .hwg__stop:last-child .hwg__stop-text { transform: translateX(-17px); }
.hwg__stop:first-child .hwg__stop-text, .hwg__stop:last-child .hwg__stop-text { width: max-content; }
.hwg__stop:first-child { align-items: flex-start; }
.hwg__stop:last-child { align-items: flex-end; }
.hwg__stop:first-child .hwg__seal { transform: translateX(-17px); }
.hwg__stop:last-child .hwg__seal { transform: translateX(17px); }
.hwg:dir(rtl) .hwg__stop:first-child .hwg__seal { transform: translateX(17px); }
.hwg:dir(rtl) .hwg__stop:last-child .hwg__seal { transform: translateX(-17px); }

/* Filters */
.hwg__filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.hwg__chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; background: var(--hwg-surface); border: 1px solid var(--hwg-line); border-radius: var(--hwg-r); color: var(--hwg-text); font-size: 12.5px; line-height: 1.4; }
.hwg__chip .hwg-i { width: 13px; height: 13px; }
.hwg__chip-n { color: var(--hwg-muted); }
.hwg__chip[aria-pressed="true"] { background: var(--hwg-green); border-color: var(--hwg-green); color: var(--hwg-on); }
.hwg__chip[aria-pressed="true"] .hwg__chip-n { color: inherit; opacity: .75; }

/* Rail */
.hwg__rail-wrap { position: relative; margin: 12px calc(var(--hwg-px) * -1) 0; }
.hwg__rail { list-style: none; margin: 0; padding: 4px var(--hwg-px) 10px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--hwg-px); scrollbar-width: thin; scrollbar-color: var(--hwg-line) transparent; overscroll-behavior-x: contain; }
.hwg__rail:focus-visible { outline-offset: -2px; }
.hwg__arrow { position: absolute; top: 34%; z-index: 2; width: 36px; height: 36px; display: none; place-items: center; background: var(--hwg-surface); border: 1px solid var(--hwg-line); border-radius: var(--hwg-r); color: var(--hwg-ink); box-shadow: 0 2px 8px rgba(24, 24, 27, .08); }
.hwg__arrow .hwg-i { width: 18px; height: 18px; }
.hwg__arrow--prev { inset-inline-start: 8px; }
.hwg__arrow--next { inset-inline-end: 8px; }
.hwg__arrow--prev .hwg-i { transform: scaleX(-1); }
.hwg:dir(rtl) .hwg__arrow--prev .hwg-i { transform: none; }
.hwg:dir(rtl) .hwg__arrow--next .hwg-i { transform: scaleX(-1); }
.hwg__arrow[disabled] { opacity: 0; pointer-events: none; }
@media (hover: hover) and (min-width: 690px) { .hwg__arrow { display: grid; } }

/* Gift card */
.hwg-card { flex: 0 0 164px; scroll-snap-align: start; display: flex; flex-direction: column; background: var(--hwg-surface); border: 1px solid var(--hwg-line); border-radius: var(--hwg-r); }
.hwg-card[hidden] { display: none; }
.hwg-card__cover { position: relative; aspect-ratio: 3 / 4; background: var(--hwg-paper); overflow: hidden; border-radius: var(--hwg-r) var(--hwg-r) 0 0; }
.hwg-card__cover img { width: 100%; height: 100%; object-fit: contain; padding: 10px; display: block; margin: 0; }
.hwg-card__body { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 12px; flex: 1; }
.hwg-card__tier { font-size: 11px; color: var(--hwg-green-d); font-weight: 600; }
.hwg-card__name { margin: 0; font-size: 13px; line-height: 1.45; font-weight: 600; color: var(--hwg-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; font-family: inherit; }
.hwg-card__btn { margin-top: auto; width: 100%; padding: 8px 6px; background: var(--hwg-surface); color: var(--hwg-green-d); border: 1px solid var(--hwg-green); border-radius: var(--hwg-r); font-size: 12.5px; font-weight: 600; transition: background .15s, color .15s; }
.hwg-card__btn:hover { background: var(--hwg-green); color: var(--hwg-on); }

.hwg-card.is-chosen { border: 2px solid var(--hwg-green); background: var(--hwg-mist); }
.hwg-card.is-chosen .hwg-card__cover { background: #fff; }
.hwg-card__tick { position: absolute; top: 8px; inset-inline-end: 8px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--hwg-green); color: var(--hwg-on); animation: hwg-pop .35s cubic-bezier(.3, 1.6, .5, 1); }
.hwg-card__tick .hwg-i { width: 16px; height: 16px; }
.hwg-card__state { margin: auto 0 0; display: flex; align-items: center; gap: 5px; color: var(--hwg-green-d); font-weight: 700; font-size: 13px; }
.hwg-card__state .hwg-i { width: 16px; height: 16px; }
.hwg-card__undo { align-self: flex-start; padding: 0; background: none; border: 0; color: var(--hwg-text); font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }

/* Locked: wrapped in kraft paper, ribbon, wax seal. */
.hwg-card.is-locked .hwg-card__cover img { filter: grayscale(.9) blur(2.5px); opacity: .5; transform: scale(1.04); }
.hwg-card__wrap { position: absolute; inset: 0; background:
	repeating-linear-gradient(118deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 7px),
	repeating-linear-gradient(28deg, rgba(120, 84, 40, .06) 0 1px, transparent 1px 9px),
	linear-gradient(160deg, rgba(214, 183, 140, .9), rgba(193, 157, 108, .92)); transform-origin: top center; }
.hwg-card__wrap::before, .hwg-card__wrap::after { content: ""; position: absolute; background: linear-gradient(90deg, var(--hwg-wax), var(--hwg-wax-l) 50%, var(--hwg-wax)); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.hwg-card__wrap::before { top: 0; bottom: 0; left: calc(50% - 7px); width: 14px; }
.hwg-card__wrap::after { left: 0; right: 0; top: calc(50% - 7px); height: 14px; background: linear-gradient(180deg, var(--hwg-wax), var(--hwg-wax-l) 50%, var(--hwg-wax)); }
.hwg-card__seal { position: absolute; top: calc(50% - 21px); left: calc(50% - 21px); width: 42px; height: 42px; display: grid; place-items: center; color: #f6e7d6; transform: rotate(45deg);
	background: radial-gradient(circle at 30% 30%, #cf7560 0, var(--hwg-wax-l) 25%, var(--hwg-wax) 65%, #6f2419 100%);
	box-shadow: 0 0 0 3px #f1e4cf, 0 0 0 4px rgba(111, 36, 25, .55), 0 4px 8px rgba(60, 20, 12, .35), inset 0 -3px 6px rgba(0, 0, 0, .25); }
.hwg-card__seal .hwg-i { width: 19px; height: 19px; transform: rotate(-45deg); }
.hwg-card.is-locked .hwg-card__tier { color: var(--hwg-kraft-d); }
.hwg-card.is-locked .hwg-card__name { color: var(--hwg-text); }
.hwg-card__lock { margin: auto 0 0; padding: 7px 6px; text-align: center; font-size: 12px; font-weight: 600; color: var(--hwg-lock-t); background: var(--hwg-lock-bg); border: 1px dashed var(--hwg-lock-line); border-radius: var(--hwg-r); }
.hwg-card__lock--soft { color: var(--hwg-green-d); background: var(--hwg-mist); border-color: var(--hwg-line); }
.hwg-card.is-locked:hover .hwg-card__seal, .hwg-card.is-locked:focus-within .hwg-card__seal { animation: hwg-wiggle .5s ease-in-out; }

/* The moment a tier opens: the paper comes off. */
.hwg-card.is-unwrapping .hwg-card__wrap { animation: hwg-unwrap .9s cubic-bezier(.6, 0, .3, 1) forwards; }
.hwg-card.is-unwrapping .hwg-card__seal { animation: hwg-seal-off .7s ease-in forwards; }
.hwg-card.is-unwrapping { animation: hwg-glow 1.6s ease-out .5s 1; }

.hwg__cheer { margin: 14px 0 0; padding: 10px 14px; display: flex; align-items: center; gap: 10px; background: var(--hwg-green); color: var(--hwg-on); border-radius: var(--hwg-r); font-weight: 600; animation: hwg-drop .45s cubic-bezier(.2, .9, .3, 1.2); }
.hwg__cheer .hwg-i { width: 22px; height: 22px; }

/* Books that reach the next tier */
.hwg__nudge { margin: 18px 0 0; padding: 16px 0 0; border-top: 1px dashed var(--hwg-line); }
.hwg__nudge-title { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--hwg-ink); font-family: inherit; }
.hwg__nudge-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.hwg-pick { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--hwg-line); border-radius: var(--hwg-r); background: var(--hwg-surface); }
.hwg-pick__img img { width: 46px; height: 60px; object-fit: contain; display: block; background: var(--hwg-paper); border-radius: var(--hwg-r); }
.hwg-pick__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hwg-pick__name { color: var(--hwg-ink); font-size: 13px; font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hwg-pick__name:hover { color: var(--hwg-green-d); }
.hwg-pick__price { font-size: 12.5px; color: var(--hwg-text); }
.hwg-pick__price del { opacity: .6; }
.hwg-pick__add { display: inline-flex; align-items: center; gap: 4px; padding: 7px 10px; background: var(--hwg-green); color: var(--hwg-on); border: 0; border-radius: var(--hwg-r); font-size: 12.5px; font-weight: 600; flex: none; }
.hwg-pick__add .hwg-i { width: 14px; height: 14px; }
.hwg-pick__add:hover { background: var(--hwg-green-d); }
.hwg-pick__add.is-done { background: var(--hwg-mist); color: var(--hwg-green-d); }

/* Checkout: a small tinted box in the Order summary column, above the points box. Folded by default. */
.hwg-wrap[data-hwg-float]:not(.is-placed) { display: none; }
.wc-block-components-checkout-order-summary__content > .hwg-wrap { margin: 0 0 12px; }
.hwg--checkout { --hwg-px: 12px; margin: 0; padding: 12px var(--hwg-px); background: color-mix(in srgb, var(--hwg-green) 9%, var(--hwg-surface)); border: 0; font-size: 13px; }
.hwg--checkout .hwg__head { gap: 8px; align-items: flex-start; flex-wrap: nowrap; }
.hwg--checkout .hwg__mark { width: 22px; height: 22px; margin-top: 1px; background: none; color: var(--hwg-green); }
.hwg--checkout .hwg__mark .hwg-i { width: 22px; height: 22px; }
.hwg--checkout .hwg__heading { flex: 1 1 0; min-width: 0; }
.hwg--checkout .hwg__title { font-family: inherit; font-size: 14px; line-height: 1.4; font-weight: 700; }
.hwg--checkout .hwg__sub { display: none; }
.hwg--checkout .hwg__status, .hwg--checkout.is-closed .hwg__status { display: block; font-size: 12.5px; line-height: 1.5; }
.hwg--checkout .hwg__toggle { order: 0; padding: 5px; background: var(--hwg-surface); }
.hwg--checkout .hwg__toggle .hwg__t-open, .hwg--checkout .hwg__toggle .hwg__t-closed { display: none !important; }
.hwg--checkout .hwg__inner { padding-top: 10px; }
.hwg--checkout .hwg__goal { display: none; }
.hwg--checkout .hwg__road { margin: 0; padding: 0; }
.hwg--checkout .hwg__track { margin: 0; height: 4px; }
.hwg--checkout .hwg__hint { margin: 10px 0 0; font-size: 12px; }
.hwg--checkout .hwg__tabs { flex-wrap: wrap; margin-top: 6px; }
.hwg--checkout .hwg__tab { padding: 6px 8px; font-size: 12px; }
.hwg--checkout .hwg__flash { margin-top: 10px; font-size: 12px; }

/* Gifts in the narrow column: one per view (two or three when there is room), picture beside the text. */
.hwg .hwg__rail-wrap--mini { margin: 10px 0 0; container-type: inline-size; }
.hwg .hwg__rail-wrap--mini .hwg__rail { gap: 8px; padding: 0 0 2px; scroll-padding-inline: 0; scrollbar-width: none; }
.hwg__rail-wrap--mini .hwg__rail::-webkit-scrollbar { display: none; }
.hwg-card--mini { flex: 0 0 100%; flex-direction: row; align-items: stretch; min-width: 0; }
@container (min-width: 430px) { .hwg-card--mini { flex-basis: calc(50% - 4px); } }
@container (min-width: 660px) { .hwg-card--mini { flex-basis: calc(33.333% - 6px); } }
.hwg-card--mini .hwg-card__cover { flex: 0 0 64px; aspect-ratio: auto; min-height: 86px; border-radius: var(--hwg-r) 0 0 var(--hwg-r); }
.hwg:dir(rtl) .hwg-card--mini .hwg-card__cover { border-radius: 0 var(--hwg-r) var(--hwg-r) 0; }
.hwg-card--mini .hwg-card__cover img { position: absolute; inset: 0; padding: 6px; }
.hwg-card--mini .hwg-card__body { min-width: 0; padding: 8px 10px; gap: 2px; justify-content: center; }
.hwg-card--mini .hwg-card__tier { font-size: 10.5px; }
.hwg-card--mini .hwg-card__name { font-size: 12.5px; min-height: 0; line-height: 1.35; }
.hwg-card--mini .hwg-card__btn { margin-top: 6px; width: auto; align-self: flex-start; padding: 5px 12px; font-size: 12px; white-space: nowrap; }
.hwg-card--mini .hwg-card__lock { margin: 6px 0 0; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; font-size: 11.5px; white-space: nowrap; }
.hwg-card--mini .hwg-card__lock .hwg-i { width: 12px; height: 12px; }
.hwg-card--mini .hwg-card__state { margin: 6px 0 0; white-space: nowrap; gap: 4px; font-size: 12px; }
.hwg-card--mini .hwg-card__state .hwg-i { width: 14px; height: 14px; }
.hwg-card--mini .hwg-card__undo { margin-inline-start: 8px; font-weight: 400; font-size: 11.5px; }
.hwg-card--mini.is-chosen { border-width: 1px; box-shadow: inset 0 0 0 1px var(--hwg-green); }
.hwg-card--mini .hwg-card__tick { top: 4px; inset-inline-end: 4px; width: 20px; height: 20px; }
.hwg-card--mini .hwg-card__tick .hwg-i { width: 12px; height: 12px; }
.hwg-card--mini .hwg-card__wrap::before { left: calc(50% - 4px); width: 8px; }
.hwg-card--mini .hwg-card__wrap::after { top: calc(50% - 4px); height: 8px; }
.hwg-card--mini .hwg-card__seal { width: 26px; height: 26px; top: calc(50% - 13px); left: calc(50% - 13px); box-shadow: 0 0 0 2px #f1e4cf, 0 0 0 3px rgba(111, 36, 25, .5), 0 2px 5px rgba(60, 20, 12, .3); }
.hwg-card--mini .hwg-card__seal .hwg-i { width: 13px; height: 13px; }
.hwg__nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.hwg .hwg__nav .hwg__arrow { position: static; display: grid; width: 28px; height: 28px; box-shadow: none; }
.hwg__nav .hwg__arrow .hwg-i { width: 14px; height: 14px; }
.hwg .hwg__nav .hwg__arrow[disabled] { opacity: .35; pointer-events: none; }
.hwg__count { direction: ltr; unicode-bidi: isolate; min-width: 56px; text-align: center; font-size: 12px; color: var(--hwg-text); font-variant-numeric: tabular-nums; }

.hwg__msg { margin: 12px 0 0; font-size: 13px; color: var(--hwg-green-d); }
.hwg__msg.is-error { color: var(--hw-bad, #a12c1c); }

/* Gift line in the Cart / Checkout blocks */
.wc-block-cart-items__row.hwg-is-gift, .wc-block-components-order-summary-item.hwg-is-gift { background: linear-gradient(90deg, rgba(77, 120, 101, .06), transparent 60%); }
.wc-block-cart-items__row.hwg-is-gift .wc-block-components-product-name::before,
.wc-block-components-order-summary-item.hwg-is-gift .wc-block-components-product-name::before { content: ""; display: inline-block; width: 15px; height: 15px; margin-inline-end: 6px; vertical-align: -2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M20 12v9H4v-9M2 7h20v5H2zM12 22V7M12 7H7.5a2.5 2.5 0 1 1 0-5C11 2 12 7 12 7zM12 7h4.5a2.5 2.5 0 1 0 0-5C13 2 12 7 12 7z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M20 12v9H4v-9M2 7h20v5H2zM12 22V7M12 7H7.5a2.5 2.5 0 1 1 0-5C11 2 12 7 12 7zM12 7h4.5a2.5 2.5 0 1 0 0-5C13 2 12 7 12 7z'/%3E%3C/svg%3E") center / contain no-repeat; color: var(--theme-palette-color-1, #4d7865); }

@keyframes hwg-sheen { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes hwg-pulse { 0% { box-shadow: 0 0 0 0 rgba(169, 123, 34, .35); } 70% { box-shadow: 0 0 0 9px rgba(169, 123, 34, 0); } 100% { box-shadow: 0 0 0 0 rgba(169, 123, 34, 0); } }
@keyframes hwg-wiggle { 0%, 100% { transform: rotate(45deg); } 25% { transform: rotate(33deg); } 60% { transform: rotate(54deg); } }
@keyframes hwg-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes hwg-unwrap { 0% { transform: none; opacity: 1; } 35% { transform: perspective(500px) rotateX(-8deg); } 100% { transform: perspective(500px) rotateX(-90deg) translateY(-30%); opacity: 0; } }
@keyframes hwg-seal-off { 0% { transform: rotate(45deg); opacity: 1; } 40% { transform: scale(1.18) rotate(30deg); } 100% { transform: translateY(80px) rotate(110deg) scale(.6); opacity: 0; } }
@keyframes hwg-glow { 0% { box-shadow: 0 0 0 0 rgba(77, 120, 101, .45); } 100% { box-shadow: 0 0 0 14px rgba(77, 120, 101, 0); } }
@keyframes hwg-drop { 0% { transform: translateY(-8px); opacity: 0; } 100% { transform: none; opacity: 1; } }

@media (max-width: 689px) {
	.hwg:not(.hwg--checkout) { --hwg-px: 16px; padding-top: 16px; padding-bottom: 14px; }
	.hwg__head { flex-wrap: wrap; gap: 10px 12px; }
	.hwg__mark { width: 38px; height: 38px; }
	.hwg__title { font-size: 20px; }
	.hwg__heading { flex: 1 1 0; min-width: 0; }
	.hwg__toggle { order: 2; }
	.hwg__time { order: 3; margin-inline-start: 50px; }
	.hwg__toggle .hwg__t-open, .hwg__toggle .hwg__t-closed { display: none !important; }
	.hwg__toggle { padding: 8px; }
	.hwg__goal-main { font-size: 15px; }
	.hwg__stop-name { font-size: 11.5px; }
	.hwg__stop-min { font-size: 10.5px; }
	.hwg__rail { gap: 10px; }
	.hwg-card:not(.hwg-card--mini) { flex-basis: 138px; }
	.hwg__nudge-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.hwg *, .hwg *::before, .hwg *::after { animation: none !important; transition: none !important; }
	.hwg-card.is-unwrapping .hwg-card__wrap, .hwg-card.is-unwrapping .hwg-card__seal { opacity: 0; }
}
