/* VITAMIC BIOSEN Notice. Colours follow the shop's Elementor globals, with sampled fallbacks. */

.vbn,
.vbn-badge {
	--vbn-accent: var(--e-global-color-accent, #EA9A00);
	--vbn-ink: var(--e-global-color-56cee0d, #121212);
	--vbn-muted: #707070;
	--vbn-line: #EBEBEB;
	--vbn-cream: var(--e-global-color-083e736, #FFF6DA);
	--vbn-error: #B3261E;
	box-sizing: border-box;
}

.vbn *,
.vbn *::before,
.vbn *::after { box-sizing: inherit; }

.vbn p { margin: 0; }

/* Sold-out notice ------------------------------------------------------- */

.vbn-status {
	margin: 0 0 16px;
	padding: 16px 18px;
	border: 1px solid var(--vbn-accent);
	border-radius: 8px;
	background: var(--vbn-cream);
	color: var(--vbn-ink);
}

.vbn-status__label {
	display: inline-block;
	margin-bottom: 8px !important;
	padding: 3px 8px;
	border-radius: 4px;
	background: var(--vbn-ink);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.vbn-status__date {
	font-size: 1.05em;
	font-weight: 700;
	line-height: 1.35;
}

.vbn-status__text {
	margin-top: 4px !important;
	line-height: 1.5;
}

.vbn-offer {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(18, 18, 18, 0.12);
}

.vbn-offer__text { line-height: 1.5; }

.vbn-offer__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

/* Buttons ---------------------------------------------------------------- */

.vbn .vbn-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid var(--vbn-ink);
	border-radius: 6px;
	background: transparent;
	color: var(--vbn-ink);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	appearance: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.vbn .vbn-btn:hover { background: var(--vbn-ink); color: #fff; }

.vbn .vbn-btn--accent { border-color: var(--vbn-accent); background: var(--vbn-accent); color: var(--vbn-ink); }
.vbn .vbn-btn--accent:hover { border-color: var(--vbn-ink); background: var(--vbn-ink); color: #fff; }

.vbn .vbn-btn--dark { background: var(--vbn-ink); color: #fff; }
.vbn .vbn-btn--dark:hover { border-color: var(--vbn-accent); background: var(--vbn-accent); color: var(--vbn-ink); }

.vbn .vbn-btn:disabled { opacity: 0.6; cursor: progress; }

.vbn .vbn-btn:focus-visible,
.vbn .vbn-notify__email:focus-visible {
	outline: 2px solid var(--vbn-accent);
	outline-offset: 2px;
}

/* Restock signup ------------------------------------------------------------ */

.vbn-notify {
	margin: 16px 0 0;
	color: var(--vbn-ink);
}

.vbn-notify__title { font-weight: 700; line-height: 1.4; }
.vbn-notify__text { margin-top: 2px !important; line-height: 1.5; }

.vbn-notify__form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 0;
}

.vbn-notify__form[hidden] { display: none; }

.vbn .vbn-notify__email {
	flex: 1 1 220px;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #CFCFCF;
	border-radius: 6px;
	background: #fff;
	color: var(--vbn-ink);
	font: inherit;
	font-size: 16px; /* no zoom on iOS */
}

.vbn .vbn-notify__email[aria-invalid="true"] { border-color: var(--vbn-error); }

.vbn-notify__form .vbn-btn { flex: 0 0 auto; }

.vbn-notify__small {
	margin-top: 8px !important;
	color: var(--vbn-muted);
	font-size: 0.8rem;
	line-height: 1.45;
}

.vbn-notify__msg {
	margin-top: 8px !important;
	font-weight: 600;
	line-height: 1.45;
}

.vbn-notify__msg.is-error { color: var(--vbn-error); }
.vbn-notify__msg[hidden] { display: none; }

/* Badge -------------------------------------------------------------------------- */

.vbn-badge {
	display: inline-block;
	margin: 4px 0;
	padding: 2px 8px;
	border-radius: 4px;
	background: var(--vbn-ink);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.5;
}

/* Utilities ------------------------------------------------------------------------ */

.vbn-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.vbn-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* The emptied "in stock" text widget on the BIOSEN page. */
.vbn-biosen-soldout .elementor-widget-text-editor:empty,
.vbn-biosen-soldout .elementor-widget-text-editor > .elementor-widget-container:empty,
.vbn-biosen-soldout .elementor-widget-text-editor:has(> .elementor-widget-container:empty) {
	display: none;
}

@media (max-width: 420px) {
	.vbn-status { padding: 14px; }
	.vbn-offer__actions .vbn-btn,
	.vbn-notify__form .vbn-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.vbn .vbn-btn { transition: none; }
}
