/**
 * Discobolandia Band Wishlist — frontend styles
 * All selectors prefixed `.dbw-`. Designed to feel native to betheme 27.4.4.
 *
 * Visual language:
 *  - Whitespace generous, sans-serif inherits from theme
 *  - Accent: the shop mint (tokens of discobolandia-design, see section 1), red #e23b48 for active "following"
 *  - Buttons match WC "Add to cart" weight/padding/radius
 *  - Reduced-motion + dark-mode aware
 */

/* -------------------------------------------------------------------------
 * 1. Design tokens (scoped — won't leak outside .dbw-* tree)
 * ------------------------------------------------------------------------- */
:root {
	--dbw-accent: var(--dbo-mint-dark, #6FB996);
	--dbw-accent-hover: var(--dbo-mint, #9BD6B9);
	--dbw-accent-soft: var(--dbo-mint-soft, #E8F5EE);
	/* Text on an accent fill, accent used as text / thin line on light surfaces
	 * (mint itself is too light for text: 2.3:1 on white), focus ring. */
	--dbw-on-accent: var(--dbo-vinyl, #0F1419);
	--dbw-accent-ink: var(--dbo-mint-ink, #2A6348);
	--dbw-focus: var(--dbo-ink, #1A2332);
	--dbw-heart: #e23b48;
	--dbw-heart-hover: #c8323e;
	--dbw-heart-soft: rgba(226, 59, 72, 0.08);
	--dbw-text: #1a2236;
	--dbw-text-muted: var(--dbo-muted, #5C6677);
	--dbw-surface: #ffffff;
	--dbw-surface-alt: #f6f8fb;
	--dbw-border: #e5e9f0;
	--dbw-border-strong: #d3d9e3;
	--dbw-success: var(--dbo-mint-ink, #2A6348);
	--dbw-danger: var(--dbo-bad, #A3261C);
	--dbw-radius-sm: 4px;
	--dbw-radius: 6px;
	--dbw-radius-lg: 12px;
	--dbw-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
	--dbw-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
	--dbw-shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
	--dbw-font: inherit;
	--dbw-transition: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* -------------------------------------------------------------------------
 * 2. Follow button — single source of truth, tri-state (label spans)
 *    Default: mint solid (brand #6FB996, dark text: white fails AA on mint)  "Segui questa band"
 *    Following: green outline "Stai seguendo questa band ✓"
 *    Hover-on-following: red  "Smetti di seguire ✕"
 *    !important is unfortunately needed to defeat betheme button styles.
 * ------------------------------------------------------------------------- */
button.dbw-follow-btn,
.woocommerce button.dbw-follow-btn,
.dbw-myaccount button.dbw-follow-btn {
	position: relative !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: 0.01em !important;
	padding: 11px 22px !important;
	min-height: 44px !important;
	min-width: 188px !important;
	max-width: 188px !important;
	width: auto !important;
	box-sizing: border-box !important;
	border-radius: 999px !important;
	border: 1.5px solid var(--dbw-accent, #6FB996) !important;
	background: #6FB996 !important;
	background-image: none !important;
	color: #0F1419 !important;
	cursor: pointer !important;
	text-decoration: none !important;
	text-shadow: none !important;
	text-transform: none !important;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 160ms ease !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

button.dbw-follow-btn:hover,
button.dbw-follow-btn:focus-visible {
	background: #9BD6B9 !important;
	border-color: #9BD6B9 !important;
	color: #0F1419 !important;
	box-shadow: 0 4px 12px rgba(111, 185, 150, 0.35) !important;
	transform: translateY(-1px) !important;
	text-decoration: none !important;
}

/* Keyboard focus: an outline, not only a shadow. A site stylesheet may restyle
 * the button's shadow (the design plugin does) but the outline stays; no
 * !important here, so the site's own focus outline (lighter on dark panels)
 * can replace this one. */
button.dbw-follow-btn:focus-visible {
	outline: 3px solid var(--dbw-focus, #1A2332);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #ffffff !important;
}

button.dbw-follow-btn:active { transform: translateY(0) !important; }

button.dbw-follow-btn.is-loading { cursor: progress !important; pointer-events: none !important; }
button.dbw-follow-btn[disabled] { opacity: 0.6 !important; cursor: not-allowed !important; pointer-events: none !important; }

/* Label spans — three labels sharing the same button slot.
 * Default ALL hidden, then state attribute selectors reveal exactly one. */
button.dbw-follow-btn > .dbw-follow-label,
button.dbw-follow-btn .dbw-follow-label--follow,
button.dbw-follow-btn .dbw-follow-label--following,
button.dbw-follow-btn .dbw-follow-label--unfollow {
	display: none !important;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	color: inherit !important;
}

button.dbw-follow-btn[data-state="not-following"] > .dbw-follow-label--follow {
	display: inline-flex !important;
}
button.dbw-follow-btn[data-state="following"] > .dbw-follow-label--following {
	display: inline-flex !important;
}
button.dbw-follow-btn[data-state="following"]:hover > .dbw-follow-label--following,
button.dbw-follow-btn[data-state="following"]:focus-visible > .dbw-follow-label--following {
	display: none !important;
}
button.dbw-follow-btn[data-state="following"]:hover > .dbw-follow-label--unfollow,
button.dbw-follow-btn[data-state="following"]:focus-visible > .dbw-follow-label--unfollow {
	display: inline-flex !important;
}

button.dbw-follow-btn .dbw-follow-ico {
	flex: 0 0 16px;
	width: 16px !important;
	height: 16px !important;
	display: inline-block !important;
	color: inherit !important;
}

/* "Following" — green outline + light background */
button.dbw-follow-btn[data-state="following"] {
	background: var(--dbw-accent-soft, #E8F5EE) !important;
	background-image: none !important;
	color: var(--dbw-accent-ink, #2A6348) !important;
	border-color: var(--dbw-accent-ink, #2A6348) !important;
	box-shadow: 0 1px 2px rgba(42, 99, 72, 0.12) !important;
}

button.dbw-follow-btn[data-state="following"]:hover,
button.dbw-follow-btn[data-state="following"]:focus-visible {
	background: var(--dbo-bad-bg, #FDECEA) !important;
	color: var(--dbo-bad, #A3261C) !important;
	border-color: var(--dbo-bad, #A3261C) !important;
	box-shadow: 0 4px 12px rgba(163, 38, 28, 0.18) !important;
}

button.dbw-follow-btn[data-state="following"]:focus-visible {
	box-shadow: 0 0 0 2px #ffffff !important;
}

button.dbw-follow-btn .dbw-follow-spinner {
	display: none;
	width: 14px; height: 14px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: dbw-spin 0.8s linear infinite;
	flex: 0 0 14px;
}

button.dbw-follow-btn.is-loading > .dbw-follow-label { opacity: 0.45; }
button.dbw-follow-btn.is-loading .dbw-follow-spinner {
	display: inline-block !important;
	position: absolute;
	left: 50%; top: 50%;
	margin: -7px 0 0 -7px;
}

@keyframes dbw-spin { to { transform: rotate(360deg); } }
@keyframes dbw-pop  { 0%{transform:scale(1)} 40%{transform:scale(1.06)} 100%{transform:scale(1)} }
button.dbw-follow-btn.dbw-just-followed { animation: dbw-pop 320ms ease-out; }

/* Card-size variant: smaller, full-width within card (capped at 188px) */
button.dbw-follow-btn--card,
.woocommerce button.dbw-follow-btn--card,
.dbw-myaccount button.dbw-follow-btn--card,
.dbw-myaccount .dbw-card__actions button.dbw-follow-btn--card {
	min-width: 0 !important;
	width: 100% !important;
	max-width: 188px !important;
	font-size: 13px !important;
	padding: 8px 12px !important;
	min-height: 44px !important;
	border-radius: 8px !important;
	margin: 0 auto !important;
}

/* Login-required (logged-out) — outline neutral */
button.dbw-follow-btn.dbw-login-required {
	background: #ffffff !important;
	color: #1f2937 !important;
	border-color: #cbd5e1 !important;
}
button.dbw-follow-btn.dbw-login-required:hover,
button.dbw-follow-btn.dbw-login-required:focus-visible {
	background: #6FB996 !important;
	color: #0F1419 !important;
	border-color: #6FB996 !important;
}

/* -------------------------------------------------------------------------
 * 4. Archive context — banner style above product grid
 * ------------------------------------------------------------------------- */
.dbw-archive-follow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	padding: 8px 12px 28px;
	margin: 0 auto 12px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	text-align: center;
}

.dbw-archive-follow__hint {
	color: var(--dbw-text-muted);
	font-size: 14px;
	margin: 0;
}

/* -------------------------------------------------------------------------
 * 4b. Info icon + popover ("come funziona")
 * ------------------------------------------------------------------------- */
.dbw-info {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.dbw-info__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid var(--dbw-border, #d8dde5);
	border-radius: 50%;
	background: #fff;
	color: var(--dbw-text-muted, #6b7280);
	cursor: pointer;
	transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.dbw-info__trigger:hover,
.dbw-info__trigger:focus-visible {
	color: var(--dbw-accent-ink, #2A6348);
	border-color: var(--dbw-accent-ink, #2A6348);
	background: var(--dbw-accent-soft, #E8F5EE);
	outline: none;
}

.dbw-info__trigger:focus-visible {
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--dbw-focus, #1A2332);
}

.dbw-info__trigger[aria-expanded="true"] {
	color: var(--dbw-accent-ink, #2A6348);
	border-color: var(--dbw-accent-ink, #2A6348);
	background: var(--dbw-accent-soft, #E8F5EE);
}

.dbw-info__icon { display: block; }

.dbw-info__panel {
	position: absolute;
	z-index: 50;
	top: calc(100% + 10px);
	left: 50%;
	/* --dbw-info-shift / --dbw-info-arrow are set by JS (positionInfoPanel)
	 * so the box stays 12px inside the viewport while the arrow keeps
	 * pointing at the trigger. */
	transform: translateX(calc(-50% + var(--dbw-info-shift, 0px))) translateY(-4px);
	width: min(320px, calc(100vw - 24px));
	padding: 14px 36px 14px 16px;
	background: #ffffff;
	color: var(--dbw-text, #1f2937);
	border: 1px solid var(--dbw-border, #e5e7eb);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.08);
	font-size: 13px;
	line-height: 1.55;
	text-align: left;
	opacity: 0;
	pointer-events: none;
	transition: opacity 160ms ease, transform 160ms ease;
}

.dbw-info__panel[hidden] { display: none; }

.dbw-info__panel.is-open,
.dbw-info[data-dbw-info]:hover .dbw-info__panel:not([hidden]) {
	opacity: 1;
	transform: translateX(calc(-50% + var(--dbw-info-shift, 0px))) translateY(0);
	pointer-events: auto;
}

.dbw-info__panel::before {
	content: "";
	position: absolute;
	top: -7px;
	left: var(--dbw-info-arrow, 50%);
	transform: translateX(-50%) rotate(45deg);
	width: 12px;
	height: 12px;
	background: #fff;
	border-left: 1px solid var(--dbw-border, #e5e7eb);
	border-top: 1px solid var(--dbw-border, #e5e7eb);
}

.dbw-info__title {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin: 0 0 4px;
	color: var(--dbw-text, #1f2937);
}

.dbw-info__body {
	display: block;
	color: var(--dbw-text-muted, #4b5563);
}

.dbw-info__close {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 22px;
	height: 22px;
	padding: 0;
	font-size: 18px;
	line-height: 1;
	background: transparent;
	border: 0;
	color: var(--dbw-text-muted, #9ca3af);
	cursor: pointer;
	border-radius: 4px;
}

.dbw-info__close:hover,
.dbw-info__close:focus-visible {
	color: var(--dbw-text, #1f2937);
	background: rgba(15, 23, 42, 0.06);
	outline: none;
}

@media (prefers-color-scheme: dark) {
	.dbw-info__trigger {
		background: #1f2937;
		border-color: #374151;
		color: #cbd5e1;
	}
	.dbw-info__trigger:hover,
	.dbw-info__trigger:focus-visible,
	.dbw-info__trigger[aria-expanded="true"] {
		background: #17443A;
		color: #fff;
		border-color: #6FB996;
	}
	.dbw-info__panel {
		background: #1f2937;
		color: #e5e7eb;
		border-color: #374151;
		box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
	}
	.dbw-info__panel::before {
		background: #1f2937;
		border-color: #374151;
	}
	.dbw-info__title { color: #f9fafb; }
	.dbw-info__body { color: #cbd5e1; }
}

/* -------------------------------------------------------------------------
 * 5. Inline variant (single product page)
 * ------------------------------------------------------------------------- */
.dbw-band-follow-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin: 12px 0 18px;
	font-size: 14px;
	color: var(--dbw-text-muted);
}

.dbw-band-follow-row__label {
	font-weight: 600;
	color: var(--dbw-text);
}

.dbw-follow-inline {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 500;
	color: var(--dbw-accent-ink);
	text-decoration: none;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid transparent;
	background: var(--dbw-accent-soft);
	transition:
		background-color var(--dbw-transition),
		color var(--dbw-transition),
		border-color var(--dbw-transition);
	cursor: pointer;
	min-height: 32px;
}

.dbw-follow-inline:hover,
.dbw-follow-inline:focus-visible {
	background: var(--dbw-accent);
	color: var(--dbw-on-accent);
	text-decoration: none;
}

.dbw-follow-inline:focus-visible {
	outline: 2px solid var(--dbw-focus, #1A2332);
	box-shadow: 0 0 0 2px #ffffff;
	outline-offset: 2px;
}

.dbw-follow-inline[data-state="following"] {
	background: var(--dbw-heart-soft);
	color: var(--dbw-heart);
}

.dbw-follow-inline[data-state="following"]:hover,
.dbw-follow-inline[data-state="following"]:focus-visible {
	background: var(--dbw-heart);
	color: #fff;
}

.dbw-follow-inline.is-loading {
	opacity: 0.65;
	pointer-events: none;
}

/* -------------------------------------------------------------------------
 * 6. My Account — "Le mie band" dashboard (clean, scoped, responsive)
 * ------------------------------------------------------------------------- */
.dbw-myaccount {
	font-family: inherit;
	color: #111827 !important;
	max-width: 100%;
}

.dbw-myaccount * { box-sizing: border-box; }

.dbw-myaccount__header {
	margin-bottom: 20px !important;
	padding-bottom: 16px !important;
	border-bottom: 1px solid #e5e7eb !important;
}

.dbw-myaccount__title {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	margin: 0 0 8px !important;
	letter-spacing: -0.01em !important;
	color: #111827 !important;
	line-height: 1.2 !important;
}

.dbw-myaccount__count {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 26px !important;
	height: 24px !important;
	padding: 0 8px !important;
	background: var(--dbw-accent-soft, #E8F5EE) !important;
	color: var(--dbw-accent-ink, #2A6348) !important;
	border-radius: 999px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
}

.dbw-myaccount__subtitle {
	font-size: 14px !important;
	color: #1f2937 !important;
	margin: 0 !important;
	line-height: 1.55 !important;
	max-width: 640px !important;
}

/* Compact preferences trigger + popover (header right) */
.dbw-myaccount__header {
	display: flex !important;
	align-items: flex-start !important;
	justify-content: space-between !important;
	gap: 16px !important;
	flex-wrap: wrap !important;
}

.dbw-myaccount__intro { flex: 1 1 320px !important; min-width: 0 !important; }

.dbw-myaccount .dbw-prefs {
	position: relative !important;
	flex: 0 0 auto !important;
	margin-top: 4px !important;
}

.dbw-myaccount .dbw-prefs__trigger {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 8px 12px !important;
	background: #ffffff !important;
	border: 1.5px solid #d8dde5 !important;
	border-radius: 999px !important;
	font: inherit !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #1f2937 !important;
	cursor: pointer !important;
	transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease !important;
	min-height: 44px !important; /* touch target (was 36 px + an invisible area) */
	position: relative !important;
}

/* Touch target of 44 px without making the pill taller: an invisible area
 * centred on it takes the taps just above and below. */
.dbw-myaccount .dbw-prefs__trigger { overflow: visible !important; }
.dbw-myaccount .dbw-prefs__trigger::after {
	content: "" !important;
	position: absolute !important;
	left: 0 !important;
	right: 0 !important;
	top: -4px !important;
	bottom: -4px !important;
	height: auto !important;
	transform: none !important;
}

.dbw-myaccount .dbw-prefs__trigger:hover,
.dbw-myaccount .dbw-prefs__trigger[aria-expanded="true"] {
	border-color: var(--dbw-accent-ink, #2A6348) !important;
	color: #1f2937 !important;
	background: var(--dbw-accent-soft, #E8F5EE) !important;
}

.dbw-myaccount .dbw-prefs__trigger:focus-visible {
	outline: none !important;
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--dbw-focus, #1A2332) !important;
	border-color: var(--dbw-accent-ink, #2A6348) !important;
}

.dbw-myaccount .dbw-prefs__icon {
	flex: 0 0 16px !important;
	width: 16px !important;
	height: 16px !important;
	color: var(--dbw-accent-ink, #2A6348) !important;
}

.dbw-myaccount .dbw-prefs__trigger-label {
	display: inline-flex !important;
	gap: 4px !important;
	align-items: baseline !important;
	white-space: nowrap !important;
}

.dbw-myaccount .dbw-prefs__trigger-prefix { color: var(--dbo-muted, #5C6677) !important; font-weight: 500 !important; }
.dbw-myaccount .dbw-prefs__trigger-value { color: #111827 !important; font-weight: 700 !important; }

.dbw-myaccount .dbw-prefs__chevron {
	flex: 0 0 10px !important;
	width: 10px !important;
	height: 10px !important;
	color: #6b7280 !important;
	transition: transform 160ms ease !important;
}

.dbw-myaccount .dbw-prefs__trigger[aria-expanded="true"] .dbw-prefs__chevron {
	transform: rotate(180deg) !important;
}

.dbw-myaccount .dbw-prefs__status {
	font-size: 12px !important;
	font-weight: 600 !important;
	color: var(--dbw-accent-ink, #2A6348) !important;
	margin-left: 4px !important;
	min-height: 14px !important;
}

.dbw-myaccount .dbw-prefs__status[data-status="error"] { color: var(--dbo-bad, #A3261C) !important; }
.dbw-myaccount .dbw-prefs__status:empty { display: none !important; }

.dbw-myaccount .dbw-prefs.is-saving .dbw-prefs__chevron {
	border: 2px solid currentColor !important;
	border-top-color: transparent !important;
	border-radius: 50% !important;
	animation: dbw-spin 0.8s linear infinite !important;
}

.dbw-myaccount .dbw-prefs.is-saving .dbw-prefs__chevron path { display: none !important; }

/* Popover */
.dbw-myaccount .dbw-prefs__popover {
	position: absolute !important;
	z-index: 60 !important;
	top: calc(100% + 8px) !important;
	right: 0 !important;
	width: 320px !important;
	max-width: calc(100vw - 32px) !important;
	background: #ffffff !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 12px !important;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.08) !important;
	padding: 14px !important;
}

.dbw-myaccount .dbw-prefs__popover[hidden] { display: none !important; }

/* The popover never leaves the window: JS sets --dbw-popover-max to the room
 * available on the side it opens (below by default, above when there is more
 * room there) and the content scrolls inside. */
.dbw-myaccount .dbw-prefs__popover {
	max-height: var(--dbw-popover-max, 70vh) !important;
	overflow-y: auto !important;
	overscroll-behavior: contain !important;
	-webkit-overflow-scrolling: touch !important;
}
.dbw-myaccount .dbw-prefs__popover.is-up {
	top: auto !important;
	bottom: calc(100% + 8px) !important;
}
/* The little arrow sat outside the box: a scrolling box would clip it. */
.dbw-myaccount .dbw-prefs__popover::before { display: none !important; }

.dbw-myaccount .dbw-prefs__popover::before {
	content: "" !important;
	position: absolute !important;
	top: -7px !important;
	right: 18px !important;
	width: 12px !important;
	height: 12px !important;
	background: #ffffff !important;
	border-left: 1px solid #e5e7eb !important;
	border-top: 1px solid #e5e7eb !important;
	transform: rotate(45deg) !important;
}

.dbw-myaccount .dbw-prefs__popover-head {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	margin-bottom: 10px !important;
	/* Title and "×" stay at the top of the box while its content scrolls. The box has 14 px of
	 * padding: the head sticks over it, with its own white background. */
	position: sticky !important;
	top: -14px !important;
	z-index: 2 !important;
	margin-top: -14px !important;
	padding-top: 14px !important;
	background: #ffffff !important;
}

.dbw-myaccount .dbw-prefs__popover-title {
	margin: 0 !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	color: #111827 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.06em !important;
}

.dbw-myaccount .dbw-prefs__close {
	background: transparent !important;
	border: 0 !important;
	font-size: 20px !important;
	line-height: 1 !important;
	color: var(--dbo-muted, #5C6677) !important;
	padding: 2px 6px !important;
	cursor: pointer !important;
	border-radius: 4px !important;
	/* 44 x 44 touch target; the negative margins keep the popover header as tall as before. */
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 44px !important;
	min-height: 44px !important;
	margin: -12px -10px -12px 0 !important;
}

.dbw-myaccount .dbw-prefs__close:hover,
.dbw-myaccount .dbw-prefs__close:focus-visible {
	color: #111827 !important;
	background: rgba(15, 23, 42, 0.06) !important;
	outline: none !important;
}

.dbw-myaccount .dbw-prefs__close:focus-visible {
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--dbw-focus, #1A2332) !important;
}

.dbw-myaccount .dbw-prefs__options {
	display: flex !important;
	flex-direction: column !important;
	gap: 8px !important;
	border: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.dbw-myaccount .dbw-pref {
	display: flex !important;
	align-items: flex-start !important;
	gap: 10px !important;
	padding: 10px 12px !important;
	background: #ffffff !important;
	border: 1.5px solid #e5e7eb !important;
	border-radius: 10px !important;
	cursor: pointer !important;
	transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease !important;
	position: relative !important;
}

.dbw-myaccount .dbw-pref:hover {
	border-color: #cbd5e1 !important;
	background: #f9fbff !important;
}

.dbw-myaccount .dbw-pref input[type="radio"] {
	position: absolute !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.dbw-myaccount .dbw-pref__radio {
	display: inline-block !important;
	flex: 0 0 16px !important;
	width: 16px !important;
	height: 16px !important;
	border: 2px solid #cbd5e1 !important;
	border-radius: 50% !important;
	background: #ffffff !important;
	margin-top: 2px !important;
	transition: border-color 160ms ease, box-shadow 160ms ease !important;
	position: relative !important;
}

.dbw-myaccount .dbw-pref.is-selected {
	border-color: var(--dbw-accent-ink, #2A6348) !important;
	background: var(--dbw-accent-soft, #E8F5EE) !important;
}

.dbw-myaccount .dbw-pref.is-selected .dbw-pref__radio {
	border-color: var(--dbw-accent-ink, #2A6348) !important;
	background: var(--dbw-accent-ink, #2A6348) !important;
}

.dbw-myaccount .dbw-pref.is-selected .dbw-pref__radio::after {
	content: "" !important;
	position: absolute !important;
	top: 2px !important;
	left: 2px !important;
	width: 8px !important;
	height: 8px !important;
	background: #ffffff !important;
	border-radius: 50% !important;
}

.dbw-myaccount .dbw-pref input[type="radio"]:focus-visible + .dbw-pref__radio {
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--dbw-focus, #1A2332) !important;
}

.dbw-myaccount .dbw-pref__body { flex: 1 !important; min-width: 0 !important; }

.dbw-myaccount .dbw-pref__label {
	display: block !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	color: #111827 !important;
	line-height: 1.3 !important;
	margin-bottom: 2px !important;
}

.dbw-myaccount .dbw-pref__desc {
	display: block !important;
	font-size: 12px !important;
	color: #4b5563 !important;
	line-height: 1.45 !important;
}

@media (max-width: 480px) {
	.dbw-myaccount__header { flex-direction: column !important; align-items: stretch !important; }
	.dbw-myaccount .dbw-prefs__trigger { width: 100% !important; justify-content: center !important; }
	.dbw-myaccount .dbw-prefs__popover { width: 100% !important; right: auto !important; left: 0 !important; }
	.dbw-myaccount .dbw-prefs__popover::before { right: auto !important; left: 50% !important; transform: translateX(-50%) rotate(45deg) !important; }
}

/* Search & discover */
.dbw-myaccount .dbw-discover {
	margin-bottom: 28px !important;
	max-width: 640px !important;
}

.dbw-myaccount .dbw-search {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	background: #ffffff !important;
	border: 1.5px solid #d8dde5 !important;
	border-radius: 999px !important;
	padding: 0 44px 0 44px !important;
	min-height: 46px !important;
	width: 100% !important;
	max-width: 100% !important;
	transition: border-color 160ms ease, box-shadow 160ms ease !important;
	margin: 0 !important;
}

.dbw-myaccount .dbw-search:focus-within {
	border-color: var(--dbw-accent-ink, #2A6348) !important;
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--dbw-focus, #1A2332) !important;
}

.dbw-myaccount .dbw-search__icon {
	position: absolute !important;
	left: 14px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	color: #6b7280 !important;
	pointer-events: none !important;
}

.dbw-myaccount .dbw-search__input {
	flex: 1 !important;
	width: 100% !important;
	min-width: 0 !important;
	border: 0 !important;
	outline: 0 !important;
	background: transparent !important;
	background-image: none !important;
	font: inherit !important;
	font-size: 14px !important;
	color: #111827 !important;
	padding: 10px 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	height: auto !important;
	min-height: 44px !important; /* touch target of the field itself, not only of its pill */
	line-height: 1.4 !important;
}

.dbw-myaccount .dbw-search__input:focus { box-shadow: none !important; }
.dbw-myaccount .dbw-search__input::-webkit-search-cancel-button,
.dbw-myaccount .dbw-search__input::-webkit-search-decoration { -webkit-appearance: none !important; display: none !important; }
.dbw-myaccount .dbw-search__input::placeholder { color: var(--dbo-muted, #5C6677) !important; opacity: 1 !important; }

.dbw-myaccount .dbw-search__clear {
	position: absolute !important;
	right: 10px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 24px !important;
	height: 24px !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(15, 23, 42, 0.08) !important;
	color: #1f2937 !important;
	cursor: pointer !important;
	font-size: 16px !important;
	line-height: 1 !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 0 !important;
	min-height: 0 !important;
}

.dbw-myaccount .dbw-search__clear[hidden] { display: none !important; }

.dbw-myaccount .dbw-search__clear:hover,
.dbw-myaccount .dbw-search__clear:focus-visible {
	background: rgba(15, 23, 42, 0.18) !important;
	color: #111827 !important;
	outline: none !important;
}

.dbw-myaccount .dbw-search-results {
	margin-top: 14px !important;
	padding: 14px !important;
	background: #f9fafb !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 12px !important;
}

.dbw-myaccount .dbw-search-results[hidden] { display: none !important; }

.dbw-myaccount .dbw-search-status {
	font-size: 13px !important;
	color: #1f2937 !important;
	margin-bottom: 12px !important;
}

.dbw-myaccount .dbw-search-status:empty { display: none !important; }

.dbw-myaccount .dbw-section-title {
	font-size: 13px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.07em !important;
	color: #111827 !important;
	margin: 0 0 14px !important;
}

/* Grid — force grid layout, defeat theme overrides */
.dbw-myaccount .dbw-grid,
.dbw-myaccount ul.dbw-grid,
.dbw-myaccount div.dbw-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
	gap: 14px !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
}

/* Card */
.dbw-myaccount .dbw-card,
.dbw-myaccount article.dbw-card {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	background: #ffffff !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 14px !important;
	padding: 20px 14px 14px !important;
	transition: box-shadow 200ms ease, border-color 200ms ease, transform 200ms ease !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
	position: relative !important;
	text-align: center !important;
	min-height: 250px !important;
	color: #111827 !important;
	margin: 0 !important;
	width: auto !important;
}

.dbw-myaccount .dbw-card[hidden] { display: none !important; }

.dbw-myaccount .dbw-card:hover {
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10) !important;
	border-color: #cbd5e1 !important;
	transform: translateY(-2px);
}

.dbw-myaccount .dbw-card.is-following {
	border-color: rgba(42, 99, 72, 0.35) !important;
	background: linear-gradient(180deg, rgba(111, 185, 150, 0.12) 0%, #fff 70%) !important;
}

.dbw-myaccount .dbw-card__media,
.dbw-myaccount a.dbw-card__media {
	width: 80px !important;
	height: 80px !important;
	border-radius: 50% !important;
	overflow: hidden !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 auto 14px !important;
	flex: 0 0 80px !important;
	background: linear-gradient(135deg, var(--dbo-canvas, #F7FAF8) 0%, var(--dbo-mint-soft, #E8F5EE) 100%) !important;
	box-shadow: 0 0 0 1px #e5e7eb !important;
	text-decoration: none !important;
	padding: 0 !important;
}

.dbw-myaccount .dbw-card__media img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	border-radius: 50% !important;
	margin: 0 !important;
}

.dbw-myaccount .dbw-card__media--placeholder {
	color: var(--dbw-accent-ink, #2A6348) !important;
	background: linear-gradient(135deg, var(--dbo-canvas, #F7FAF8) 0%, var(--dbo-mint-soft, #E8F5EE) 100%) !important;
}

.dbw-myaccount .dbw-card__initial {
	font-size: 28px !important;
	font-weight: 700 !important;
	color: var(--dbw-accent-ink, #2A6348) !important;
	text-transform: uppercase !important;
	letter-spacing: -0.02em !important;
	line-height: 1 !important;
}

.dbw-myaccount .dbw-card__body {
	flex: 1 !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

.dbw-myaccount .dbw-card__title,
.dbw-myaccount h3.dbw-card__title {
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	margin: 0 0 4px !important;
	padding: 0 !important;
	color: #111827 !important;
	word-break: break-word !important;
	text-transform: none !important;
}

.dbw-myaccount .dbw-card__title a {
	color: #111827 !important;
	text-decoration: none !important;
	transition: color 160ms ease !important;
}

.dbw-myaccount .dbw-card__title a:hover { color: var(--dbw-accent-ink, #2A6348) !important; }

.dbw-myaccount .dbw-card__meta,
.dbw-myaccount p.dbw-card__meta {
	font-size: 12px !important;
	color: #1f2937 !important;
	margin: 0 0 14px !important;
	padding: 0 !important;
}

.dbw-myaccount .dbw-card__actions {
	width: 100% !important;
	margin-top: auto !important;
	padding-top: 6px !important;
	display: block !important;
	text-align: center !important;
}

.dbw-myaccount .dbw-card__actions button.dbw-follow-btn,
.dbw-myaccount .dbw-card__actions .dbw-follow-btn {
	display: inline-flex !important;
	margin: 0 auto !important;
	float: none !important;
}

/* My Account menu icon for "Le mie band" — heart line icon (mask = inherit color) */
.woocommerce-MyAccount-navigation-link.dbw-menu-item > a::before,
li.dbw-menu-item > a::before,
li.woocommerce-MyAccount-navigation-link--le-mie-band > a::before {
	content: "" !important;
	display: inline-block !important;
	width: 16px !important;
	height: 16px !important;
	margin-right: 10px !important;
	vertical-align: -2px !important;
	background-color: currentColor !important;
	-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20.84%204.61a5.5%205.5%200%200%200-7.78%200L12%205.67l-1.06-1.06a5.5%205.5%200%200%200-7.78%207.78l1.06%201.06L12%2021.23l7.78-7.78%201.06-1.06a5.5%205.5%200%200%200%200-7.78z%22%2F%3E%3C%2Fsvg%3E") !important;
	mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20.84%204.61a5.5%205.5%200%200%200-7.78%200L12%205.67l-1.06-1.06a5.5%205.5%200%200%200-7.78%207.78l1.06%201.06L12%2021.23l7.78-7.78%201.06-1.06a5.5%205.5%200%200%200%200-7.78z%22%2F%3E%3C%2Fsvg%3E") !important;
	-webkit-mask-repeat: no-repeat !important;
	mask-repeat: no-repeat !important;
	-webkit-mask-position: center !important;
	mask-position: center !important;
	-webkit-mask-size: contain !important;
	mask-size: contain !important;
	font-family: inherit !important;
}

/* Empty state */
.dbw-myaccount .dbw-empty {
	text-align: center !important;
	padding: 48px 24px !important;
	background: #f9fafb !important;
	border-radius: 14px !important;
	border: 1px dashed #cbd5e1 !important;
	color: #111827 !important;
}

.dbw-myaccount .dbw-empty__icon {
	width: 56px !important;
	height: 56px !important;
	margin: 0 auto 14px !important;
	display: block !important;
	color: var(--dbw-accent-ink, #2A6348) !important;
	opacity: 0.75 !important;
}

.dbw-myaccount .dbw-empty__title {
	font-size: 18px !important;
	font-weight: 700 !important;
	margin: 0 0 6px !important;
	color: #111827 !important;
}

.dbw-myaccount .dbw-empty__text {
	font-size: 14px !important;
	color: #1f2937 !important;
	margin: 0 auto 18px !important;
	max-width: 460px !important;
	line-height: 1.5 !important;
}

.dbw-myaccount .dbw-btn--primary {
	display: inline-flex !important;
	min-height: 44px !important;
	box-sizing: border-box !important;
	align-items: center !important;
	gap: 6px !important;
	padding: 11px 22px !important;
	background: var(--dbw-accent, #6FB996) !important;
	color: var(--dbw-on-accent, #0F1419) !important;
	border: 1.5px solid var(--dbw-accent, #6FB996) !important;
	border-radius: 999px !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	text-decoration: none !important;
	transition: background-color 160ms ease, border-color 160ms ease !important;
}

.dbw-myaccount .dbw-btn--primary:hover,
.dbw-myaccount .dbw-btn--primary:focus-visible {
	background: var(--dbw-accent-hover, #9BD6B9) !important;
	border-color: var(--dbw-accent-hover, #9BD6B9) !important;
	color: var(--dbw-on-accent, #0F1419) !important;
}

/* Responsive */
@media (max-width: 1024px) {
	.dbw-myaccount .dbw-grid,
	.dbw-myaccount ul.dbw-grid,
	.dbw-myaccount div.dbw-grid {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
	}
}

@media (max-width: 768px) {
	.dbw-myaccount .dbw-grid,
	.dbw-myaccount ul.dbw-grid,
	.dbw-myaccount div.dbw-grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
		gap: 12px !important;
	}
	.dbw-myaccount .dbw-card { padding: 16px 10px 12px !important; min-height: 220px !important; }
	button.dbw-follow-btn,
	.woocommerce button.dbw-follow-btn,
	.dbw-myaccount button.dbw-follow-btn {
		max-width: 100% !important;
		font-size: 13px !important;
		padding: 10px 16px !important;
	}
	button.dbw-follow-btn--card { font-size: 12.5px !important; padding: 8px 10px !important; }
	.dbw-archive-follow { gap: 10px; padding: 8px 8px 20px; }
}

@media (max-width: 480px) {
	.dbw-myaccount .dbw-grid,
	.dbw-myaccount ul.dbw-grid,
	.dbw-myaccount div.dbw-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 10px !important;
	}
	.dbw-myaccount .dbw-card { padding: 14px 8px 10px !important; min-height: 210px !important; }
	.dbw-myaccount .dbw-card__media { width: 56px !important; height: 56px !important; flex-basis: 56px !important; margin-bottom: 10px !important; }
	.dbw-myaccount .dbw-card__initial { font-size: 22px !important; }
	.dbw-myaccount .dbw-card__title { font-size: 13px !important; }
	.dbw-myaccount .dbw-card__meta { font-size: 11px !important; margin-bottom: 10px !important; }
	.dbw-myaccount .dbw-section-title { font-size: 12px !important; }
	.dbw-myaccount__title { font-size: 18px !important; }
	button.dbw-follow-btn--card .dbw-follow-label { gap: 4px !important; }
	button.dbw-follow-btn--card {
		font-size: 12px !important;
		padding: 7px 6px !important;
		min-height: 44px !important;
		max-width: 100% !important;
	}
	.dbw-archive-follow .dbw-follow-btn { max-width: 100% !important; width: 100% !important; }
}

@media (max-width: 360px) {
	.dbw-myaccount .dbw-grid,
	.dbw-myaccount ul.dbw-grid,
	.dbw-myaccount div.dbw-grid {
		grid-template-columns: 1fr !important;
	}
	.dbw-myaccount .dbw-card { min-height: 0 !important; padding: 16px 12px !important; }
}

.dbw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-family: var(--dbw-font);
	font-size: 14px;
	font-weight: 600;
	padding: 10px 14px;
	border-radius: var(--dbw-radius);
	border: 1.5px solid transparent;
	cursor: pointer;
	text-decoration: none;
	min-height: 40px;
	line-height: 1.2;
	transition:
		background-color var(--dbw-transition),
		border-color var(--dbw-transition),
		color var(--dbw-transition);
	-webkit-appearance: none;
	appearance: none;
}

.dbw-btn--primary {
	background: var(--dbw-accent);
	border-color: var(--dbw-accent);
	color: var(--dbw-on-accent);
}

.dbw-btn--primary:hover,
.dbw-btn--primary:focus-visible {
	background: var(--dbw-accent-hover);
	border-color: var(--dbw-accent-hover);
	color: var(--dbw-on-accent);
	text-decoration: none;
}

.dbw-btn--ghost {
	background: transparent;
	color: var(--dbw-text-muted);
	border-color: transparent;
}

.dbw-btn--ghost:hover,
.dbw-btn--ghost:focus-visible {
	color: var(--dbw-danger);
	background: rgba(220, 38, 38, 0.06);
}

.dbw-btn--danger-text {
	background: transparent;
	color: var(--dbw-danger);
	border-color: transparent;
	font-weight: 500;
}

.dbw-btn--danger-text:hover,
.dbw-btn--danger-text:focus-visible {
	background: rgba(220, 38, 38, 0.08);
	color: var(--dbw-danger);
}

.dbw-btn:focus-visible {
	outline: 2px solid var(--dbw-focus, #1A2332);
	box-shadow: 0 0 0 2px #ffffff;
	outline-offset: 2px;
}

/* Empty state */
.dbw-empty {
	text-align: center;
	padding: 56px 24px;
	background: var(--dbw-surface-alt);
	border-radius: var(--dbw-radius-lg);
	border: 1px dashed var(--dbw-border-strong);
}

.dbw-empty__icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	display: block;
	color: var(--dbw-accent-ink);
	opacity: 0.7;
}

.dbw-empty__title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 8px;
	color: var(--dbw-text);
}

.dbw-empty__text {
	font-size: 15px;
	color: var(--dbw-text-muted);
	margin: 0 0 22px;
	max-width: 420px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.5;
}

@media (max-width: 480px) {
	.dbw-empty { padding: 40px 16px; }
	.dbw-empty__icon { width: 48px; height: 48px; }
	.dbw-empty__title { font-size: 18px; }
}

/* -------------------------------------------------------------------------
 * 7. Toasts
 * ------------------------------------------------------------------------- */
.dbw-toasts {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
	max-width: calc(100vw - 40px);
}

.dbw-toast {
	pointer-events: auto;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-width: 240px;
	max-width: 360px;
	padding: 12px 16px;
	border-radius: var(--dbw-radius);
	background: var(--dbw-surface);
	color: var(--dbw-text);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	box-shadow: var(--dbw-shadow-lg);
	border-left: 4px solid var(--dbw-accent);
	opacity: 0;
	transform: translateY(8px) scale(0.98);
	transition:
		opacity 220ms ease-out,
		transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dbw-toast.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.dbw-toast--success { border-left-color: var(--dbw-success); }
.dbw-toast--error   { border-left-color: var(--dbw-danger); }

.dbw-toast__icon {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-top: 1px;
}

.dbw-toast__message { flex: 1; }

.dbw-toast__close {
	background: none;
	border: 0;
	padding: 2px 4px;
	margin: -2px -4px -2px 4px;
	cursor: pointer;
	color: var(--dbw-text-muted);
	font-size: 18px;
	line-height: 1;
	border-radius: var(--dbw-radius-sm);
}

.dbw-toast__close:hover,
.dbw-toast__close:focus-visible {
	color: var(--dbw-text);
	background: var(--dbw-surface-alt);
	outline: none;
}

@media (max-width: 480px) {
	.dbw-toasts {
		right: 12px;
		bottom: 12px;
		left: 12px;
		max-width: none;
	}
	.dbw-toast { min-width: 0; max-width: none; }
}

/* -------------------------------------------------------------------------
 * 8. Unsubscribe confirmation page (standalone)
 * ------------------------------------------------------------------------- */
.dbw-unsub-page {
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--dbw-surface-alt);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--dbw-text);
	padding: 24px 16px;
	box-sizing: border-box;
}

.dbw-unsub-card {
	background: var(--dbw-surface);
	border-radius: var(--dbw-radius-lg);
	padding: 48px 40px;
	max-width: 480px;
	width: 100%;
	text-align: center;
	box-shadow: var(--dbw-shadow);
	box-sizing: border-box;
}

.dbw-unsub-card__brand {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--dbw-accent-ink);
	margin: 0 0 24px;
}

.dbw-unsub-card__icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 20px;
	display: block;
	color: var(--dbw-accent-ink);
}

.dbw-unsub-card--invalid .dbw-unsub-card__icon { color: var(--dbw-text-muted); }

.dbw-unsub-card__title {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 12px;
	letter-spacing: -0.01em;
}

.dbw-unsub-card__text {
	font-size: 15px;
	line-height: 1.6;
	color: var(--dbw-text-muted);
	margin: 0 0 28px;
}

.dbw-unsub-card__actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

@media (max-width: 480px) {
	.dbw-unsub-card { padding: 32px 22px; }
	.dbw-unsub-card__title { font-size: 20px; }
}

/* -------------------------------------------------------------------------
 * 9. Reduced motion
 * ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.dbw-follow-btn,
	.dbw-follow-inline,
	.dbw-band-card,
	.dbw-btn,
	.dbw-toast,
	.dbw-follow-btn__icon {
		transition: none !important;
		animation: none !important;
	}
	.dbw-follow-btn:hover { transform: none; }
	.dbw-band-card:hover  { transform: none; }
}

/* -------------------------------------------------------------------------
 * 10. Dark mode (only when not overridden by theme)
 * ------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
	:root {
		--dbw-text: #e6eaf2;
		--dbw-text-muted: #9aa3b2;
		--dbw-surface: #161b26;
		--dbw-surface-alt: #1d2330;
		--dbw-border: #2a3142;
		--dbw-border-strong: #3a4255;
		--dbw-accent-soft: rgba(111, 185, 150, 0.16);
		--dbw-heart-soft: rgba(238, 86, 100, 0.16);
		--dbw-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
		--dbw-shadow:    0 4px 16px rgba(0, 0, 0, 0.45);
		--dbw-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
	}

	.dbw-follow-btn[data-state="following"],
	.dbw-follow-btn.is-following {
		background: var(--dbw-surface);
	}

	.dbw-band-card__media {
		background: linear-gradient(135deg, #1d2638 0%, #232f47 100%);
	}
}

/* -------------------------------------------------------------------------
 * 11. Visually hidden helper (a11y)
 * ------------------------------------------------------------------------- */
.dbw-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0);
	white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------------------
 * Follow button right after the click, and on touch screens.
 * The "Smetti di seguire" label is a hover / keyboard-focus hint. Right after
 * "Segui" the pointer is still on the button, and on a touch screen the hover
 * state sticks after the tap: in both cases keep "Band seguita".
 * Kept at the end of the file: same specificity as the hover rules above.
 * ------------------------------------------------------------------------- */
button.dbw-follow-btn[data-state="following"][data-dbw-just] > .dbw-follow-label--following {
	display: inline-flex !important;
}
button.dbw-follow-btn[data-state="following"][data-dbw-just] > .dbw-follow-label--unfollow {
	display: none !important;
}
/* :where() keeps these as weak as the red hover rule they replace, so a site
 * stylesheet that restyles the button (dark panel) still wins. */
button.dbw-follow-btn[data-state="following"]:where([data-dbw-just]):hover,
button.dbw-follow-btn[data-state="following"]:where([data-dbw-just]):focus-visible {
	background: var(--dbw-accent-soft, #E8F5EE) !important;
	color: var(--dbw-accent-ink, #2A6348) !important;
	border-color: var(--dbw-accent-ink, #2A6348) !important;
	box-shadow: 0 1px 2px rgba(42, 99, 72, 0.12) !important;
}
@media (hover: none) {
	button.dbw-follow-btn[data-state="following"]:hover > .dbw-follow-label--following {
		display: inline-flex !important;
	}
	button.dbw-follow-btn[data-state="following"]:hover > .dbw-follow-label--unfollow {
		display: none !important;
	}
	button.dbw-follow-btn[data-state="following"]:hover {
		background: var(--dbw-accent-soft, #E8F5EE) !important;
		color: var(--dbw-accent-ink, #2A6348) !important;
		border-color: var(--dbw-accent-ink, #2A6348) !important;
		box-shadow: 0 1px 2px rgba(42, 99, 72, 0.12) !important;
	}
}

/* -------------------------------------------------------------------------
 * Keyboard focus of the small "close / clear" controls: their hover rules
 * remove the outline, so they get the same double ring as the other controls.
 * ------------------------------------------------------------------------- */
.dbw-info__close:focus-visible,
.dbw-myaccount .dbw-search__clear:focus-visible,
.dbw-toast__close:focus-visible {
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--dbw-focus, #1A2332) !important;
}

/* -------------------------------------------------------------------------
 * Touch target of the small "close / clear" controls: the glyph stays small,
 * an invisible area around it brings the target to 44 px.
 * ------------------------------------------------------------------------- */
.dbw-info__close,
.dbw-myaccount .dbw-search__clear,
.dbw-toast__close { overflow: visible !important; }
.dbw-toast__close { position: relative; }
.dbw-info__close::after,
.dbw-myaccount .dbw-search__clear::after,
.dbw-toast__close::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
}

/* -------------------------------------------------------------------------
 * Card follow button: room for the longest label ("Smetti di seguire") in the
 * narrow cards. Same selector weight as the card rule above, so it applies at
 * every width (the earlier per-breakpoint padding lost to that rule).
 * ------------------------------------------------------------------------- */
.dbw-myaccount .dbw-card__actions button.dbw-follow-btn--card {
	padding-left: 6px !important;
	padding-right: 6px !important;
}
.dbw-myaccount .dbw-card__actions button.dbw-follow-btn--card .dbw-follow-label {
	gap: 4px !important;
}
