/* hiDia Shop Widgets — base styles.
   Everything is scoped under .hsw and driven by the CSS variables below.
   Every value can be overridden from each widget's Style tab. */

.hsw {
	--hsw-accent: #111827;
	--hsw-accent-text: #ffffff;
	--hsw-text: #1f2328;
	--hsw-muted: #6b7280;
	--hsw-border: #e5e7eb;
	--hsw-surface: #ffffff;
	--hsw-soft: #f4f5f7;
	--hsw-success: #15803d;
	--hsw-danger: #dc2626;
	--hsw-warning: #b45309;
	--hsw-radius: 10px;
	--hsw-gap: 20px;
	color: var(--hsw-text);
	line-height: 1.5;
}
.hsw *, .hsw *::before, .hsw *::after { box-sizing: border-box; }
.hsw [hidden] { display: none !important; }
.hsw .hsw-ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: middle; }
/* Elementor / Font Awesome icons picked in the widgets follow the text color */
.hsw svg.e-font-icon-svg { fill: currentColor; }
.hsw i[class*="fa-"], .hsw i[class*="eicon"] { color: inherit; }
.hsw del { opacity: .55; }
.hsw ins { text-decoration: none; }
.hsw .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* ---------- Buttons & links ---------- */
.hsw .hsw-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .8em 1.4em; margin: 0; min-height: 0;
	border: 1px solid transparent; border-radius: var(--hsw-radius);
	font: inherit; font-weight: 600; line-height: 1.2; letter-spacing: normal; text-transform: none;
	text-decoration: none; text-align: center; cursor: pointer; box-shadow: none;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s, opacity .2s;
}
.hsw .hsw-btn--primary { background: var(--hsw-accent); color: var(--hsw-accent-text); }
.hsw .hsw-btn--primary:hover, .hsw .hsw-btn--primary:focus-visible { background: color-mix(in srgb, var(--hsw-accent) 86%, #fff); color: var(--hsw-accent-text); }
.hsw .hsw-btn--secondary { background: var(--hsw-surface); color: var(--hsw-text); border-color: var(--hsw-border); }
.hsw .hsw-btn--secondary:hover, .hsw .hsw-btn--secondary:focus-visible { border-color: var(--hsw-text); color: var(--hsw-text); background: var(--hsw-surface); }
.hsw .hsw-btn--ghost { background: transparent; color: var(--hsw-muted); padding: .6em .2em; border: 0; }
.hsw .hsw-btn--ghost:hover, .hsw .hsw-btn--ghost:focus-visible { color: var(--hsw-text); background: transparent; }
.hsw .hsw-btn--block { width: 100%; }
.hsw .hsw-btn--sm { padding: .45em .9em; font-size: .85em; }
.hsw .hsw-btn:disabled { opacity: .5; cursor: not-allowed; }
.hsw .hsw-btn .hsw-ico { width: 1.1em; height: 1.1em; transition: transform .2s; }
.hsw .hsw-link {
	display: inline-flex; align-items: center; gap: .4em; padding: 0; margin: 0; min-height: 0;
	background: none; border: 0; border-radius: 0; box-shadow: none;
	font: inherit; font-size: .9em; color: var(--hsw-muted); cursor: pointer;
	text-decoration: underline; text-underline-offset: 3px;
}
.hsw .hsw-link:hover, .hsw .hsw-link:focus-visible { color: var(--hsw-text); background: none; }
.hsw :focus-visible { outline: 2px solid var(--hsw-accent); outline-offset: 2px; }

/* ---------- Fields ---------- */
.hsw .hsw-input {
	width: 100%; min-height: 44px; margin: 0; padding: .6em .9em;
	border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius);
	background: var(--hsw-surface); color: var(--hsw-text);
	font: inherit; line-height: 1.3; box-shadow: none; outline: 0;
	transition: border-color .2s, box-shadow .2s;
}
.hsw .hsw-input:focus { border-color: var(--hsw-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hsw-accent) 15%, transparent); }
.hsw .hsw-input::placeholder { color: var(--hsw-muted); opacity: .8; }

/* ---------- Messages ---------- */
.hsw .hsw-notices { display: grid; gap: 8px; margin-bottom: var(--hsw-gap); }
.hsw .hsw-notices:empty { display: none; }
.hsw .hsw-notice {
	display: flex; flex-wrap: wrap; align-items: center; gap: .6em 1em;
	padding: .8em 1em; border-radius: var(--hsw-radius);
	background: var(--hsw-soft); color: var(--hsw-text); font-size: .925em;
	animation: hsw-in .25s ease;
}
.hsw .hsw-notice--success { background: color-mix(in srgb, var(--hsw-success) 10%, var(--hsw-surface)); color: color-mix(in srgb, var(--hsw-success) 85%, var(--hsw-text)); }
.hsw .hsw-notice--error { background: color-mix(in srgb, var(--hsw-danger) 9%, var(--hsw-surface)); color: color-mix(in srgb, var(--hsw-danger) 85%, var(--hsw-text)); }
.hsw .hsw-notice a, .hsw .hsw-notice .button { color: inherit; font-weight: 600; background: none; border: 0; padding: 0; text-decoration: underline; order: 2; }
.hsw .hsw-notice__undo { margin-left: auto; padding: 0; background: none; border: 0; min-height: 0; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; cursor: pointer; }
.hsw-toast-wrap { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100000; display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.hsw-toast-wrap .hsw-notice { pointer-events: auto; box-shadow: 0 10px 30px rgba(0,0,0,.15); }

/* ---------- Loading ---------- */
.hsw .hsw-dyn { position: relative; }
.hsw .hsw-dyn.is-loading { pointer-events: none; }
.hsw .hsw-dyn.is-loading > * { opacity: .55; transition: opacity .2s; }
.hsw .hsw-dyn.is-loading::after {
	content: ""; position: absolute; top: 50%; left: 50%; z-index: 5;
	width: 26px; height: 26px; margin: -13px 0 0 -13px;
	border: 3px solid var(--hsw-border); border-top-color: var(--hsw-accent); border-radius: 50%;
	animation: hsw-spin .7s linear infinite;
}
@keyframes hsw-spin { to { transform: rotate(360deg); } }
@keyframes hsw-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes hsw-bump { 30% { transform: scale(1.35); } 60% { transform: scale(.9); } }
@keyframes hsw-stripes { to { background-position: 16px 0, 0 0; } }

/* ---------- Quantity ---------- */
.hsw .hsw-qty {
	--hsw-qty-h: 40px; --hsw-qty-w: 42px;
	display: inline-flex; align-items: stretch; height: var(--hsw-qty-h);
	border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius);
	background: var(--hsw-surface); overflow: hidden;
}
.hsw .hsw-qty:focus-within { border-color: var(--hsw-accent); }
.hsw .hsw-qty--text { height: auto; border: 0; background: none; align-items: center; font-weight: 600; }
.hsw .hsw-qty__btn {
	display: grid; place-items: center; width: var(--hsw-qty-h); padding: 0; margin: 0; min-height: 0;
	border: 0; border-radius: 0; background: transparent; color: var(--hsw-text); box-shadow: none;
	cursor: pointer; transition: background-color .15s, color .15s;
}
.hsw .hsw-qty__btn:hover { background: var(--hsw-soft); color: var(--hsw-text); }
.hsw .hsw-qty__btn:disabled { opacity: .3; cursor: not-allowed; }
.hsw .hsw-qty__btn .hsw-ico { width: 14px; height: 14px; }
.hsw .hsw-qty__input {
	width: var(--hsw-qty-w); height: auto; min-height: 0; padding: 0; margin: 0;
	border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: 0;
	color: inherit; font: inherit; font-weight: 600; text-align: center;
	-moz-appearance: textfield; appearance: textfield;
}
.hsw .hsw-qty__input::-webkit-outer-spin-button, .hsw .hsw-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hsw .hsw-qty--input .hsw-qty__input { width: calc(var(--hsw-qty-w) + 22px); }

/* ---------- Remove ---------- */
.hsw .hsw-remove {
	display: inline-flex; align-items: center; gap: .35em; padding: .45em; margin: 0; min-height: 0;
	background: none; border: 0; border-radius: var(--hsw-radius); box-shadow: none;
	color: var(--hsw-muted); font: inherit; font-size: .875em; cursor: pointer;
	transition: color .15s, background-color .15s;
}
.hsw .hsw-remove:hover { color: var(--hsw-danger); background: color-mix(in srgb, var(--hsw-danger) 8%, transparent); }
.hsw .hsw-remove .hsw-ico { width: 18px; height: 18px; }

/* ---------- Cart ---------- */
.hsw .hsw-cart { --hsw-thumb: 88px; --hsw-sum-w: 360px; }
.hsw .hsw-cart__grid { display: grid; gap: calc(var(--hsw-gap) * 1.5); align-items: start; }
.hsw .hsw-cart--sum-right .hsw-cart__grid { grid-template-columns: minmax(0, 1fr) var(--hsw-sum-w); }
.hsw .hsw-cart__main { display: grid; gap: var(--hsw-gap); min-width: 0; }
.hsw .hsw-cart__items { background: var(--hsw-surface); border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius); overflow: hidden; }
.hsw .hsw-cart--cards .hsw-cart__items { display: grid; gap: 12px; background: none; border: 0; border-radius: 0; overflow: visible; }

/* table: image | info | price | qty | subtotal | remove */
.hsw .hsw-cart--table .hsw-item,
.hsw .hsw-cart__head { display: grid; grid-template-columns: var(--hsw-thumb) minmax(0, 1fr) 110px 132px 110px 40px; gap: 16px; align-items: center; padding: 16px 20px; }
.hsw .hsw-cart--table.hsw-cart--no-thumb .hsw-item,
.hsw .hsw-cart--no-thumb .hsw-cart__head { grid-template-columns: minmax(0, 1fr) 110px 132px 110px 40px; }
.hsw .hsw-cart--table.hsw-cart--no-price .hsw-item,
.hsw .hsw-cart--no-price .hsw-cart__head { grid-template-columns: var(--hsw-thumb) minmax(0, 1fr) 132px 110px 40px; }
.hsw .hsw-cart--table.hsw-cart--no-thumb.hsw-cart--no-price .hsw-item,
.hsw .hsw-cart--no-thumb.hsw-cart--no-price .hsw-cart__head { grid-template-columns: minmax(0, 1fr) 132px 110px 40px; }
.hsw .hsw-cart__head { padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--hsw-border); font-size: .76em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hsw-muted); }
.hsw .hsw-cart__head-product { grid-column: span 2; }
.hsw .hsw-cart--no-thumb .hsw-cart__head-product { grid-column: span 1; }
.hsw .hsw-cart--no-price .hsw-cart__head-price { display: none; }
.hsw .hsw-cart__head-qty { text-align: center; }
.hsw .hsw-cart__head-subtotal { text-align: right; }
.hsw .hsw-cart--table .hsw-item + .hsw-item { border-top: 1px solid var(--hsw-border); }
.hsw .hsw-item { transition: background-color .2s, opacity .2s; }
.hsw .hsw-item.is-busy { opacity: .5; }
.hsw .hsw-item__thumb img { display: block; width: 100%; height: auto; border-radius: calc(var(--hsw-radius) * .8); background: var(--hsw-soft); }
.hsw .hsw-item__thumb a { display: block; }
.hsw .hsw-item__info { min-width: 0; }
.hsw .hsw-item__name { font-weight: 600; line-height: 1.35; }
.hsw .hsw-item__name a { color: inherit; text-decoration: none; }
.hsw .hsw-item__name a:hover { text-decoration: underline; }
.hsw .hsw-item__meta, .hsw .hsw-item__sku, .hsw .hsw-item__stock { margin-top: 4px; font-size: .84em; color: var(--hsw-muted); }
.hsw .hsw-item__meta dl { margin: 0; }
.hsw .hsw-item__meta dt { display: inline; margin: 0 .3em 0 0; font-weight: 600; }
.hsw .hsw-item__meta dd { display: inline; margin: 0; }
.hsw .hsw-item__meta dd::after { content: ""; display: block; }
.hsw .hsw-item__meta dd p { display: inline; margin: 0; }
.hsw .hsw-item__price { color: var(--hsw-muted); }
.hsw .hsw-item__qty { display: flex; justify-content: center; }
.hsw .hsw-item__subtotal { font-weight: 700; text-align: right; }
.hsw .hsw-item__remove { display: flex; justify-content: flex-end; }

/* cards (also used for the table on phones) */
.hsw .hsw-cart--cards .hsw-item {
	display: grid; grid-template-columns: var(--hsw-thumb) minmax(0, 1fr) auto;
	grid-template-areas: "thumb info remove" "thumb price price" "thumb qty subtotal";
	gap: 6px 16px; align-items: center; padding: 16px;
	background: var(--hsw-surface); border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius);
}
.hsw .hsw-cart--cards.hsw-cart--no-thumb .hsw-item { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "info remove" "price price" "qty subtotal"; }
.hsw .hsw-cart--cards .hsw-item__thumb { grid-area: thumb; align-self: start; }
.hsw .hsw-cart--cards .hsw-item__info { grid-area: info; }
.hsw .hsw-cart--cards .hsw-item__price { grid-area: price; font-size: .9em; }
.hsw .hsw-cart--cards .hsw-item__qty { grid-area: qty; justify-content: flex-start; margin-top: 6px; }
.hsw .hsw-cart--cards .hsw-item__subtotal { grid-area: subtotal; margin-top: 6px; }
.hsw .hsw-cart--cards .hsw-item__remove { grid-area: remove; align-self: start; }

.hsw .hsw-cart__actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* summary */
.hsw .hsw-cart__summary { min-width: 0; }
.hsw .hsw-summary { display: grid; gap: 16px; padding: 24px; background: var(--hsw-soft); border-radius: var(--hsw-radius); }
.hsw .hsw-summary__title { margin: 0; font-size: 1.15em; font-weight: 700; color: inherit; }
.hsw .hsw-totals { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--hsw-border); }
.hsw .hsw-summary__title + .hsw-totals { border-top: 0; padding-top: 0; }
.hsw .hsw-totals__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hsw .hsw-totals__label { color: var(--hsw-muted); }
.hsw .hsw-totals__value { text-align: right; font-weight: 600; }
.hsw .hsw-totals__row--coupon .hsw-totals__value { color: var(--hsw-success); }
.hsw .hsw-totals__row--total { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--hsw-border); font-size: 1.15em; align-items: baseline; }
.hsw .hsw-totals__row--total .hsw-totals__label { color: inherit; font-weight: 700; }
.hsw .hsw-totals__row--total .hsw-totals__value { font-weight: 800; }
.hsw .hsw-totals__row--total small { display: block; font-size: .65em; font-weight: 400; color: var(--hsw-muted); }
.hsw .hsw-ship { flex-direction: column; gap: 6px; }
.hsw .hsw-ship__body { display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 100%; text-align: left; font-weight: 400; }
.hsw .hsw-ship__list { display: grid; gap: 6px; }
.hsw .hsw-ship__opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius); background: var(--hsw-surface); cursor: pointer; margin: 0; font-weight: 400; }
.hsw .hsw-ship__opt:has(input:checked) { border-color: var(--hsw-accent); }
.hsw .hsw-ship__opt input { margin: 0; accent-color: var(--hsw-accent); }
.hsw .hsw-ship__single { font-weight: 600; }
.hsw .hsw-ship__msg, .hsw .hsw-ship__dest { font-size: .86em; color: var(--hsw-muted); }
.hsw .hsw-ship__dest strong { color: var(--hsw-text); font-weight: 600; }
.hsw .hsw-calc { display: grid; gap: 8px; }
.hsw .hsw-calc__state:empty { display: none; }
.hsw .hsw-coupon__form { display: flex; gap: 8px; margin-top: 8px; }
.hsw .hsw-coupon__toggle + .hsw-coupon__form { margin-top: 10px; }
.hsw .hsw-coupon__form .hsw-input { flex: 1; min-width: 0; }
.hsw .hsw-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border: 1px dashed var(--hsw-border); border-radius: 999px; background: var(--hsw-surface); color: var(--hsw-text); font-size: .8em; font-weight: 600; letter-spacing: .04em; }
.hsw .hsw-chip .hsw-ico { width: 14px; height: 14px; }
.hsw .hsw-coupon__remove { display: grid; place-items: center; padding: 2px; margin: 0; min-height: 0; background: none; border: 0; border-radius: 50%; color: var(--hsw-muted); cursor: pointer; box-shadow: none; }
.hsw .hsw-coupon__remove:hover { color: var(--hsw-danger); background: none; }
.hsw .hsw-checkout { padding: 1em 1.4em; font-size: 1.04em; }
.hsw .hsw-checkout:hover .hsw-ico { transform: translateX(3px); }
.hsw .hsw-summary__extra:empty { display: none; }
.hsw .hsw-summary__trust { display: flex; justify-content: center; align-items: flex-start; gap: 8px; font-size: .85em; color: var(--hsw-muted); text-align: center; }
.hsw .hsw-summary__trust p { margin: 0; }
.hsw .hsw-demo-note { margin: 0; font-size: .8em; font-style: italic; color: var(--hsw-muted); }

/* empty cart */
.hsw .hsw-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px 24px; text-align: center; background: var(--hsw-soft); border-radius: var(--hsw-radius); }
.hsw .hsw-empty__icon { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--hsw-surface); color: var(--hsw-muted); }
.hsw .hsw-empty__icon .hsw-ico { width: 40px; height: 40px; }
/* v1.2.4: own picture in the empty cart */
.hsw .hsw-empty__img { display: flex; justify-content: center; }
.hsw .hsw-empty__img img { display: block; width: 220px; max-width: 100%; height: auto; }
.hsw .hsw-mc__empty .hsw-empty__img img { width: 140px; }
.hsw .hsw-empty__title { margin: 0; font-size: 1.4em; color: inherit; }
.hsw .hsw-empty__text { max-width: 440px; color: var(--hsw-muted); }
.hsw .hsw-empty__text p { margin: 0; }

/* ---------- Free-shipping bar ---------- */
.hsw .hsw-fs { --hsw-fs-a: var(--hsw-accent); --hsw-fs-b: var(--hsw-accent); display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius); background: var(--hsw-surface); }
.hsw .hsw-fs.is-done { --hsw-fs-a: var(--hsw-success); --hsw-fs-b: var(--hsw-success); }
.hsw .hsw-fs__msg { display: flex; align-items: center; gap: 8px; font-size: .92em; }
.hsw .hsw-fs__msg .amount { font-weight: 700; }
.hsw .hsw-fs.is-done .hsw-fs__msg { color: var(--hsw-success); font-weight: 600; }
.hsw .hsw-fs__track { height: 8px; overflow: hidden; border-radius: 99px; background: var(--hsw-soft); }
.hsw .hsw-fs__fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--hsw-fs-a), var(--hsw-fs-b)); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.hsw .hsw-fs__amounts { display: flex; justify-content: space-between; font-size: .8em; color: var(--hsw-muted); }
.hsw .hsw-fs--missing { font-size: .85em; color: var(--hsw-muted); border-style: dashed; }

/* ---------- Product suggestions ---------- */
.hsw .hsw-cart .hsw-cross { margin-top: calc(var(--hsw-gap) * 2); }
.hsw .hsw-cross__title { margin: 0 0 16px; font-size: 1.2em; color: inherit; }
.hsw .hsw-cross__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.hsw .hsw-cross--none { font-size: .85em; color: var(--hsw-muted); }
.hsw .hsw-pcard { display: flex; flex-direction: column; overflow: hidden; background: var(--hsw-surface); border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius); transition: box-shadow .2s, transform .2s; }
.hsw .hsw-pcard:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.hsw .hsw-pcard__img { display: block; background: var(--hsw-soft); }
.hsw .hsw-pcard__img img { display: block; width: 100%; height: auto; }
.hsw .hsw-pcard__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 12px; }
.hsw .hsw-pcard__name { color: inherit; font-weight: 600; line-height: 1.3; text-decoration: none; }
.hsw .hsw-pcard__name:hover { text-decoration: underline; }
.hsw .hsw-pcard__price { font-size: .92em; color: var(--hsw-muted); }
.hsw .hsw-pcard__btn { margin-top: auto; padding: .55em 1em; font-size: .86em; }

/* ---------- Mini cart: icon ---------- */
.hsw.hsw-mcw { position: relative; display: flex; }
.hsw .hsw-mc-toggle { --hsw-icon: 24px; position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 6px; color: var(--hsw-text); text-decoration: none; border-radius: var(--hsw-radius); transition: color .2s, background-color .2s; }
.hsw .hsw-mc-toggle__icon { position: relative; display: inline-flex; font-size: var(--hsw-icon); line-height: 1; }
.hsw .hsw-mc-toggle__icon svg { width: var(--hsw-icon); height: var(--hsw-icon); }
.hsw .hsw-mc-toggle__label, .hsw .hsw-mc-toggle__subtotal { font-weight: 600; }
.hsw .hsw-count {
	--hsw-badge: 18px; --hsw-badge-x: -8px; --hsw-badge-y: -6px;
	position: absolute; top: var(--hsw-badge-y); right: var(--hsw-badge-x);
	min-width: var(--hsw-badge); height: var(--hsw-badge); padding: 0 5px;
	border-radius: 999px; background: var(--hsw-accent); color: var(--hsw-accent-text);
	font-size: 11px; font-weight: 700; line-height: var(--hsw-badge); text-align: center;
}
.hsw .hsw-count.is-zero { display: none; }
.hsw .hsw-count.is-bump { animation: hsw-bump .45s ease; }

/* ---------- Mini cart: drawer / dropdown ---------- */
.hsw.hsw-mcd { display: block; --hsw-panel-w: 400px; --hsw-drop-gap: 10px; --hsw-mc-thumb: 64px; }
.hsw.hsw-mcd--drawer { position: fixed; inset: 0; z-index: 99999; visibility: hidden; pointer-events: none; transition: visibility 0s .35s; }
.hsw.hsw-mcd--drawer.is-open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.hsw.hsw-mcd--drawer .hsw-mcd__overlay { position: absolute; inset: 0; background: rgba(15, 15, 20, .45); opacity: 0; transition: opacity .3s; }
.hsw.hsw-mcd--drawer.is-open .hsw-mcd__overlay { opacity: 1; }
.hsw.hsw-mcd--drawer .hsw-mcd__panel {
	position: absolute; top: 0; bottom: 0; right: 0; width: min(var(--hsw-panel-w), 100vw);
	display: flex; flex-direction: column;
	background: var(--hsw-surface); box-shadow: -12px 0 40px rgba(0,0,0,.16);
	transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.hsw.hsw-mcd--drawer.hsw-mcd--left .hsw-mcd__panel { right: auto; left: 0; transform: translateX(-100%); box-shadow: 12px 0 40px rgba(0,0,0,.16); }
.hsw.hsw-mcd--drawer.is-open .hsw-mcd__panel { transform: none; }
.hsw.hsw-mcd--dropdown { position: absolute; top: 100%; right: 0; z-index: 9999; padding-top: var(--hsw-drop-gap); visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
.hsw.hsw-mcd--dropdown.hsw-mcd--left { right: auto; left: 0; }
.hsw.hsw-mcd--dropdown.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
.hsw.hsw-mcd--dropdown .hsw-mcd__panel { display: flex; flex-direction: column; width: min(var(--hsw-panel-w), calc(100vw - 24px)); max-height: min(72vh, 640px); overflow: hidden; background: var(--hsw-surface); border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius); box-shadow: 0 20px 50px rgba(0,0,0,.14); }
.hsw .hsw-mcd__panel > .hsw-dyn { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.hsw .hsw-mc { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.hsw .hsw-mc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--hsw-border); }
.hsw .hsw-mc__title { margin: 0; font-size: 1.1em; font-weight: 700; color: inherit; }
.hsw .hsw-mc__title-count { color: var(--hsw-muted); font-weight: 500; }
.hsw .hsw-mc__close { display: grid; place-items: center; padding: 6px; margin: 0; min-height: 0; line-height: 0; background: none; border: 0; border-radius: 50%; color: var(--hsw-text); cursor: pointer; box-shadow: none; }
.hsw .hsw-mc__close:hover { background: var(--hsw-soft); color: var(--hsw-text); }
.hsw .hsw-mc .hsw-notices { margin: 12px 20px 0; }
.hsw .hsw-mc .hsw-fs { margin: 14px 20px 0; }
.hsw .hsw-mc__items { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px; }
.hsw .hsw-mcitem { display: grid; grid-template-columns: var(--hsw-mc-thumb) minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 0; transition: background-color .2s, opacity .2s; }
.hsw .hsw-mcitem + .hsw-mcitem { border-top: 1px solid var(--hsw-border); }
.hsw .hsw-mcitem.is-busy { opacity: .5; }
.hsw .hsw-mcitem--no-thumb { grid-template-columns: minmax(0, 1fr) auto; }
.hsw .hsw-mcitem__thumb img { display: block; width: 100%; height: auto; border-radius: calc(var(--hsw-radius) * .7); }
.hsw .hsw-mcitem__name { font-size: .95em; font-weight: 600; line-height: 1.3; }
.hsw .hsw-mcitem__name a { color: inherit; text-decoration: none; }
.hsw .hsw-mcitem__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.hsw .hsw-mcitem .hsw-qty { --hsw-qty-h: 32px; --hsw-qty-w: 32px; }
.hsw .hsw-mcitem__price { font-size: .95em; font-weight: 600; }
.hsw .hsw-mcitem .hsw-remove { padding: 4px; }
.hsw .hsw-mc__foot { display: grid; gap: 10px; padding: 16px 20px 20px; border-top: 1px solid var(--hsw-border); background: var(--hsw-surface); }
.hsw .hsw-mc__subtotal { display: flex; justify-content: space-between; gap: 12px; font-size: 1.05em; }
.hsw .hsw-mc__note { font-size: .8em; color: var(--hsw-muted); }
.hsw .hsw-mc__note p { margin: 0; }
.hsw .hsw-mc__buttons { display: flex; gap: 8px; }
.hsw .hsw-mc__buttons .hsw-btn { flex: 1; }
.hsw .hsw-mc__empty { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 48px 24px; text-align: center; color: var(--hsw-muted); }
.hsw .hsw-mc__empty > .hsw-ico { width: 48px; height: 48px; }
.hsw .hsw-mc__empty-text p { margin: 0; }
html.hsw-lock, html.hsw-lock body { overflow: hidden; }

/* ---------- My Account ---------- */
.hsw.hsw-acc { --hsw-nav-w: 260px; --hsw-acc-gap: 32px; }
/* v1.2.3: while another account section loads in the background */
.hsw.hsw-acc.is-loading { opacity: .6; pointer-events: none; transition: opacity .15s; }
.hsw .hsw-acc__layout { display: grid; gap: var(--hsw-acc-gap); align-items: start; }
.hsw .hsw-acc__layout--left { grid-template-columns: var(--hsw-nav-w) minmax(0, 1fr); }
.hsw .hsw-acc__layout--right { grid-template-columns: minmax(0, 1fr) var(--hsw-nav-w); }
.hsw .hsw-acc__layout--right .hsw-acc__side { order: 2; }
.hsw .hsw-acc__layout--top { grid-template-columns: minmax(0, 1fr); }
.hsw .hsw-acc__side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.hsw .hsw-acc__side > * { min-width: 0; }
.hsw .hsw-acc__layout--top .hsw-acc__side { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hsw .hsw-acc__layout--top .hsw-nav { flex: 1; }
.hsw .hsw-acc__user { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--hsw-soft); border-radius: var(--hsw-radius); }
.hsw .hsw-acc__user .hsw-avatar { --hsw-av: 48px; }
.hsw .hsw-acc__user-text { min-width: 0; }
.hsw .hsw-acc__user-name { font-weight: 700; }
.hsw .hsw-acc__user-email { font-size: .85em; color: var(--hsw-muted); overflow-wrap: anywhere; }

.hsw .hsw-nav { --hsw-nav-icon: 18px; }
.hsw .hsw-nav ul { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.hsw .hsw-nav li { margin: 0; padding: 0; }
.hsw .hsw-nav a { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--hsw-radius); color: var(--hsw-text); font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.hsw .hsw-nav a:hover { background: var(--hsw-soft); }
.hsw .hsw-nav__icon { display: inline-flex; color: var(--hsw-muted); font-size: var(--hsw-nav-icon); line-height: 1; }
.hsw .hsw-nav__icon svg { width: var(--hsw-nav-icon); height: var(--hsw-nav-icon); }
.hsw .hsw-nav .is-active a { background: var(--hsw-accent); color: var(--hsw-accent-text); }
.hsw .hsw-nav .is-active .hsw-nav__icon { color: inherit; }
.hsw .hsw-nav__item--customer-logout { margin-top: 8px !important; padding-top: 8px !important; border-top: 1px solid var(--hsw-border); }
.hsw .hsw-nav__item--customer-logout a:hover { color: var(--hsw-danger); }
.hsw .hsw-nav--pills .hsw-nav a { border-radius: 999px; }
.hsw .hsw-nav--underline .hsw-nav a { border-radius: 0; }
.hsw .hsw-nav--underline .hsw-nav .is-active a { background: none; color: var(--hsw-text); box-shadow: inset 3px 0 0 var(--hsw-nav-line, var(--hsw-accent)); }
.hsw .hsw-acc__layout--top .hsw-nav ul { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.hsw .hsw-acc__layout--top .hsw-nav__item--customer-logout { margin: 0 0 0 auto !important; padding: 0 !important; border: 0; }
.hsw .hsw-acc__layout--top.hsw-nav--underline .hsw-nav .is-active a { box-shadow: inset 0 -2px 0 var(--hsw-nav-line, var(--hsw-accent)); }

.hsw .hsw-acc__main { min-width: 0; }
.hsw .hsw-acc__main > :first-child { margin-top: 0; }
.hsw .hsw-acc__main h2, .hsw .hsw-acc__main h3 { color: inherit; }

/* WooCommerce's own account pages (orders, addresses, account details) */
.hsw.hsw-wcroot .woocommerce table { width: 100%; margin: 0 0 1.5em; border: 0; border-collapse: collapse; border-radius: 0; font-size: .95em; }
.hsw.hsw-wcroot .woocommerce table th, .hsw.hsw-wcroot .woocommerce table td { padding: 12px 14px; text-align: left; vertical-align: middle; border: 0; border-bottom: 1px solid var(--hsw-border); background: none; }
.hsw.hsw-wcroot .woocommerce table thead th { background: var(--hsw-soft); color: var(--hsw-muted); font-size: .78em; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.hsw.hsw-wcroot .woocommerce table td:last-child { text-align: right; }
.hsw.hsw-wcroot .woocommerce table a:not(.button) { color: inherit; font-weight: 600; }
.hsw.hsw-wcroot .woocommerce .button, .hsw.hsw-wcroot .woocommerce button[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .7em 1.2em; margin: 2px; border: 1px solid transparent; border-radius: var(--hsw-radius);
	background: var(--hsw-accent); color: var(--hsw-accent-text);
	font: inherit; font-size: .9em; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s;
}
.hsw.hsw-wcroot .woocommerce .button:hover, .hsw.hsw-wcroot .woocommerce button[type="submit"]:hover { background: color-mix(in srgb, var(--hsw-accent) 86%, #fff); color: var(--hsw-accent-text); }
.hsw.hsw-wcroot .woocommerce .form-row input.input-text,
.hsw.hsw-wcroot .woocommerce .form-row select,
.hsw.hsw-wcroot .woocommerce .form-row textarea,
.hsw.hsw-wcroot .woocommerce input.input-text {
	width: 100%; min-height: 44px; padding: .6em .9em;
	border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius);
	background: var(--hsw-surface); color: var(--hsw-text); font: inherit; box-shadow: none;
}
.hsw.hsw-wcroot .woocommerce .form-row input.input-text:focus,
.hsw.hsw-wcroot .woocommerce .form-row select:focus,
.hsw.hsw-wcroot .woocommerce .form-row textarea:focus { border-color: var(--hsw-accent); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--hsw-accent) 15%, transparent); }
.hsw.hsw-wcroot .woocommerce .form-row label { font-size: .9em; font-weight: 600; }
.hsw.hsw-wcroot .woocommerce fieldset { margin: 1.5em 0; padding: 20px; border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius); }
.hsw.hsw-wcroot .woocommerce legend { padding: 0 8px; font-weight: 700; }
.hsw.hsw-wcroot .woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.hsw.hsw-wcroot .woocommerce-Addresses::before, .hsw.hsw-wcroot .woocommerce-Addresses::after { display: none; }
.hsw.hsw-wcroot .woocommerce-Addresses .woocommerce-Address { float: none; width: auto; max-width: none; margin: 0; padding: 20px; background: var(--hsw-surface); border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius); }
.hsw.hsw-wcroot .woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.hsw.hsw-wcroot .woocommerce-Address-title::before, .hsw.hsw-wcroot .woocommerce-Address-title::after { display: none; }
.hsw.hsw-wcroot .woocommerce-Address-title h2, .hsw.hsw-wcroot .woocommerce-Address-title h3 { margin: 0; font-size: 1.05em; }
.hsw.hsw-wcroot .woocommerce-Address-title .edit { float: none; font-size: .88em; }
.hsw.hsw-acc address { font-style: normal; line-height: 1.7; }
.hsw.hsw-acc mark { background: var(--hsw-soft); color: inherit; padding: 1px 6px; border-radius: 4px; font-weight: 600; }

.hsw .hsw-status { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--hsw-soft); font-size: .8em; font-weight: 600; white-space: nowrap; }
.hsw .hsw-status--completed { background: color-mix(in srgb, var(--hsw-success) 12%, var(--hsw-surface)); color: var(--hsw-success); }
.hsw .hsw-status--processing { background: color-mix(in srgb, var(--hsw-accent) 10%, var(--hsw-surface)); color: var(--hsw-accent); }
.hsw .hsw-status--on-hold, .hsw .hsw-status--pending { background: color-mix(in srgb, var(--hsw-warning) 12%, var(--hsw-surface)); color: var(--hsw-warning); }
.hsw .hsw-status--cancelled, .hsw .hsw-status--failed, .hsw .hsw-status--refunded { background: color-mix(in srgb, var(--hsw-danger) 10%, var(--hsw-surface)); color: var(--hsw-danger); }

/* dashboard */
.hsw .hsw-dash { display: grid; gap: 24px; }
.hsw .hsw-dash__title { margin: 0; font-size: 1.6em; line-height: 1.2; }
.hsw .hsw-dash__text { color: var(--hsw-muted); }
.hsw .hsw-dash__text p:first-child { margin-top: 0; }
.hsw .hsw-dash__text p:last-child { margin-bottom: 0; }
.hsw .hsw-dash__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.hsw .hsw-stat { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--hsw-soft); border-radius: var(--hsw-radius); }
.hsw .hsw-stat__num { font-size: 1.5em; font-weight: 700; line-height: 1.2; }
.hsw .hsw-stat__label { font-size: .8em; letter-spacing: .05em; text-transform: uppercase; color: var(--hsw-muted); }
.hsw .hsw-dash__links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.hsw .hsw-qlink { display: flex; align-items: flex-start; gap: 14px; padding: 16px; background: var(--hsw-surface); border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius); color: inherit; text-decoration: none; transition: border-color .2s, background-color .2s, transform .2s; }
.hsw .hsw-qlink:hover { border-color: var(--hsw-text); transform: translateY(-1px); }
.hsw .hsw-qlink__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; background: var(--hsw-soft); border-radius: calc(var(--hsw-radius) * .8); font-size: 20px; line-height: 1; }
.hsw .hsw-qlink__icon svg { width: 20px; height: 20px; }
.hsw .hsw-qlink__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hsw .hsw-qlink__title { font-weight: 600; }
.hsw .hsw-qlink__desc { font-size: .85em; color: var(--hsw-muted); }
.hsw .hsw-dash__subtitle { margin: 0 0 12px; font-size: 1.15em; }
.hsw .hsw-dash__none { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; background: var(--hsw-soft); border-radius: var(--hsw-radius); }
.hsw .hsw-dash__none p { margin: 0; color: var(--hsw-muted); }
.hsw .hsw-orders a:not(.hsw-btn) { font-weight: 600; color: inherit; }

/* logged-out forms */
.hsw .hsw-acc__guest--tabs, .hsw .hsw-acc__guest--login, .hsw .hsw-acc__guest--single { max-width: 460px; margin-inline: auto; }
.hsw .hsw-acc__forms { display: grid; gap: 24px; }
.hsw .hsw-acc__guest--columns .hsw-acc__forms { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.hsw .hsw-acc__intro, .hsw .hsw-acc__reg-intro { margin-bottom: 16px; color: var(--hsw-muted); }
.hsw .hsw-acc__intro p, .hsw .hsw-acc__reg-intro p { margin: 0 0 .5em; }
.hsw .hsw-acc__card { padding: 28px; background: var(--hsw-surface); border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius); }
.hsw .hsw-acc__card-title { margin: 0 0 18px; font-size: 1.35em; color: inherit; }
.hsw .hsw-tabs__list { display: flex; gap: 4px; margin-bottom: 16px; padding: 4px; background: var(--hsw-soft); border-radius: calc(var(--hsw-radius) + 4px); }
.hsw .hsw-tabs__btn { flex: 1; margin: 0; padding: 10px 12px; min-height: 0; background: transparent; border: 0; border-radius: var(--hsw-radius); box-shadow: none; color: var(--hsw-muted); font: inherit; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; }
.hsw .hsw-tabs__btn:hover { background: transparent; color: var(--hsw-text); }
.hsw .hsw-tabs__btn[aria-selected="true"] { background: var(--hsw-surface); color: var(--hsw-text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.hsw .hsw-form { display: grid; gap: 14px; margin: 0; }
.hsw .hsw-field { display: grid; gap: 6px; margin: 0; }
.hsw .hsw-field label { font-size: .9em; font-weight: 600; }
.hsw .required { color: var(--hsw-danger); border: 0; text-decoration: none; }
.hsw .hsw-form__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: .9em; }
.hsw .hsw-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; cursor: pointer; }
.hsw .hsw-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--hsw-accent); }
.hsw .hsw-form__hint, .hsw .hsw-form .woocommerce-privacy-policy-text { margin: 0; font-size: .82em; color: var(--hsw-muted); }
.hsw .hsw-form .woocommerce-privacy-policy-text p { margin: 0; }
.hsw .hsw-pw { position: relative; display: block; }
.hsw .hsw-pw .hsw-input { padding-right: 46px; }
.hsw .hsw-pw__toggle { position: absolute; top: 50%; right: 4px; display: grid; place-items: center; padding: 8px; margin: 0; min-height: 0; line-height: 0; transform: translateY(-50%); background: none; border: 0; border-radius: var(--hsw-radius); box-shadow: none; color: var(--hsw-muted); cursor: pointer; }
.hsw .hsw-pw__toggle:hover, .hsw .hsw-pw__toggle[aria-pressed="true"] { color: var(--hsw-text); background: none; }

/* ---------- Account link ---------- */
/* avatar: initials underneath, picture on top (transparent when the customer has none) */
.hsw .hsw-avatar { --hsw-av: 32px; position: relative; display: inline-grid; place-items: center; flex: none; width: var(--hsw-av); height: var(--hsw-av); overflow: hidden; border-radius: 50%; background: var(--hsw-accent); color: var(--hsw-accent-text); font-size: calc(var(--hsw-av) * .38); font-weight: 700; line-height: 1; letter-spacing: .02em; transition: box-shadow .2s; }
.hsw .hsw-avatar__initials { user-select: none; }
/* strong selector: themes often set img { height: auto; max-width: 100% } */
.hsw .hsw-avatar .hsw-avatar__img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; object-fit: cover; object-position: center; border-radius: inherit; box-shadow: none; }
.hsw .hsw-avatar > .hsw-ico { width: 60%; height: 60%; }

.hsw.hsw-alink { --hsw-drop-gap: 8px; position: relative; display: inline-flex; }
.hsw .hsw-alink__toggle { --hsw-icon: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 4px; color: var(--hsw-text); font-weight: 600; text-decoration: none; border-radius: var(--hsw-radius); transition: background-color .2s, color .2s; }
.hsw .hsw-alink__icon { display: inline-flex; font-size: var(--hsw-icon); line-height: 1; }
.hsw .hsw-alink__icon svg { width: var(--hsw-icon); height: var(--hsw-icon); }
.hsw .hsw-alink__toggle > .hsw-ico--chevron { width: 14px; height: 14px; transition: transform .2s; }
.hsw.hsw-alink.is-open .hsw-alink__toggle > .hsw-ico--chevron, .hsw.hsw-alink.is-hover:hover .hsw-alink__toggle > .hsw-ico--chevron { transform: rotate(180deg); }
.hsw .hsw-alink__menu { display: block; position: absolute; top: calc(100% + var(--hsw-drop-gap)); right: 0; z-index: 9999; width: 260px; max-width: calc(100vw - 24px); padding: 6px; background: var(--hsw-surface); border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius); box-shadow: 0 16px 40px rgba(0,0,0,.12); visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
.hsw .hsw-alink__menu::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: calc(var(--hsw-drop-gap) + 2px); }
.hsw.hsw-alink--left .hsw-alink__menu { right: auto; left: 0; }
.hsw.hsw-alink--center .hsw-alink__menu { right: auto; left: 50%; transform: translate(-50%, 6px); }
.hsw.hsw-alink.is-open .hsw-alink__menu, .hsw.hsw-alink.is-hover:hover .hsw-alink__menu, .hsw.hsw-alink:focus-within .hsw-alink__menu { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
.hsw.hsw-alink.is-closed .hsw-alink__menu { visibility: hidden !important; opacity: 0 !important; }
.hsw.hsw-alink--center.is-open .hsw-alink__menu, .hsw.hsw-alink--center.is-hover:hover .hsw-alink__menu, .hsw.hsw-alink--center:focus-within .hsw-alink__menu { transform: translateX(-50%); }
.hsw .hsw-alink__head { display: flex; align-items: center; gap: 12px; margin: -6px -6px 6px; padding: 16px; border-bottom: 1px solid var(--hsw-border); border-radius: var(--hsw-radius) var(--hsw-radius) 0 0; background: var(--hsw-soft); }
.hsw .hsw-alink__head .hsw-avatar { --hsw-av: 44px; }
.hsw .hsw-alink__who { min-width: 0; }
.hsw .hsw-alink__name { font-weight: 700; line-height: 1.3; }
.hsw .hsw-alink__email { font-size: .82em; color: var(--hsw-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hsw .hsw-alink__list { margin: 0; padding: 0; list-style: none; }
.hsw .hsw-alink__list li { margin: 0; }
.hsw .hsw-alink__list.has-sep .hsw-alink__item--customer-logout { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--hsw-border); }
.hsw .hsw-alink__list a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: var(--hsw-text); text-decoration: none; border-radius: calc(var(--hsw-radius) * .7); font-size: .92em; white-space: nowrap; }
.hsw .hsw-alink__list a:hover { background: var(--hsw-soft); }
.hsw .hsw-alink__list .hsw-ico { width: 16px; height: 16px; color: var(--hsw-muted); }
.hsw .hsw-alink__item--customer-logout a:hover { color: var(--hsw-danger); }
.hsw .hsw-alink__guest { display: grid; gap: 10px; padding: 10px; text-align: center; }
.hsw .hsw-alink__note { margin: 0; font-size: .85em; color: var(--hsw-muted); }
.hsw .hsw-alink__register { justify-content: center; }

/* ---------- Trust badges ---------- */
.hsw.hsw-trust { display: flex; flex-wrap: wrap; gap: 24px; }
.hsw.hsw-trust--column { flex-direction: column; }
.hsw.hsw-trust--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hsw .hsw-badge { --hsw-icon: 28px; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.hsw.hsw-trust--icon-top .hsw-badge { flex-direction: column; text-align: center; }
.hsw .hsw-badge__icon { display: inline-flex; flex: none; color: var(--hsw-text); font-size: var(--hsw-icon); line-height: 1; }
.hsw .hsw-badge__icon svg { width: var(--hsw-icon); height: var(--hsw-icon); }
.hsw .hsw-badge__body { display: flex; flex-direction: column; gap: 2px; }
.hsw .hsw-badge__title { font-weight: 600; line-height: 1.3; }
.hsw .hsw-badge__text { font-size: .85em; color: var(--hsw-muted); }

/* ---------- Shared: WooCommerce notices inside our widgets ---------- */
.hsw.hsw-wcroot .woocommerce .woocommerce-error, .hsw.hsw-wcroot .woocommerce .woocommerce-message, .hsw.hsw-wcroot .woocommerce .woocommerce-info {
	margin: 0 0 16px; padding: 12px 16px; border: 0; border-radius: var(--hsw-radius); list-style: none;
	background: var(--hsw-soft); color: var(--hsw-text); font-size: .93em; line-height: 1.5;
}
.hsw.hsw-wcroot .woocommerce .woocommerce-error { background: color-mix(in srgb, var(--hsw-danger) 9%, var(--hsw-surface)); color: color-mix(in srgb, var(--hsw-danger) 85%, var(--hsw-text)); }
.hsw.hsw-wcroot .woocommerce .woocommerce-message { background: color-mix(in srgb, var(--hsw-success) 10%, var(--hsw-surface)); color: color-mix(in srgb, var(--hsw-success) 85%, var(--hsw-text)); }
.hsw.hsw-wcroot .woocommerce .woocommerce-error::before, .hsw.hsw-wcroot .woocommerce .woocommerce-message::before, .hsw.hsw-wcroot .woocommerce .woocommerce-info::before { display: none; }
.hsw.hsw-wcroot .woocommerce .woocommerce-error li { margin: 0; }
.hsw.hsw-wcroot .woocommerce .woocommerce-error a, .hsw.hsw-wcroot .woocommerce .woocommerce-info a, .hsw.hsw-wcroot .woocommerce .woocommerce-message a { color: inherit; font-weight: 600; }
.hsw.hsw-wcroot .woocommerce .select2-container .select2-selection--single { height: 44px; border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius); background: var(--hsw-surface); }
.hsw.hsw-wcroot .woocommerce .select2-container .select2-selection--single .select2-selection__rendered { line-height: 42px; padding-left: .9em; color: var(--hsw-text); }
.hsw.hsw-wcroot .woocommerce .select2-container .select2-selection--single .select2-selection__arrow { height: 42px; }
.hsw.hsw-wcroot .woocommerce .form-row { margin: 0 0 14px; padding: 0; }
.hsw.hsw-wcroot .woocommerce .form-row label { display: block; margin-bottom: 6px; line-height: 1.4; }
.hsw.hsw-wcroot .woocommerce .form-row .required { color: var(--hsw-danger); text-decoration: none; border: 0; }
.hsw.hsw-wcroot .woocommerce .form-row .optional { color: var(--hsw-muted); font-weight: 400; }
.hsw.hsw-wcroot .woocommerce .form-row.woocommerce-invalid input.input-text, .hsw.hsw-wcroot .woocommerce .form-row.woocommerce-invalid select { border-color: var(--hsw-danger); }
.hsw.hsw-wcroot .woocommerce .form-row.woocommerce-validated input.input-text { border-color: var(--hsw-border); }
.hsw.hsw-wcroot .woocommerce .form-row textarea { min-height: 96px; }
.hsw.hsw-wcroot input[type="checkbox"], .hsw.hsw-wcroot input[type="radio"] { accent-color: var(--hsw-accent); }

/* ---------- Checkout ---------- */
.hsw.hsw-co { --hsw-sum-w: 420px; --hsw-co-thumb: 64px; }
.hsw.hsw-co .woocommerce::after { content: ""; display: table; clear: both; }
.hsw .hsw-co__bars { margin-bottom: 14px; }
.hsw .hsw-co__bars .woocommerce-form-login-toggle .woocommerce-info,
.hsw .hsw-co__bar { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 16px; background: var(--hsw-soft); border: 0; border-radius: var(--hsw-radius); color: var(--hsw-text); font-size: .93em; }
.hsw .hsw-co__bar .hsw-ico { color: var(--hsw-muted); }
.hsw .hsw-co__bar a, .hsw .hsw-co__bars .showlogin { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hsw.hsw-co form.woocommerce-form-login, .hsw.hsw-co form.checkout_coupon { margin: 10px 0 0; padding: 18px; border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius); background: var(--hsw-surface); }
.hsw.hsw-co form.checkout_coupon { display: flex; gap: 8px; }
.hsw.hsw-co form.checkout_coupon .hsw-input { flex: 1; min-width: 0; }
.hsw .hsw-co__grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--hsw-sum-w); gap: calc(var(--hsw-gap) * 1.8); align-items: start; }
.hsw .hsw-co--sum-left .hsw-co__grid { grid-template-columns: var(--hsw-sum-w) minmax(0, 1fr); }
.hsw .hsw-co--sum-left .hsw-co__side { order: -1; }
.hsw .hsw-co--one .hsw-co__grid { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin-inline: auto; }
.hsw .hsw-co--sticky:not(.hsw-co--one) .hsw-co__side { position: sticky; top: var(--hsw-sticky-top, 24px); }
.hsw .hsw-co__main { display: grid; gap: var(--hsw-gap); min-width: 0; }
.hsw .hsw-co__details { display: grid; gap: var(--hsw-gap); }
.hsw .hsw-co__section { padding: 24px; background: var(--hsw-surface); border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius); min-width: 0; }
.hsw .hsw-co__heading { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 1.15em; font-weight: 700; color: inherit; }
.hsw .hsw-co__num { --hsw-num: 28px; display: inline-grid; place-items: center; flex: none; width: var(--hsw-num); height: var(--hsw-num); border-radius: 50%; background: var(--hsw-accent); color: var(--hsw-accent-text); font-size: .8em; }
.hsw .hsw-co--no-wc-titles .woocommerce-billing-fields > h3, .hsw .hsw-co--no-wc-titles .woocommerce-additional-fields > h3 { display: none; }
.hsw.hsw-co .woocommerce-billing-fields__field-wrapper, .hsw.hsw-co .woocommerce-shipping-fields__field-wrapper, .hsw.hsw-co .woocommerce-additional-fields__field-wrapper { display: flex; flex-wrap: wrap; justify-content: space-between; }
.hsw.hsw-co .woocommerce .form-row { width: 100%; float: none; }
.hsw.hsw-co .woocommerce .form-row-first, .hsw.hsw-co .woocommerce .form-row-last { width: calc(50% - 7px); }
.hsw.hsw-co #ship-to-different-address { margin: 4px 0 14px; font-size: 1em; }
.hsw.hsw-co #ship-to-different-address label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius); font-weight: 600; cursor: pointer; }
.hsw.hsw-co #ship-to-different-address input { margin: 0; width: 18px; height: 18px; }
.hsw.hsw-co .woocommerce-account-fields { margin-top: 6px; }
.hsw.hsw-co .woocommerce-account-fields label.checkbox, .hsw.hsw-co .woocommerce-form__label-for-checkbox { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.hsw .hsw-co__back { justify-self: start; }

.hsw .hsw-co__side { display: grid; gap: var(--hsw-gap); min-width: 0; }
.hsw.hsw-co #order_review { display: grid; gap: var(--hsw-gap); }
.hsw .hsw-co__summary { padding: 24px; background: var(--hsw-soft); border-radius: var(--hsw-radius); }
.hsw .hsw-co__summary-title { margin: 0 0 16px; font-size: 1.15em; font-weight: 700; color: inherit; }
.hsw .hsw-co__sumtoggle { display: none; }
.hsw .hsw-co-review__items { display: grid; gap: 14px; padding-bottom: 16px; }
.hsw .hsw-co-item { display: grid; grid-template-columns: var(--hsw-co-thumb) minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.hsw .hsw-co-item--no-thumb { grid-template-columns: minmax(0, 1fr) auto; }
.hsw .hsw-co-item__thumb { position: relative; }
.hsw .hsw-co-item__thumb img { display: block; width: 100%; height: auto; border-radius: calc(var(--hsw-radius) * .8); background: var(--hsw-surface); border: 1px solid var(--hsw-border); }
.hsw .hsw-co-item__qty { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--hsw-muted); color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }
.hsw .hsw-co-item__name { font-weight: 600; line-height: 1.35; }
.hsw .hsw-co-item__name .product-quantity { color: var(--hsw-muted); font-weight: 600; }
.hsw .hsw-co-item__total { font-weight: 600; text-align: right; }
.hsw.hsw-co .hsw-co-review .hsw-totals { border-top: 1px solid var(--hsw-border); }

/* WooCommerce's payment box, restyled (ids needed to beat WooCommerce's own CSS) */
.hsw.hsw-co #payment { padding: 0; background: none; border-radius: 0; }
.hsw.hsw-co #payment ul.payment_methods { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; border: 0; list-style: none; }
.hsw.hsw-co #payment ul.payment_methods::before, .hsw.hsw-co #payment ul.payment_methods::after { display: none; }
.hsw.hsw-co #payment ul.payment_methods li { margin: 0; padding: 14px 16px; background: var(--hsw-surface); border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius); line-height: 1.4; transition: border-color .2s, background-color .2s; }
.hsw.hsw-co #payment ul.payment_methods li:has(> input:checked) { border-color: var(--hsw-accent); box-shadow: 0 0 0 1px var(--hsw-accent); }
.hsw.hsw-co #payment ul.payment_methods li > input { margin: 0 8px 0 0; vertical-align: middle; accent-color: var(--hsw-accent); }
.hsw.hsw-co #payment ul.payment_methods li > label { display: inline; font-weight: 600; cursor: pointer; }
.hsw.hsw-co #payment ul.payment_methods li img { max-height: 24px; margin: 0 0 0 6px; vertical-align: middle; float: none; }
.hsw.hsw-co #payment div.payment_box { margin: 12px 0 0; padding: 12px 14px; background: var(--hsw-soft); color: var(--hsw-muted); border-radius: calc(var(--hsw-radius) * .8); font-size: .9em; }
.hsw.hsw-co #payment div.payment_box::before { display: none; }
.hsw.hsw-co #payment div.payment_box p:last-child { margin-bottom: 0; }
.hsw.hsw-co #payment div.form-row.place-order { margin: 0; padding: 0; }
.hsw.hsw-co #payment #place_order {
	float: none; display: flex; align-items: center; justify-content: center; width: 100%; margin: 12px 0 0;
	padding: 1em 1.4em; border: 1px solid transparent; border-radius: var(--hsw-radius);
	background: var(--hsw-accent); color: var(--hsw-accent-text); font: inherit; font-size: 1.05em; font-weight: 700; line-height: 1.2; cursor: pointer;
	transition: background-color .2s, transform .2s, box-shadow .2s;
}
.hsw.hsw-co #payment #place_order:hover { background: color-mix(in srgb, var(--hsw-accent) 86%, #fff); }
.hsw.hsw-co #payment .woocommerce-terms-and-conditions-wrapper, .hsw.hsw-co #payment .woocommerce-privacy-policy-text { font-size: .82em; color: var(--hsw-muted); }
.hsw.hsw-co #payment .woocommerce-privacy-policy-text p { margin: 0 0 8px; }
.hsw .hsw-co__trust { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; font-size: .85em; color: var(--hsw-muted); text-align: center; }
.hsw.hsw-co .blockUI.blockOverlay { border-radius: var(--hsw-radius); }

/* steps */
.hsw .hsw-co-steps { --hsw-step-line: var(--hsw-border); display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.hsw .hsw-co-steps li { position: relative; display: flex; flex: 1; align-items: center; gap: 8px; margin: 0; color: var(--hsw-muted); }
.hsw .hsw-co-steps li:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--hsw-step-line); border-radius: 2px; }
.hsw .hsw-co-steps li.is-done:not(:last-child)::after { background: var(--hsw-accent); }
.hsw .hsw-co-steps__btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px; margin: 0; min-height: 0; background: none; border: 0; border-radius: var(--hsw-radius); box-shadow: none; color: inherit; font: inherit; font-weight: 600; cursor: default; white-space: nowrap; }
.hsw .hsw-co-steps li.is-done .hsw-co-steps__btn { cursor: pointer; }
.hsw .hsw-co-steps li.is-done .hsw-co-steps__btn:hover { background: var(--hsw-soft); color: var(--hsw-text); }
.hsw .hsw-co-steps__dot { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--hsw-border); border-radius: 50%; background: var(--hsw-surface); font-size: .8em; }
.hsw .hsw-co-steps li.is-current { color: var(--hsw-text); }
.hsw .hsw-co-steps li.is-current .hsw-co-steps__dot, .hsw .hsw-co-steps li.is-done .hsw-co-steps__dot { background: var(--hsw-accent); border-color: var(--hsw-accent); color: var(--hsw-accent-text); }
.hsw .hsw-co__step-msg { padding: 12px 16px; border-radius: var(--hsw-radius); background: color-mix(in srgb, var(--hsw-danger) 9%, var(--hsw-surface)); color: color-mix(in srgb, var(--hsw-danger) 85%, var(--hsw-text)); font-size: .93em; }
.hsw .hsw-co__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; }
.hsw .hsw-co__nav .hsw-btn--primary:only-child { margin-left: auto; }
.hsw [data-hsw-steps] .hsw-co__section { display: none; }
.hsw [data-hsw-steps][data-current="1"] .hsw-co__section[data-step="1"],
.hsw [data-hsw-steps][data-current="2"] .hsw-co__section[data-step="2"],
.hsw [data-hsw-steps][data-current="3"] .hsw-co__section[data-step="3"] { display: block; animation: hsw-in .25s ease; }
.hsw [data-hsw-steps]:not([data-current="3"]) .hsw-co__payment { display: none; }
.hsw [data-hsw-steps]:not([data-current="1"]) .hsw-co__back { display: none; }
.hsw .hsw-co-recap { display: grid; border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius); }
.hsw .hsw-co-recap__row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 16px; font-size: .93em; }
.hsw .hsw-co-recap__row + .hsw-co-recap__row { border-top: 1px solid var(--hsw-border); }
.hsw .hsw-co-recap__label { color: var(--hsw-muted); }
.hsw .hsw-co-recap__edit { font-size: .85em; }

/* ---------- Thank-you ---------- */
.hsw .hsw-ty { display: grid; gap: var(--hsw-gap); max-width: 860px; margin-inline: auto; }
.hsw .hsw-ty__hero { display: grid; justify-items: center; gap: 10px; padding: 36px 24px; text-align: center; background: var(--hsw-soft); border-radius: var(--hsw-radius); }
.hsw .hsw-ty__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--hsw-success) 14%, var(--hsw-surface)); color: var(--hsw-success); }
.hsw .hsw-ty__icon .hsw-ico { width: 30px; height: 30px; stroke-width: 2.4; }
.hsw .hsw-ty__hero.is-failed .hsw-ty__icon { background: color-mix(in srgb, var(--hsw-danger) 12%, var(--hsw-surface)); color: var(--hsw-danger); }
.hsw .hsw-ty__title { margin: 0; font-size: 1.7em; line-height: 1.2; color: inherit; }
.hsw .hsw-ty__text { max-width: 560px; color: var(--hsw-muted); }
.hsw .hsw-ty__text p { margin: 0; }
.hsw .hsw-ty__overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; overflow: hidden; background: var(--hsw-border); border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius); }
.hsw .hsw-ty__cell { display: grid; gap: 4px; padding: 14px 16px; background: var(--hsw-surface); }
.hsw .hsw-ty__cell-label { font-size: .76em; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--hsw-muted); }
.hsw .hsw-ty__cell-value { font-weight: 700; overflow-wrap: break-word; min-width: 0; }
.hsw .hsw-ty__box { padding: 22px; background: var(--hsw-surface); border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius); }
.hsw .hsw-ty__subtitle { margin: 0 0 14px; font-size: 1.05em; font-weight: 700; color: inherit; }
.hsw .hsw-ty__items { display: grid; gap: 14px; }
.hsw .hsw-ty__items .hsw-totals { margin-top: 4px; }
.hsw .hsw-ty__addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--hsw-gap); }
.hsw .hsw-ty address { font-style: normal; line-height: 1.7; }
.hsw .hsw-ty__dl { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: inherit; font-weight: 600; }
.hsw .hsw-ty__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hsw .hsw-ty__extra { padding: 20px; border: 1px dashed var(--hsw-border); border-radius: var(--hsw-radius); }
.hsw .hsw-ty__extra:empty { display: none; }
.hsw .hsw-ty__extra h2 { font-size: 1.1em; }

/* ---------- Checkout progress ---------- */
.hsw.hsw-progress { --hsw-dot: 34px; --hsw-line-w: 2px; --hsw-line: var(--hsw-border); --hsw-line-done: var(--hsw-accent); display: flex; justify-content: center; }
.hsw.hsw-progress ol { display: flex; flex: 1; max-width: 640px; margin: 0; padding: 0; list-style: none; }
.hsw.hsw-progress li { position: relative; display: flex; flex: 1; justify-content: center; margin: 0; color: var(--hsw-muted); }
.hsw.hsw-progress li:not(:first-child)::before { content: ""; position: absolute; top: calc(var(--hsw-dot) / 2 - var(--hsw-line-w) / 2); right: 50%; left: -50%; height: var(--hsw-line-w); margin: 0 calc(var(--hsw-dot) / 2 + 6px); background: var(--hsw-line); border-radius: 2px; }
.hsw.hsw-progress li.is-done + li::before, .hsw.hsw-progress li.is-current::before { background: var(--hsw-line-done); }
.hsw.hsw-progress li.is-current::before { background: var(--hsw-line-done); }
.hsw.hsw-progress li > a, .hsw.hsw-progress .hsw-progress__step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.hsw.hsw-progress--right li > a, .hsw.hsw-progress--right .hsw-progress__step { flex-direction: row; background: var(--hsw-surface); padding-right: 8px; }
.hsw.hsw-progress--hidden .hsw-progress__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hsw .hsw-progress__dot { display: grid; place-items: center; width: var(--hsw-dot); height: var(--hsw-dot); border: 2px solid var(--hsw-border); border-radius: 50%; background: var(--hsw-surface); color: var(--hsw-muted); font-size: calc(var(--hsw-dot) * .4); font-weight: 700; transition: background-color .2s; }
.hsw .hsw-progress__dot .hsw-ico { width: 50%; height: 50%; }
.hsw.hsw-progress--dot { --hsw-dot: 14px; }
.hsw .hsw-progress__label { font-size: .9em; font-weight: 600; white-space: nowrap; }
.hsw.hsw-progress li.is-current, .hsw.hsw-progress li.is-done { color: var(--hsw-text); }
.hsw.hsw-progress li.is-current .hsw-progress__dot { background: var(--hsw-accent); border-color: var(--hsw-accent); color: var(--hsw-accent-text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hsw-accent) 18%, transparent); }
.hsw.hsw-progress li.is-done .hsw-progress__dot { background: var(--hsw-accent); border-color: var(--hsw-accent); color: var(--hsw-accent-text); }
.hsw.hsw-progress li > a:hover .hsw-progress__label { text-decoration: underline; }

/* ---------- Buy button ---------- */
.hsw.hsw-buy { display: flex; align-items: center; gap: 16px; }
.hsw.hsw-buy--column { flex-direction: column; align-items: stretch; }
.hsw .hsw-buy__img { display: block; flex: none; width: 96px; }
.hsw .hsw-buy__img img { display: block; width: 100%; height: auto; border-radius: var(--hsw-radius); }
.hsw .hsw-buy__body { display: grid; gap: 8px; min-width: 0; flex: 1; }
.hsw .hsw-buy__title { font-weight: 700; font-size: 1.1em; }
.hsw .hsw-buy__price { font-weight: 700; font-size: 1.15em; }
.hsw .hsw-buy__stock { font-size: .85em; color: var(--hsw-success); }
.hsw .hsw-buy__stock.is-out { color: var(--hsw-danger); }
.hsw .hsw-buy__row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.hsw .hsw-buy__row .hsw-qty { --hsw-qty-h: 48px; }
.hsw.hsw-buy--full .hsw-buy__add, .hsw.hsw-buy--full .hsw-buy__now { flex: 1; }
.hsw .hsw-buy__add[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.hsw .hsw-buy__add.is-added { background: var(--hsw-success); border-color: var(--hsw-success); }
.hsw .hsw-buy__add.is-loading { opacity: .7; pointer-events: none; }

/* ---------- Announcement bar ---------- */
.hsw.hsw-bar { --hsw-icon: 18px; position: relative; display: flex; align-items: center; min-height: 40px; padding: 8px 44px; background: var(--hsw-accent); color: var(--hsw-accent-text); font-size: .9em; line-height: 1.4; }
.hsw.hsw-bar[hidden] { display: none; }
.hsw .hsw-bar__inner { display: flex; flex: 1; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; min-width: 0; }
.hsw .hsw-bar__msgs { display: grid; min-width: 0; }
.hsw .hsw-bar__msg { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; opacity: 0; visibility: hidden; transition: opacity .45s, transform .45s, visibility 0s .45s; }
.hsw.hsw-bar--slide .hsw-bar__msg { transform: translateY(8px); }
.hsw .hsw-bar__msg.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .45s, transform .45s; }
.hsw .hsw-bar__icon { display: inline-flex; font-size: var(--hsw-icon); }
.hsw .hsw-bar__icon svg { width: var(--hsw-icon); height: var(--hsw-icon); }
.hsw .hsw-bar__link { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.hsw .hsw-bar__close, .hsw .hsw-bar__arrow { display: grid; place-items: center; padding: 6px; margin: 0; min-height: 0; line-height: 0; background: none; border: 0; border-radius: 50%; box-shadow: none; color: inherit; opacity: .8; cursor: pointer; }
.hsw .hsw-bar__close:hover, .hsw .hsw-bar__arrow:hover { opacity: 1; background: rgba(255,255,255,.12); color: inherit; }
.hsw .hsw-bar__close { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); }
.hsw .hsw-bar__close .hsw-ico, .hsw .hsw-bar__arrow .hsw-ico { width: 16px; height: 16px; }
.hsw .hsw-bar__cd { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.hsw .hsw-bar__cd-time { display: inline-flex; gap: 4px; }
.hsw .hsw-bar__cd b { display: inline-block; min-width: 2.1em; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.16); font-variant-numeric: tabular-nums; text-align: center; }

/* ---------- Order tracking ---------- */
.hsw .hsw-track__card { max-width: 560px; margin-inline: auto; padding: 32px; text-align: left; background: var(--hsw-surface); border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius); }
.hsw .hsw-track__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 50%; background: var(--hsw-soft); color: var(--hsw-text); }
.hsw .hsw-track__icon .hsw-ico { width: 26px; height: 26px; }
.hsw .hsw-track__title { margin: 0 0 8px; font-size: 1.4em; color: inherit; }
.hsw .hsw-track__intro { margin-bottom: 18px; color: var(--hsw-muted); }
.hsw .hsw-track__intro p { margin: 0; }
.hsw .hsw-track__form.has-intro form.track_order > p:first-child { display: none; }
.hsw.hsw-track .woocommerce .form-row { width: 100%; float: none; }
.hsw.hsw-track .woocommerce .button, .hsw.hsw-track .woocommerce button[type="submit"] { width: 100%; }

/* ---------- My Account: page content, order & download cards ---------- */
.hsw .hsw-page { display: grid; gap: 18px; }
.hsw .hsw-page__title { margin: 0; font-size: 1.5em; line-height: 1.2; color: inherit; }
.hsw .hsw-page__text { color: var(--hsw-muted); }
.hsw .hsw-page__text > :first-child { margin-top: 0; }
.hsw .hsw-page__text > :last-child { margin-bottom: 0; }
.hsw .hsw-page__placeholder { padding: 28px; border: 1px dashed var(--hsw-border); border-radius: var(--hsw-radius); color: var(--hsw-muted); text-align: center; font-size: .9em; }
.hsw .hsw-ocards, .hsw .hsw-dcards { display: grid; gap: 12px; }
.hsw .hsw-ocard { --hsw-othumb: 52px; display: grid; gap: 14px; padding: 18px; background: var(--hsw-surface); border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius); transition: border-color .2s; }
.hsw .hsw-ocard:hover { border-color: color-mix(in srgb, var(--hsw-text) 35%, transparent); }
.hsw .hsw-ocard__head, .hsw .hsw-ocard__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.hsw .hsw-ocard__num { margin-right: 10px; color: inherit; font-weight: 700; text-decoration: none; }
.hsw .hsw-ocard__num:hover { text-decoration: underline; }
.hsw .hsw-ocard__date { font-size: .88em; color: var(--hsw-muted); }
.hsw .hsw-ocard__body { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hsw .hsw-ocard__thumbs { display: flex; flex: none; gap: 6px; }
.hsw .hsw-ocard__thumb, .hsw .hsw-ocard__more { display: grid; place-items: center; width: var(--hsw-othumb); height: var(--hsw-othumb); overflow: hidden; border-radius: calc(var(--hsw-radius) * .7); background: var(--hsw-soft); }
.hsw .hsw-ocard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hsw .hsw-ocard__more { font-size: .85em; font-weight: 700; color: var(--hsw-muted); }
.hsw .hsw-ocard__names { min-width: 0; overflow: hidden; font-size: .9em; color: var(--hsw-muted); text-overflow: ellipsis; white-space: nowrap; }
.hsw .hsw-ocard__foot { padding-top: 12px; border-top: 1px solid var(--hsw-border); }
.hsw .hsw-ocard__total { font-weight: 700; }
.hsw .hsw-ocard__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hsw .hsw-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 6px; }
.hsw .hsw-pager__info { font-size: .88em; color: var(--hsw-muted); }
.hsw .hsw-dcard { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--hsw-surface); border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius); }
.hsw .hsw-dcard__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: calc(var(--hsw-radius) * .8); background: var(--hsw-soft); }
.hsw .hsw-dcard__text { flex: 1; min-width: 0; }
.hsw .hsw-dcard__name { font-weight: 600; overflow-wrap: break-word; }
.hsw .hsw-dcard__meta { font-size: .85em; color: var(--hsw-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.hsw .hsw-co__grid, .hsw .hsw-co--sum-left .hsw-co__grid { grid-template-columns: minmax(0, 1fr); }
	.hsw .hsw-co__side { position: static !important; }
	.hsw .hsw-co--sum-left .hsw-co__side { order: 0; }
	.hsw .hsw-cart.hsw-cart--sum-right .hsw-cart__grid { grid-template-columns: minmax(0, 1fr); }
	.hsw .hsw-cart.hsw-cart--sum-right .hsw-cart__summary { position: static; }
	.hsw .hsw-acc__layout.hsw-acc__layout--left, .hsw .hsw-acc__layout.hsw-acc__layout--right { grid-template-columns: minmax(0, 1fr); }
	.hsw .hsw-acc__layout--right .hsw-acc__side { order: 0; }
}
@media (max-width: 767px) {
	.hsw .hsw-co__sumtoggle { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0; padding: 14px 16px; background: var(--hsw-soft); border: 0; border-radius: var(--hsw-radius); box-shadow: none; color: var(--hsw-text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
	.hsw .hsw-co__sumtoggle .hsw-ico--chevron { width: 14px; height: 14px; transition: transform .2s; }
	.hsw .hsw-co__sumtoggle[aria-expanded="true"] .hsw-ico--chevron { transform: rotate(180deg); }
	.hsw .hsw-co__sumtotal { margin-left: auto; }
	.hsw .hsw-co__summary.is-collapsible:not(.is-open) { display: none; }
	/* phones: summary bar on top, payment at the bottom (after the customer details) */
	.hsw .hsw-co__side, .hsw.hsw-co #order_review { display: contents; }
	.hsw .hsw-co__sumtoggle { order: -2; }
	.hsw .hsw-co__summary { order: -1; }
	.hsw .hsw-co__payment { order: 1; }
	.hsw .hsw-co__main { display: contents; }
	.hsw .hsw-co__back { order: 2; }
	.hsw .hsw-co__sumtoggle .hsw-ico--chevron { width: 16px; height: 16px; }
	.hsw [data-hsw-steps] .hsw-co__sumtoggle, .hsw [data-hsw-steps] .hsw-co__summary { order: 0; }
	.hsw .hsw-co__section, .hsw .hsw-co__summary { padding: 18px; }
	.hsw.hsw-co .woocommerce .form-row-first, .hsw.hsw-co .woocommerce .form-row-last { width: 100%; }
	.hsw .hsw-co-steps__label { display: none; }
	.hsw .hsw-co-steps li.is-current .hsw-co-steps__label { display: inline; }
	.hsw .hsw-co-recap__row { grid-template-columns: minmax(0, 1fr) auto; }
	.hsw .hsw-co-recap__label { grid-column: 1 / -1; }
	.hsw.hsw-bar { padding: 8px 40px; font-size: .85em; }
	.hsw .hsw-track__card { padding: 22px; }
	.hsw .hsw-cart { --hsw-thumb: 72px; }
	.hsw .hsw-cart__head { display: none; }
	.hsw .hsw-cart--table .hsw-cart__items { background: none; border: 0; overflow: visible; display: grid; gap: 12px; }
	.hsw .hsw-cart--table .hsw-item {
		grid-template-columns: var(--hsw-thumb) minmax(0, 1fr) auto;
		grid-template-areas: "thumb info remove" "thumb price price" "thumb qty subtotal";
		gap: 6px 14px; padding: 14px; border: 1px solid var(--hsw-border); border-radius: var(--hsw-radius); background: var(--hsw-surface);
	}
	.hsw .hsw-cart--table.hsw-cart--no-thumb .hsw-item { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "info remove" "price price" "qty subtotal"; }
	.hsw .hsw-cart--table .hsw-item + .hsw-item { border-top: 1px solid var(--hsw-border); }
	.hsw .hsw-cart--table .hsw-item__thumb { grid-area: thumb; align-self: start; }
	.hsw .hsw-cart--table .hsw-item__info { grid-area: info; }
	.hsw .hsw-cart--table .hsw-item__price { grid-area: price; font-size: .9em; }
	.hsw .hsw-cart--table .hsw-item__qty { grid-area: qty; justify-content: flex-start; margin-top: 6px; }
	.hsw .hsw-cart--table .hsw-item__subtotal { grid-area: subtotal; margin-top: 6px; }
	.hsw .hsw-cart--table .hsw-item__remove { grid-area: remove; align-self: start; }
	.hsw .hsw-summary { padding: 18px; }
	.hsw .hsw-acc__card { padding: 20px; }
	.hsw .hsw-nav--m-scroll .hsw-nav ul { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: thin; }
	.hsw .hsw-nav--m-scroll .hsw-nav__item--customer-logout { margin: 0 !important; padding: 0 !important; border: 0; }
	.hsw .hsw-nav--m-scroll.hsw-nav--underline .hsw-nav .is-active a { box-shadow: inset 0 -2px 0 var(--hsw-nav-line, var(--hsw-accent)); }
	.hsw.hsw-wcroot .woocommerce table.shop_table_responsive thead { display: none; }
	.hsw.hsw-wcroot .woocommerce table.shop_table_responsive tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--hsw-border); }
	.hsw.hsw-wcroot .woocommerce table.shop_table_responsive td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 4px; border: 0; text-align: right; }
	.hsw.hsw-wcroot .woocommerce table.shop_table_responsive td::before { content: attr(data-title); font-weight: 600; text-align: left; }
	.hsw .hsw-orders thead { display: none; }
	.hsw .hsw-orders tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--hsw-border); }
	.hsw.hsw-wcroot .woocommerce .hsw-orders td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 4px; border: 0; text-align: right; }
	.hsw .hsw-orders td[data-title]::before { content: attr(data-title); font-weight: 600; }
	.hsw.hsw-trust--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
	.hsw *, .hsw-mcd * { transition: none !important; animation: none !important; }
}