/* ==========================================================================
   Buonanotte — Sherlock
   ========================================================================== */

.bns-widget {
	--bns-lilac: #b9a6d9;
	--bns-lilac-deep: #8e76b8;
	--bns-lilac-light: #f2ecfa;
	--bns-ink: #2b2436;
	--bns-muted: #6b6178;
	--bns-cream: #fbf9fc;
	--bns-gold: #f3c86b;
	--bns-text: var(--bns-ink);
	--bns-text-soft: var(--bns-muted);
	/* Colori del tema del sito (WoodMart + CSS personalizzato) */
	--bns-brand: #80658b;
	--bns-brand-hover: #6d5577;
	--bns-brand-shadow: rgba(128, 101, 139, 0.55);
	--bns-heading: #242424;
	--bns-body: #59515e;
	font-family: inherit;
	color: var(--bns-text);
	box-sizing: border-box;
}
.bns-widget *,
.bns-widget *::before,
.bns-widget *::after {
	box-sizing: border-box;
}

/* Il tema (WoodMart) stila bottoni, campi e titoli in modo globale: qui lo neutralizziamo
   solo dentro il widget, con specificità sufficiente a battere i selettori del tema. */
.bns-widget button,
.bns-widget input,
.bns-widget select {
	font-family: inherit;
	text-transform: none;
	letter-spacing: normal;
	min-height: 0;
	height: auto;
	margin: 0;
	box-shadow: none;
	text-shadow: none;
}
.bns-widget h3,
.bns-widget h4 {
	font-family: inherit;
	text-transform: none;
	letter-spacing: normal;
	font-weight: 800;
}
.bns-widget a {
	text-transform: none;
}

/* ---------------------------------------------------------------- messaggi */

.bns-messages {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px 16px;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	scrollbar-color: rgba(185, 166, 217, 0.5) transparent;
}

.bns-msg {
	max-width: 88%;
	font-size: 14px;
	line-height: 1.5;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
.bns-msg.assistant {
	align-self: flex-start;
	padding: 10px 13px;
	border-radius: 14px 14px 14px 4px;
	background: #fff;
	border: 1px solid rgba(43, 36, 54, 0.08);
}
.bns-msg.user {
	align-self: flex-end;
	padding: 8px 13px;
	border-radius: 14px 14px 4px 14px;
	background: var(--bns-lilac);
	color: #fff;
	font-weight: 600;
}
.bns-msg.error {
	align-self: center;
	max-width: 100%;
	padding: 8px 12px;
	border-radius: 10px;
	background: #fdeaea;
	color: #8a2b2b;
	font-size: 13px;
}
.bns-msg.typing {
	align-self: flex-start;
	font-size: 13px;
	font-style: italic;
	color: var(--bns-text-soft);
}
.bns-msg.is-typing::after {
	content: "";
	display: inline-block;
	width: 0.55em;
	height: 1em;
	margin-left: 2px;
	vertical-align: -0.15em;
	background: currentColor;
	opacity: 0.7;
	animation: bns-caret 0.8s steps(1) infinite;
}
@keyframes bns-caret {
	50% { opacity: 0; }
}

.bns-dots i {
	display: inline-block;
	width: 4px;
	height: 4px;
	margin-left: 3px;
	border-radius: 50%;
	background: currentColor;
	animation: bns-dot 1.1s infinite ease-in-out;
}
.bns-dots i:nth-child(2) { animation-delay: 0.15s; }
.bns-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bns-dot {
	0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
	40% { transform: translateY(-4px); opacity: 1; }
}

/* ---------------------------------------------------------------- opzioni */

.bns-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 2px 0 4px;
}
.bns-widget .bns-option {
	border: 1.5px solid var(--bns-lilac);
	background: #fff;
	color: var(--bns-ink);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	padding: 8px 13px;
	border-radius: 999px;
	cursor: pointer;
	opacity: 0;
	animation: bns-pop 0.35s cubic-bezier(0.2, 0.8, 0.3, 1.2) forwards;
	transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.bns-widget .bns-option:hover,
.bns-widget .bns-option:focus-visible {
	background: var(--bns-lilac);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(142, 118, 184, 0.35);
	outline: none;
}
.bns-widget .bns-option:active {
	transform: translateY(0);
}
@keyframes bns-pop {
	from { opacity: 0; transform: translateY(6px) scale(0.96); }
	to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- avanzamento */

.bns-progress {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px 0;
}
.bns-progress-label {
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bns-lilac-deep);
}
.bns-progress-track {
	position: relative;
	flex: 1;
	height: 4px;
	border-radius: 4px;
	background: rgba(142, 118, 184, 0.18);
	overflow: hidden;
}
.bns-progress-track i {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 10%;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--bns-lilac), var(--bns-lilac-deep));
	transition: width 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.bns-solved .bns-progress-track i {
	background: linear-gradient(90deg, var(--bns-lilac), var(--bns-gold));
}

/* ---------------------------------------------------------------- scrivi tu */

.bns-widget .bns-write-toggle {
	align-self: center;
	margin: 0 auto 8px;
	padding: 4px;
	background: none;
	border: none;
	color: var(--bns-text-soft);
	font-size: 12px;
	text-decoration: underline;
	cursor: pointer;
}
.bns-widget .bns-form {
	display: none;
	gap: 8px;
	padding: 10px 12px 12px;
}
.bns-widget .bns-form.bns-visible {
	display: flex;
}
.bns-widget .bns-form input {
	flex: 1;
	min-width: 0;
	border: 1px solid rgba(43, 36, 54, 0.15);
	border-radius: 10px;
	padding: 9px 12px;
	font-size: 14px;
	background: #fff;
	color: var(--bns-ink);
}
.bns-widget .bns-form button {
	border: none;
	background: var(--bns-lilac-deep);
	color: #fff;
	border-radius: 10px;
	padding: 0 16px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

/* ---------------------------------------------------------------- suono */

.bns-widget .bns-sound {
	border: none;
	background: transparent;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	padding: 6px;
	border-radius: 8px;
	opacity: 0.75;
	transition: opacity 0.15s ease;
}
.bns-widget .bns-sound:hover {
	opacity: 1;
}

/* ---------------------------------------------------------------- timbro + coriandoli */

.bns-stamp {
	position: absolute;
	left: 50%;
	top: 42%;
	z-index: 6;
	padding: 10px 22px;
	border: 4px solid var(--bns-gold);
	border-radius: 10px;
	color: var(--bns-gold);
	font-family: inherit;
	font-size: 24px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, -50%) rotate(-10deg) scale(2.4);
	text-shadow: 0 0 18px rgba(243, 200, 107, 0.55);
	box-shadow: 0 0 24px rgba(243, 200, 107, 0.35), inset 0 0 18px rgba(243, 200, 107, 0.2);
	background: rgba(20, 16, 26, 0.72);
}
.bns-stamp.is-on {
	animation: bns-stamp 2.6s cubic-bezier(0.2, 0.9, 0.3, 1.25) forwards;
}
@keyframes bns-stamp {
	0% { opacity: 0; transform: translate(-50%, -50%) rotate(-10deg) scale(2.4); }
	14% { opacity: 1; transform: translate(-50%, -50%) rotate(-10deg) scale(1); }
	80% { opacity: 1; transform: translate(-50%, -50%) rotate(-10deg) scale(1); }
	100% { opacity: 0; transform: translate(-50%, -50%) rotate(-10deg) scale(0.96); }
}

.bns-confetti {
	position: absolute;
	inset: 0;
	z-index: 5;
	pointer-events: none;
	overflow: hidden;
}
.bns-confetti i {
	position: absolute;
	top: -12px;
	width: 7px;
	height: 11px;
	border-radius: 2px;
	animation: bns-fall linear forwards;
}
@keyframes bns-fall {
	to { transform: translate(var(--bns-dx), 520px) rotate(var(--bns-rot)); opacity: 0.2; }
}

/* ---------------------------------------------------------------- verdetto (card) */

.bns-verdict {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.bns-widget .bns-verdict-head {
	text-align: center;
}
.bns-verdict-kicker {
	display: inline-block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bns-lilac-deep);
}
.bns-widget .bns-verdict-head h3 {
	margin: 6px 0 0;
	font-size: 28px;
	line-height: 1.2;
	color: var(--bns-ink);
}

.bns-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 16px;
}
.bns-mode-floating .bns-cards {
	grid-template-columns: 1fr;
	gap: 12px;
}

.bns-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid rgba(43, 36, 54, 0.08);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(43, 36, 54, 0.08);
	opacity: 0;
	animation: bns-rise 0.55s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bns-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(43, 36, 54, 0.14);
}
@keyframes bns-rise {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}
.bns-card:first-child {
	border: 2px solid var(--bns-lilac);
}
.bns-card-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--bns-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}
.bns-card-media {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--bns-lilac-light);
}
.bns-card-media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}
.bns-mode-floating .bns-card {
	flex-direction: row;
}
.bns-mode-floating .bns-card-media {
	flex: 0 0 96px;
	aspect-ratio: auto;
}
.bns-mode-floating .bns-card-badge {
	top: 6px;
	left: 6px;
	font-size: 10px;
	padding: 3px 7px;
}
.bns-widget .bns-card-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 16px 16px;
	flex: 1;
}
.bns-mode-floating .bns-card-body {
	padding: 10px 12px 12px;
	gap: 6px;
}
.bns-widget .bns-card-body h4 {
	margin: 0;
	font-size: 18px;
	line-height: 1.25;
	color: var(--bns-ink);
}
.bns-card-reason {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--bns-muted);
}
.bns-card-reason::before {
	content: "🔎 ";
}
.bns-widget .bns-card-size {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
	color: var(--bns-muted);
}
.bns-widget .bns-card-size select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid rgba(43, 36, 54, 0.18);
	border-radius: 10px;
	background: #fff;
	font-size: 14px;
	color: var(--bns-ink);
}
.bns-card-price {
	font-size: 18px;
	font-weight: 800;
	color: var(--bns-ink);
}
.bns-card-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: auto;
}
.bns-widget .bns-cart-btn {
	flex: 1 1 auto;
	border: none;
	border-radius: 12px;
	padding: 12px 16px;
	background: var(--bns-ink);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.12s ease;
}
.bns-widget .bns-cart-btn:hover:not(:disabled) {
	background: var(--bns-lilac-deep);
	transform: translateY(-1px);
}
.bns-widget .bns-cart-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
.bns-widget .bns-cart-btn.is-done {
	background: #3f8f5b;
	opacity: 1;
}
.bns-widget .bns-card-link {
	font-size: 13px;
	font-weight: 600;
	color: var(--bns-lilac-deep);
	text-decoration: none;
}
.bns-widget .bns-card-link:hover {
	text-decoration: underline;
}
.bns-card-note {
	min-height: 0;
	font-size: 12px;
	color: #8a2b2b;
}
.bns-widget .bns-go-cart {
	display: inline-block;
	font-size: 14px;
	font-weight: 700;
	color: #3f8f5b;
	text-decoration: none;
}

/* ---------------------------------------------------------------- email */

.bns-email {
	padding: 18px 20px;
	border-radius: 18px;
	background: var(--bns-lilac-light);
	border: 1px dashed var(--bns-lilac);
}
.bns-email-title {
	font-size: 16px;
	font-weight: 800;
	color: var(--bns-ink);
}
.bns-email-text {
	margin: 4px 0 10px;
	font-size: 13px;
	color: var(--bns-muted);
}
.bns-widget .bns-email-row {
	display: flex;
	gap: 8px;
}
.bns-widget .bns-email-row input {
	flex: 1;
	min-width: 0;
	padding: 11px 12px;
	border: 1px solid rgba(43, 36, 54, 0.18);
	border-radius: 10px;
	font-size: 14px;
	background: #fff;
}
.bns-widget .bns-email-row button {
	border: none;
	border-radius: 10px;
	padding: 0 16px;
	background: var(--bns-lilac-deep);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
.bns-widget .bns-email-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin-top: 10px;
	font-size: 13px;
	color: var(--bns-ink);
	cursor: pointer;
}
.bns-widget .bns-email-privacy {
	margin: 8px 0 0;
	font-size: 11px;
	color: var(--bns-muted);
}
.bns-widget .bns-email-privacy a {
	color: var(--bns-lilac-deep);
}
.bns-email-msg {
	margin-top: 6px;
	font-size: 13px;
	color: #8a2b2b;
}
.bns-email-done {
	font-size: 15px;
	font-weight: 700;
	color: #3f8f5b;
}

/* Modulo «Napíšte nám»: esiste solo dopo una risposta senza corrispondenza. */
.bns-widget .bns-contact {
	align-self: stretch;
	margin: 4px 0;
}
.bns-widget .bns-contact-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.bns-widget .bns-contact-fields input,
.bns-widget .bns-contact-fields textarea {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	padding: 11px 12px;
	border: 1px solid rgba(43, 36, 54, 0.18);
	border-radius: 10px;
	font: inherit;
	font-size: 14px;
	color: var(--bns-ink);
	background: #fff;
}
.bns-widget .bns-contact-fields textarea {
	grid-column: 1 / -1;
	resize: vertical;
	min-height: 78px;
}
.bns-widget .bns-contact-fields .bns-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}
.bns-widget .bns-contact-actions {
	margin-top: 8px;
}
.bns-widget .bns-contact-actions button {
	border: none;
	border-radius: 10px;
	padding: 11px 18px;
	background: var(--bns-lilac-deep);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
.bns-widget .bns-contact-actions button:disabled {
	opacity: 0.6;
	cursor: default;
}
@media (max-width: 520px) {
	.bns-widget .bns-contact-fields {
		grid-template-columns: 1fr;
	}
}

.bns-widget .bns-restart {
	align-self: center;
	border: 1.5px solid var(--bns-lilac);
	background: transparent;
	color: var(--bns-lilac-deep);
	border-radius: 999px;
	padding: 9px 18px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
.bns-widget .bns-restart:hover {
	background: var(--bns-lilac-light);
}

/* ==========================================================================
   Modalità flottante
   ========================================================================== */

.bns-mode-floating {
	position: fixed;
	right: 20px;
	bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	z-index: 99999;
	transition: bottom 0.25s ease;
}
/* Il bottone "torna su" di WoodMart sale sopra la bolla. */
body.bns-has-float .scrollToTop {
	bottom: 96px;
}
.bns-widget .bns-toggle {
	position: relative;
	display: block;
	width: 62px;
	height: 62px;
	padding: 0;
	border-radius: 50%;
	border: 3px solid #fff;
	background: var(--bns-lilac);
	box-shadow: 0 8px 24px rgba(43, 36, 54, 0.28), 0 0 0 0 rgba(185, 166, 217, 0.6);
	cursor: pointer;
	overflow: hidden;
	transition: transform 0.2s ease;
	animation: bns-ring 2.8s ease-out 1.5s 3;
}
.bns-widget .bns-toggle img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
	transition: opacity 0.2s ease;
}
.bns-widget .bns-toggle-close {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	line-height: 1;
	color: #1b1624;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.bns-widget.bns-open .bns-toggle img {
	opacity: 0;
}
.bns-widget.bns-open .bns-toggle-close {
	opacity: 1;
}
.bns-widget .bns-toggle:hover {
	transform: scale(1.06);
}
@keyframes bns-ring {
	0% { box-shadow: 0 8px 24px rgba(43, 36, 54, 0.28), 0 0 0 0 rgba(185, 166, 217, 0.6); }
	100% { box-shadow: 0 8px 24px rgba(43, 36, 54, 0.28), 0 0 0 16px rgba(185, 166, 217, 0); }
}
.bns-mode-floating .bns-teaser {
	position: absolute;
	right: 0;
	bottom: 76px;
	display: flex;
	align-items: flex-start;
	gap: 4px;
	width: max-content;
	max-width: min(260px, calc(100vw - 40px));
	padding: 10px 8px 10px 14px;
	background: #fff;
	color: var(--bns-ink);
	border-radius: 16px 16px 4px 16px;
	box-shadow: 0 10px 30px rgba(43, 36, 54, 0.22);
	animation: bns-rise 0.35s ease both;
}
.bns-mode-floating .bns-teaser[hidden],
.bns-mode-floating.bns-open .bns-teaser {
	display: none;
}
.bns-widget .bns-teaser-text {
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	color: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
}
.bns-widget .bns-teaser-close {
	flex: none;
	width: 22px;
	height: 22px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--bns-muted);
	font-size: 18px;
	line-height: 22px;
	cursor: pointer;
}
.bns-mode-floating .bns-panel {
	display: none;
	position: absolute;
	right: 0;
	bottom: 76px;
	flex-direction: column;
	width: 380px;
	max-width: calc(100vw - 24px);
	height: 580px;
	max-height: 75vh;
	background: var(--bns-cream);
	border-radius: 20px;
	box-shadow: 0 18px 50px rgba(43, 36, 54, 0.3);
	overflow: hidden;
}
.bns-mode-floating.bns-open .bns-panel {
	display: flex;
	animation: bns-rise 0.3s ease forwards;
}
.bns-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 12px 12px 16px;
	background: var(--bns-lilac-light);
	border-bottom: 1px solid rgba(43, 36, 54, 0.06);
}
.bns-header-text {
	flex: 1;
}
.bns-header strong {
	display: block;
	font-size: 15px;
	color: var(--bns-ink);
}
.bns-header span {
	display: block;
	font-size: 12px;
	color: var(--bns-muted);
}
.bns-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	background: #fff;
}
.bns-mode-floating .bns-verdict {
	padding-top: 4px;
}
.bns-mode-floating .bns-email {
	padding: 14px;
}
.bns-mode-floating .bns-email-row {
	flex-direction: column;
}
.bns-mode-floating .bns-email-row button {
	padding: 10px;
}

/* ==========================================================================
   Modalità embed: Sherlock + TV
   ========================================================================== */

.bns-home-embed-wrap {
	padding: 40px 20px 56px;
	background: #fff;
}

.bns-mode-embed {
	max-width: 1100px;
	margin: 0 auto;
}
.bns-embed {
	position: relative;
}
.bns-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 2;
	background: #fff;
	overflow: hidden;
	border-radius: 16px;
}
.bns-poster,
.bns-vid {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
	user-select: none;
	/* lo sfondo dei video è bianco "quasi puro" (#fdfffc): lo portiamo a #fff per non vedere il riquadro */
	filter: brightness(1.025);
}
.bns-vid {
	opacity: 0;
	transition: opacity 0.3s ease;
}
.bns-vid.is-active {
	opacity: 1;
}

.bns-embed-label {
	position: absolute;
	left: 9%;
	top: 1.5%;
	z-index: 3;
	padding: 9px 18px;
	border-radius: 999px;
	background: var(--bns-lilac-deep);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	box-shadow: 0 8px 20px rgba(43, 36, 54, 0.25);
	animation: bns-float 2.8s ease-in-out infinite;
	pointer-events: none;
}
@keyframes bns-float {
	0%, 100% { transform: translateY(0) rotate(-3deg); }
	50% { transform: translateY(-8px) rotate(2deg); }
}

/* Lo schermo: coordinate misurate sui video (bordi del pannello nero, in % dello stage). */
.bns-screen {
	--bns-text: #efe9fb;
	--bns-text-soft: #b7abcb;
	position: absolute;
	left: 38.4%;
	top: 36.1%;
	width: 55.2%;
	height: 43.4%;
	z-index: 4;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	color: var(--bns-text);
	border-radius: 3px;
	opacity: 0;
}
.bns-screen.bns-power-on {
	animation: bns-power 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes bns-power {
	0% { opacity: 1; transform: scale(0.6, 0.004); filter: brightness(4); }
	35% { opacity: 1; transform: scale(1, 0.004); filter: brightness(3); }
	70% { opacity: 1; transform: scale(1, 1); filter: brightness(1.6); }
	100% { opacity: 1; transform: none; filter: none; }
}

.bns-screen-fx {
	position: absolute;
	inset: 0;
	z-index: 7;
	pointer-events: none;
	background:
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 3px),
		radial-gradient(ellipse at 50% 40%, rgba(185, 166, 217, 0.12), transparent 70%);
	box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.bns-screen > .bns-sound {
	position: absolute;
	top: 4px;
	right: 4px;
	z-index: 8;
}
.bns-screen .bns-progress {
	padding: 12px 44px 0 18px;
}
.bns-screen .bns-progress-label {
	color: var(--bns-lilac);
	text-shadow: 0 0 8px rgba(185, 166, 217, 0.5);
}
.bns-screen .bns-progress-track {
	background: rgba(255, 255, 255, 0.12);
}
.bns-screen .bns-progress-track i {
	box-shadow: 0 0 10px rgba(185, 166, 217, 0.8);
}
.bns-screen .bns-messages {
	padding: 10px 18px;
}
.bns-screen .bns-msg {
	font-size: 15px;
}
.bns-screen .bns-msg.assistant {
	max-width: 94%;
	padding: 2px 0 2px 12px;
	background: none;
	border: none;
	border-left: 2px solid var(--bns-lilac);
	border-radius: 0;
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 14px;
	color: var(--bns-text);
	text-shadow: 0 0 6px rgba(239, 233, 251, 0.25);
}
.bns-screen .bns-msg.user {
	background: rgba(185, 166, 217, 0.22);
	border: 1px solid rgba(185, 166, 217, 0.55);
	color: #fff;
}
.bns-screen .bns-msg.error {
	background: rgba(255, 120, 120, 0.12);
	color: #ffb9b9;
}
.bns-screen .bns-option {
	background: transparent;
	color: var(--bns-text);
	border-color: rgba(185, 166, 217, 0.8);
}
.bns-screen .bns-option:hover,
.bns-screen .bns-option:focus-visible {
	background: var(--bns-lilac);
	color: #1b1624;
	box-shadow: 0 0 18px rgba(185, 166, 217, 0.55);
}
.bns-screen .bns-write-toggle {
	color: var(--bns-lilac);
}
.bns-screen .bns-form input {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.2);
	color: #fff;
}

/* Assistenza: niente barra indizi; card con i contatti umani. */
.bns-widget.bns-support .bns-progress {
	display: none;
}
.bns-widget .bns-contact-card {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 10px;
	animation: bns-pop 0.35s ease both;
}
.bns-widget a.bns-contact-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 13px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	background: var(--bns-lilac);
	color: #1b1624;
	border: 1px solid var(--bns-lilac);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bns-widget a.bns-contact-btn:hover,
.bns-widget a.bns-contact-btn:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 0 16px rgba(185, 166, 217, 0.6);
	color: #1b1624;
}
.bns-widget a.bns-contact-btn.is-wa {
	background: #25d366;
	border-color: #25d366;
	color: #fff;
}
.bns-widget a.bns-contact-btn.is-page {
	background: transparent;
	color: var(--bns-text);
	border-color: rgba(185, 166, 217, 0.8);
}

.bns-results {
	display: none;
	padding-top: 28px;
}
.bns-results.is-open {
	display: block;
}

/* Mobile: la TV è troppo piccola per la chat. La scena resta sopra,
   lo "schermo" diventa una card scura sotto con lo stesso stile. */
@media (max-width: 680px) {
	.bns-home-embed-wrap {
		padding: 24px 14px 36px;
	}
	.bns-embed-label {
		left: 38.4%;
		top: 36.1%;
		width: 55.2%;
		height: 43.4%;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0;
		border-radius: 3px;
		background: transparent;
		box-shadow: none;
		color: var(--bns-lilac);
		font-size: 14px;
		text-shadow: 0 0 10px rgba(185, 166, 217, 0.7);
		animation: bns-blink 2.2s ease-in-out infinite;
	}
	@keyframes bns-blink {
		0%, 100% { opacity: 1; }
		50% { opacity: 0.55; }
	}
	.bns-screen {
		position: relative;
		left: auto;
		top: auto;
		width: 100%;
		height: auto;
		min-height: 380px;
		max-height: 80vh;
		margin-top: 12px;
		border-radius: 18px;
		border: 8px solid #1d1b22;
		background: #0c0a10;
		box-shadow: 0 14px 36px rgba(43, 36, 54, 0.25);
	}
	.bns-cards {
		grid-template-columns: 1fr;
	}
	.bns-widget .bns-verdict-head h3 {
		font-size: 22px;
	}
	.bns-widget .bns-email-row {
		flex-direction: column;
	}
	.bns-widget .bns-email-row button {
		padding: 11px;
	}
	.bns-mode-floating {
		right: 14px;
		bottom: calc(14px + env(safe-area-inset-bottom, 0px));
	}
	.bns-mode-floating .bns-panel {
		width: calc(100vw - 28px);
		max-height: calc(100vh - 110px);
		max-height: calc(100dvh - 110px);
	}
	.bns-widget .bns-toggle {
		width: 56px;
		height: 56px;
	}
	body.bns-has-float .scrollToTop {
		bottom: 84px;
	}
}

/* ==========================================================================
   Verdetto e card prodotto allineati al tema (fuori dallo schermo della TV)
   ========================================================================== */

.bns-widget .bns-verdict-head h2,
.bns-widget .bns-verdict-head h3 {
	font-family: inherit;
	font-weight: 600;
	color: var(--bns-heading);
	letter-spacing: 0;
}
.bns-widget .bns-card {
	background: #fff;
	border: 1px solid #ece6ee;
	border-radius: 12px;
	box-shadow: 0 10px 30px -18px rgba(45, 37, 51, 0.35);
	color: var(--bns-body);
}
.bns-widget .bns-card:first-child {
	border: 2px solid var(--bns-brand);
}
.bns-widget .bns-card-badge {
	background: var(--bns-brand);
	color: #fff;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}
.bns-widget .bns-card-media {
	background: #f7f5f8;
}
.bns-widget .bns-card h3,
.bns-widget .bns-card h4 {
	font-family: inherit;
	font-weight: 600;
	color: var(--bns-heading);
}
.bns-widget .bns-card-reason {
	color: var(--bns-body);
}
.bns-widget .bns-card-price {
	color: var(--bns-brand);
	font-weight: 600;
}
.bns-widget .bns-card-size select {
	border: 1px solid #e9e9e9;
	border-radius: 6px;
	font-family: inherit;
	color: var(--bns-heading);
}
.bns-widget .bns-cart-btn,
.bns-widget .bns-go-cart,
.bns-widget .bns-email button {
	background: var(--bns-brand);
	color: #fff;
	border: 0;
	border-radius: 6px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	box-shadow: 0 8px 20px -8px var(--bns-brand-shadow);
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.bns-widget .bns-cart-btn:hover:not(:disabled),
.bns-widget .bns-cart-btn:focus-visible:not(:disabled),
.bns-widget .bns-go-cart:hover,
.bns-widget .bns-email button:hover {
	background: var(--bns-brand-hover);
	color: #fff;
	transform: translateY(-1px);
}
.bns-widget .bns-cart-btn:disabled {
	background: #c9bccd;
	box-shadow: none;
	transform: none;
}
.bns-widget .bns-card-link {
	color: var(--bns-brand);
	font-weight: 600;
}
.bns-widget .bns-card-link:hover {
	color: var(--bns-brand-hover);
}
.bns-widget .bns-email {
	border-radius: 12px;
}
.bns-widget .bns-email input[type="email"] {
	border: 1px solid #e9e9e9;
	border-radius: 6px;
	font-family: inherit;
}
.bns-widget .bns-restart {
	background: transparent;
	color: var(--bns-brand);
	border: 1.5px solid var(--bns-brand);
	border-radius: 6px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}
.bns-widget .bns-restart:hover {
	background: var(--bns-brand);
	color: #fff;
}

/* Icone a linea nei bottoni (al posto delle emoji) */
.bns-widget .bns-option,
.bns-widget a.bns-contact-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}
.bns-widget .bns-ico {
	flex: none;
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0.9;
}
.bns-screen .bns-option .bns-ico {
	color: var(--bns-lilac);
	opacity: 1;
}
.bns-screen .bns-option:hover .bns-ico,
.bns-screen .bns-option:focus-visible .bns-ico {
	color: currentColor;
}

.bns-widget .bns-sound {
	color: var(--bns-muted);
}
.bns-screen > .bns-sound {
	color: var(--bns-lilac);
}
.bns-widget .bns-sound .bns-ico {
	width: 18px;
	height: 18px;
}

.bns-widget .bns-sources {
	margin: -4px 0 10px;
	font-size: 12px;
	color: var(--bns-muted);
}
.bns-widget .bns-sources a {
	color: var(--bns-lilac-deep);
	text-decoration: underline;
}
.bns-screen .bns-sources {
	color: rgba(239, 233, 251, 0.6);
}
.bns-screen .bns-sources a {
	color: var(--bns-lilac);
}

/* Card a larghezza fissa e centrate: 1, 2 o 3 prodotti hanno sempre la stessa misura. */
.bns-widget .bns-cards {
	grid-template-columns: repeat(auto-fit, 280px);
	justify-content: center;
}
.bns-widget .bns-card-media {
	aspect-ratio: 4 / 3;
	max-height: 210px;
}
.bns-widget.bns-mode-embed .bns-email {
	max-width: 620px;
	margin-left: auto;
	margin-right: auto;
}
.bns-widget.bns-mode-embed .bns-restart {
	display: table;
	margin-left: auto;
	margin-right: auto;
}
@media (max-width: 680px) {
	.bns-widget .bns-cards {
		grid-template-columns: minmax(0, 320px);
	}
	.bns-widget .bns-card-media {
		max-height: 200px;
	}
}
.bns-widget.bns-mode-floating .bns-cards {
	grid-template-columns: 1fr;
}
.bns-widget.bns-mode-floating .bns-card-media {
	max-height: none;
	aspect-ratio: auto;
}

/* Bolla: sopra la barra fissa "Aggiungi al carrello" di WoodMart
   (la classe wd-sticky-btn-shown sta sulla barra, non sul body). */
body:has(.wd-sticky-btn.wd-sticky-btn-shown) .bns-mode-floating {
	bottom: calc(16px + var(--wd-sticky-btn-height, 60px));
}
body.bns-has-float:has(.wd-sticky-btn.wd-sticky-btn-shown) .scrollToTop {
	bottom: calc(92px + var(--wd-sticky-btn-height, 60px));
}

@media (prefers-reduced-motion: reduce) {
	.bns-embed-label,
	.bns-option,
	.bns-card,
	.bns-screen.bns-power-on,
	.bns-msg.is-typing::after {
		animation: none !important;
		opacity: 1 !important;
	}
}

/* A verdetto dato non serve più scrivere. */
.bns-widget.bns-solved .bns-write-toggle,
.bns-widget.bns-solved .bns-form {
	display: none;
}

/* ---------------------------------------------------------------- 2.0: ordine e supporto via email */

.bns-widget .bns-card-form,
.bns-widget .bns-order-card {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 2px 0 8px;
	padding: 14px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid rgba(43, 36, 54, 0.1);
	box-shadow: 0 6px 20px rgba(43, 36, 54, 0.06);
	animation: bns-pop 0.35s ease both;
	font-size: 14px;
	color: var(--bns-ink);
}
.bns-widget .bns-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--bns-muted);
	text-transform: none;
	letter-spacing: 0;
}
.bns-widget .bns-field input,
.bns-widget .bns-field select,
.bns-widget .bns-field textarea {
	width: 100%;
	min-height: 0;
	height: auto;
	margin: 0;
	padding: 9px 11px;
	border: 1px solid rgba(43, 36, 54, 0.18);
	border-radius: 9px;
	background: #fff;
	color: var(--bns-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 400;
	box-shadow: none;
	text-transform: none;
}
.bns-widget .bns-field textarea {
	resize: vertical;
	min-height: 84px;
}
.bns-widget .bns-field input[type="file"] {
	padding: 7px;
	font-size: 13px;
}
.bns-widget .bns-field input:focus,
.bns-widget .bns-field select:focus,
.bns-widget .bns-field textarea:focus {
	outline: none;
	border-color: var(--bns-brand);
	box-shadow: 0 0 0 3px rgba(128, 101, 139, 0.18);
}
.bns-widget .bns-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.bns-widget .bns-form-note {
	margin: 0;
	font-size: 12px;
	color: var(--bns-muted);
}
.bns-widget .bns-form-note a {
	color: var(--bns-brand);
}
.bns-widget .bns-form-error {
	margin: 0;
	padding: 8px 10px;
	border-radius: 8px;
	background: #fdeaea;
	color: #8a2b2b;
	font-size: 13px;
}
.bns-widget button.bns-form-submit {
	align-self: flex-start;
	margin: 2px 0 0;
	padding: 11px 20px;
	border: none;
	border-radius: 6px;
	background: var(--bns-brand);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 6px 16px var(--bns-brand-shadow);
	transition: background 0.15s ease, transform 0.15s ease;
}
.bns-widget button.bns-form-submit:hover {
	background: var(--bns-brand-hover);
	transform: translateY(-1px);
}
.bns-widget button.bns-form-submit:disabled {
	opacity: 0.6;
	cursor: wait;
	transform: none;
}

.bns-widget .bns-order-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 10px;
	align-items: baseline;
}
.bns-widget .bns-order-head strong {
	font-size: 15px;
	color: var(--bns-heading);
}
.bns-widget .bns-order-head span {
	font-size: 12px;
	color: var(--bns-muted);
}
.bns-widget .bns-order-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: bns-step;
}
.bns-widget .bns-order-steps li {
	margin: 0;
	padding: 6px 4px;
	border-radius: 8px;
	background: #f2eff5;
	color: #9a90a6;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
}
.bns-widget .bns-order-steps li.is-done {
	background: var(--bns-lilac-light);
	color: var(--bns-brand);
}
.bns-widget .bns-order-steps li.is-current {
	background: var(--bns-brand);
	color: #fff;
	box-shadow: 0 4px 12px var(--bns-brand-shadow);
}
.bns-widget .bns-order-status {
	margin: 0;
	font-weight: 600;
}
.bns-widget .bns-order-items {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.bns-widget .bns-order-items li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 13px;
	line-height: 1.35;
}
.bns-widget .bns-order-items img {
	flex: none;
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 8px;
	background: #f6f3f9;
}
.bns-widget .bns-order-facts {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 3px 12px;
	margin: 0;
	padding-top: 8px;
	border-top: 1px solid rgba(43, 36, 54, 0.08);
	font-size: 12px;
}
.bns-widget .bns-order-facts dt {
	margin: 0;
	color: var(--bns-muted);
	font-weight: 400;
}
.bns-widget .bns-order-facts dd {
	margin: 0;
	font-weight: 600;
	color: var(--bns-ink);
}

/* Dentro la TV in homepage: stessi componenti, versione schermo scuro. */
.bns-screen .bns-card-form,
.bns-screen .bns-order-card {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(185, 166, 217, 0.45);
	box-shadow: none;
	color: var(--bns-text);
}
.bns-screen .bns-field {
	color: var(--bns-text-soft);
}
.bns-screen .bns-field input,
.bns-screen .bns-field select,
.bns-screen .bns-field textarea {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.22);
	color: #fff;
}
.bns-screen .bns-field select option {
	color: #1b1624;
}
.bns-screen .bns-form-note {
	color: var(--bns-text-soft);
}
.bns-screen .bns-form-note a {
	color: var(--bns-lilac);
}
.bns-screen button.bns-form-submit {
	background: var(--bns-lilac);
	color: #1b1624;
	box-shadow: 0 0 16px rgba(185, 166, 217, 0.45);
}
.bns-screen .bns-order-head strong,
.bns-screen .bns-order-facts dd {
	color: #fff;
}
.bns-screen .bns-order-head span,
.bns-screen .bns-order-facts dt {
	color: var(--bns-text-soft);
}
.bns-screen .bns-order-steps li {
	background: rgba(255, 255, 255, 0.07);
	color: var(--bns-text-soft);
}
.bns-screen .bns-order-steps li.is-done {
	background: rgba(185, 166, 217, 0.22);
	color: #fff;
}
.bns-screen .bns-order-steps li.is-current {
	background: var(--bns-lilac);
	color: #1b1624;
	box-shadow: 0 0 14px rgba(185, 166, 217, 0.6);
}
.bns-screen .bns-order-facts {
	border-top-color: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   Palette Dormisan (sostituisce quella lilla di Buonanotte; il resto è identico al Lite)
   ========================================================================== */
.bns-widget {
	--bns-lilac: #C6A07D;
	--bns-lilac-deep: #B58352;
	--bns-lilac-light: #F7F7F7;
	--bns-ink: #333333;
	--bns-muted: #888888;
	--bns-cream: #FFFFFF;
	--bns-brand: #B58352;
	--bns-brand-hover: #A8764A;
	--bns-brand-shadow: rgba(181, 131, 82, 0.55);
	--bns-heading: #242424;
	--bns-body: #555555;
}
/* Controls follow their hidden state; free text is available when needed. */
#bns-widget .bns-form[hidden],
#bns-widget .bns-write-toggle[hidden] { display: none !important; }
#bns-widget .bns-form.bns-visible:not([hidden]) { display: flex; }

/* ================================================================
   Cornice Dormisan: fondo bianco, cornice sottile caramello con angoli
   arrotondati, medaglione 3D agganciato in alto a sinistra.
   ================================================================ */
.bns-mode-frame {
	--bns-f-caramel: #B88A44;
	--bns-f-caramel-d: #96702F;
	--bns-f-ivory: #FBF7F0;
	--bns-f-ink: #242424;
	--bns-f-muted: #767676;
	--bns-f-title: "Sansation", Arial, Helvetica, sans-serif;
	--bns-f-body: "Plus Jakarta Sans", -apple-system, system-ui, sans-serif;
	max-width: 1100px;
	margin: 0 auto;
	padding-block: 48px;
	background: #fff;
	font-family: var(--bns-f-body);
	color: var(--bns-f-ink);
}
.bns-mode-frame .bns-frame-stage {
	position: relative;
	padding-top: clamp(52px, 6.5vw, 74px);
}
.bns-mode-frame .bns-frame {
	position: relative;
	/* Altezza già pari a quella col benvenuto: la pagina non salta quando la chat si accende. */
	min-height: 620px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 28px;
	padding: 56px clamp(18px, 6vw, 72px) 48px;
	text-align: center;
	background: #fff;
	border: 2px solid rgba(184, 138, 68, 0.6);
	border-radius: 28px;
	box-shadow: none;
}
.bns-mode-frame .bns-frame::before {
	content: "";
	position: absolute;
	inset: 7px;
	border: 1px solid rgba(184, 138, 68, 0.18);
	border-radius: 22px;
	pointer-events: none;
}

/* Progresso */
.bns-mode-frame .bns-progress {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	background: none;
}
.bns-mode-frame .bns-progress-label {
	font: 600 12px/1 var(--bns-f-body);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--bns-f-caramel-d);
}
.bns-mode-frame .bns-progress-track {
	width: 110px;
	height: 4px;
	border-radius: 4px;
	background: rgba(184, 138, 68, 0.18);
	overflow: hidden;
}
.bns-mode-frame .bns-progress-track i {
	display: block;
	height: 100%;
	background: var(--bns-f-caramel);
	border-radius: 4px;
	transition: width 0.4s ease;
}

/* Domanda corrente */
.bns-mode-frame .bns-messages {
	flex: 0 0 auto;
	width: 100%;
	max-width: 780px;
	max-height: none;
	overflow: visible;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	padding: 0;
	background: none;
}
.bns-mode-frame .bns-msg.assistant {
	align-self: center;
	max-width: 30ch;
	margin: 0 auto;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	font: 400 clamp(22px, 3vw, 34px)/1.22 var(--bns-f-title);
	color: #2f281f;
	text-align: center;
	text-wrap: balance;
	animation: bns-f-in 0.35s ease both;
}
.bns-mode-frame .bns-msg.typing {
	align-self: center;
	background: none;
	border: 0;
	box-shadow: none;
	padding: 18px 0;
	margin: 0;
}
.bns-mode-frame .bns-msg.typing .bns-dots i {
	width: 10px;
	height: 10px;
	background: var(--bns-f-caramel);
}
.bns-mode-frame .bns-msg.error {
	max-width: 46ch;
	margin: 0;
	font-size: 15px;
	text-align: center;
}

/* Bottoni di risposta */
.bns-mode-frame .bns-options {
	align-self: center;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(10px, 1.2vw, 14px);
	margin: 0;
	padding: 0;
}
.bns-mode-frame .bns-option {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: clamp(54px, 5vw, 64px);
	margin: 0;
	padding: 0 clamp(20px, 2.2vw, 30px);
	font: 600 clamp(15px, 1.4vw, 18px)/1.15 var(--bns-f-body);
	color: var(--bns-f-ink);
	background: var(--bns-f-ivory);
	border: 1.5px solid var(--bns-f-caramel);
	border-radius: 999px;
	box-shadow: 0 2px 0 rgba(150, 112, 47, 0.18);
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.bns-mode-frame .bns-option:hover,
.bns-mode-frame .bns-option:focus-visible {
	background: var(--bns-f-caramel);
	border-color: var(--bns-f-caramel);
	color: #fff;
	outline: none;
}
.bns-mode-frame .bns-option:active {
	transform: scale(0.96);
}
.bns-mode-frame .bns-option .bns-ico {
	color: var(--bns-f-caramel);
}
.bns-mode-frame .bns-option:hover .bns-ico,
.bns-mode-frame .bns-option:focus-visible .bns-ico {
	color: #fff;
}

/* Timbro "Prípad vyriešený" */
.bns-mode-frame .bns-stamp {
	position: static;
	display: none;
	padding: 9px 16px;
	font: 700 12px/1 var(--bns-f-body);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #fff;
	background: var(--bns-f-caramel);
	border: 0;
	border-radius: 999px;
	transform: none;
	opacity: 1;
}
.bns-mode-frame.bns-solved .bns-stamp {
	display: inline-block;
	animation: bns-f-stamp 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.bns-mode-frame.bns-solved .bns-progress {
	display: none;
}
.bns-mode-frame.bns-solved .bns-frame {
	min-height: 0;
}

/* Nota IA e audio */
.bns-mode-frame .bns-ai-note {
	margin: 0;
	font-size: 12px;
	color: var(--bns-f-muted);
	background: none;
	padding: 0;
}
.bns-mode-frame .bns-ai-note strong {
	font-weight: 600;
}
/* Avviso privacy (2.4): archivio anonimo, opt-out, link all'informativa */
.bns-privacy-note {
	margin: 4px 0 0;
	font-size: 11px;
	line-height: 1.45;
	color: var(--bns-f-muted, #8a8196);
}
.bns-privacy-note a,
.bns-privacy-note .bns-noarchive {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.bns-privacy-note .bns-noarchive {
	background: none;
	border: 0;
	padding: 0;
	margin: 0 6px 0 2px;
	font: inherit;
	cursor: pointer;
}
.bns-privacy-note .bns-noarchive[aria-pressed="true"] {
	text-decoration: none;
	font-weight: 600;
}
.bns-mode-frame .bns-frame > .bns-sound {
	position: absolute;
	top: 16px;
	right: 18px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: #fff;
	font-size: 15px;
	cursor: pointer;
}

/* Medaglione 3D */
.bns-mode-frame .bns-ram {
	position: absolute;
	left: clamp(16px, 3vw, 40px);
	top: 0;
	z-index: 3;
	width: clamp(108px, 13vw, 150px);
	aspect-ratio: 1;
	perspective: 700px;
}
.bns-mode-frame .bns-ram-bob {
	width: 100%;
	height: 100%;
	animation: bns-f-bob 4s ease-in-out infinite;
}
.bns-mode-frame .bns-ram-coin {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	transform-style: preserve-3d;
	transition: transform 0.25s ease-out;
	background: #fff;
	box-shadow:
		0 0 0 2px rgba(184, 138, 68, 0.6),
		inset 0 -3px 6px rgba(120, 90, 40, 0.16),
		inset 0 3px 4px rgba(255, 255, 255, 0.9),
		0 14px 22px -12px rgba(60, 40, 10, 0.4),
		0 4px 8px -4px rgba(60, 40, 10, 0.2);
}
.bns-mode-frame .bns-ram-face {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	border-radius: 50%;
	opacity: 0;
	transition: opacity 0.14s;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.bns-mode-frame .bns-ram[data-face="neutral"] .bns-face-neutral,
.bns-mode-frame .bns-ram[data-face="think"] .bns-face-think,
.bns-mode-frame .bns-ram[data-face="wink"] .bns-face-wink,
.bns-mode-frame .bns-ram[data-face="smile"] .bns-face-smile {
	opacity: 1;
}
.bns-mode-frame .bns-ram-shine {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	pointer-events: none;
	background: radial-gradient(circle at var(--bns-sx, 30%) var(--bns-sy, 25%), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 45%);
}
.bns-mode-frame .bns-ram.is-spin .bns-ram-coin {
	animation: bns-f-spin 1s cubic-bezier(0.3, 0.7, 0.3, 1);
}
.bns-mode-frame .bns-ram-say {
	position: absolute;
	left: calc(100% + 10px);
	top: 30%;
	padding: 9px 14px;
	font: 600 13px/1.3 var(--bns-f-body);
	color: var(--bns-f-ink);
	white-space: nowrap;
	background: #fff;
	border: 1px solid rgba(184, 138, 68, 0.35);
	border-radius: 999px 999px 999px 4px;
	box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.3);
	opacity: 0;
	transform: translateY(6px) scale(0.92);
	transition: opacity 0.3s, transform 0.3s;
	pointer-events: none;
}
.bns-mode-frame .bns-ram-say.is-on {
	opacity: 1;
	transform: none;
}

/* Card del verdetto: niente toni lilla della Lite */
.bns-mode-frame {
	--bns-lilac-light: #FBF7F0;
}
.bns-mode-frame .bns-card-media {
	background: #fff;
}
.bns-mode-frame .bns-cart-btn:disabled {
	background: #EFE7DA;
	color: #fff;
	box-shadow: none;
}

/* Risultati sotto la cornice, sullo stesso bianco */
.bns-mode-frame .bns-results {
	margin-top: 56px;
	background: #fff;
}

@keyframes bns-f-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}
@keyframes bns-f-stamp {
	from { opacity: 0; transform: scale(1.8) rotate(-6deg); }
	to { opacity: 1; transform: scale(1) rotate(-3deg); }
}
@keyframes bns-f-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}
@keyframes bns-f-spin {
	from { transform: rotateY(0); }
	to { transform: rotateY(360deg); }
}

@media (max-width: 680px) {
	.bns-mode-frame .bns-frame {
		border-radius: 22px;
		min-height: 0;
		padding-top: 84px;
		padding-bottom: 32px;
	}
	.bns-mode-frame .bns-frame::before {
		border-radius: 17px;
	}
	.bns-mode-frame .bns-options {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}
	.bns-mode-frame .bns-ram-say {
		white-space: normal;
		width: max-content;
		max-width: 52vw;
		top: 18%;
	}
}
@media (prefers-reduced-motion: reduce) {
	.bns-mode-frame .bns-ram-bob,
	.bns-mode-frame .bns-ram.is-spin .bns-ram-coin,
	.bns-mode-frame .bns-msg.assistant {
		animation: none;
	}
}


/* Compact optional complements remain visually secondary to the main product. */
.bns-accessories { margin: 0 20px 20px; padding: 18px 0 0; border-top: 1px solid #e6dac5; text-align: left; }
.bns-accessories h5 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: #665239; }
.bns-accessories-intro { margin: 0 0 12px; font-size: 12px; color: #6a6a6a; }
.bns-accessory { display: flex; align-items: flex-start; gap: 12px; padding: 12px; margin-top: 8px; border: 1px solid #ebe4d9; border-radius: 12px; background: #faf8f4; color: #333; text-decoration: none; transition: border-color .2s, background .2s; }
.bns-accessory:hover, .bns-accessory:focus-visible { background: #f5efe5; border-color: #b69a68; outline: 2px solid transparent; }
.bns-accessory img { width: 68px; height: 68px; flex: 0 0 68px; object-fit: contain; border-radius: 8px; background: #fff; }
.bns-accessory-info { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 5px; }
.bns-accessory-info strong { font-size: 13px; line-height: 1.35; }
.bns-accessory-info span { font-size: 12px; line-height: 1.4; color: #666; }
.bns-accessory-info b { font-size: 14px; color: #67502d; }
.bns-accessory-info .bns-accessory-cta { color: #69522e; font-weight: 600; }
@media (max-width: 480px) { .bns-accessories { margin-right: 14px; margin-left: 14px; } .bns-accessory { gap: 9px; padding: 9px; } .bns-accessory img { width: 56px; height: 56px; flex-basis: 56px; } }

/* Comparison, remembered answers and refinement of the same selection. */
.bns-selection-tools{width:100%;margin:24px auto;text-align:left;color:#34312d}
.bns-selection-tools details{border:1px solid #e6dfd4;border-radius:12px;background:#fff;margin:12px 0;padding:16px}
.bns-selection-tools summary{cursor:pointer;font-weight:650;line-height:1.45;color:#65533b}
.bns-selection-tools summary:focus-visible,.bns-comparison-scroll:focus-visible{outline:2px solid #9b723d;outline-offset:3px}
.bns-comparison-scroll{overflow-x:auto;margin-top:16px;max-width:100%}
.bns-comparison{width:100%;border-collapse:collapse;font-size:14px;line-height:1.5;text-align:left}
.bns-comparison caption{text-align:left;color:#6b655c;padding:0 0 12px;font-size:13px}
.bns-comparison th,.bns-comparison td{padding:12px;border:1px solid #e6dfd4;vertical-align:top;min-width:150px;max-width:330px;overflow-wrap:anywhere;white-space:normal}
.bns-comparison thead th{background:#f6f1e9;color:#574630}
.bns-comparison tbody th{background:#faf8f4;min-width:100px}
.bns-selection-tools ul{margin:16px 0 0;padding-left:22px;overflow-wrap:anywhere}
.bns-selection-tools li{margin:8px 0}
.bns-refine{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:20px 0}
.bns-refine label{flex:1 1 270px;font-size:16px;font-weight:600}
.bns-refine input{display:block;width:100%;margin-top:8px;min-height:48px;border:1px solid #c9bba8;border-radius:8px;padding:12px;background:#fff;color:#302c27;font-size:16px}
.bns-refine button{min-height:48px;padding:12px 18px;border:0;border-radius:8px;background:#8b6538;color:#fff;cursor:pointer;font-size:15px}
.bns-store-link{display:inline-block;color:#755329!important;text-decoration:underline;margin:4px 0 12px;line-height:1.5}
@media(max-width:600px){.bns-selection-tools details{padding:12px}.bns-refine button{width:100%}.bns-comparison{font-size:13px}.bns-comparison th,.bns-comparison td{min-width:135px;padding:9px}}
