.vn-contact {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.vn-contact__btn {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	color: #fff;
	font: 600 13px/1 system-ui, sans-serif;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.vn-contact__btn:hover,
.vn-contact__btn:focus-visible {
	color: #fff;
	transform: translateY(-2px);
}

.vn-contact__btn--zalo { background: #0068ff; }
.vn-contact__btn--messenger { background: #0084ff; }
.vn-contact__btn--call { background: #1f9d55; font-size: 22px; }

.vn-demo-bar {
	padding: 8px 16px;
	background: #2b2b2b;
	color: #fff;
	font: 13px/1.4 system-ui, sans-serif;
	text-align: center;
}

.vn-demo-bar a {
	color: #ffd479;
	font-weight: 600;
}

.vn-operator,
.vn-policy-links {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
	line-height: 1.8;
}

.vn-consent {
	margin: 1rem 0;
}

/* ---------- Storefront ---------- */

.vn-vouchers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
	max-width: var(--wp--style--global--wide-size, 1240px);
	margin-inline: auto;
}

.vn-voucher {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.25rem 1rem;
	padding: 1rem 1.1rem;
	border: 1px dashed var(--wp--preset--color--accent, #234a3c);
	border-radius: 8px;
	background: var(--wp--preset--color--base, #fff);
}

.vn-voucher::before,
.vn-voucher::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--wp--preset--color--base, #fbf8f3);
	transform: translateY(-50%);
}

.vn-voucher::before { left: -8px; }
.vn-voucher::after { right: -8px; }

.vn-voucher__value {
	display: grid;
	place-items: center;
	min-width: 4.5rem;
	padding: 0.5rem;
	border-radius: 6px;
	background: var(--wp--preset--color--accent, #234a3c);
	color: #fff;
	font-family: var(--wp--preset--font-family--heading, serif);
	font-size: 1.15rem;
	line-height: 1.1;
	text-align: center;
}

.vn-voucher__text {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.35;
}

.vn-voucher__meta {
	margin: 0;
	color: var(--wp--preset--color--muted, #777);
	font-size: 0.75rem;
}

.vn-voucher__copy {
	margin-top: 0.5rem;
	padding: 0.3rem 0.75rem;
	border: 1px solid var(--wp--preset--color--accent, #234a3c);
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--accent, #234a3c);
	font-family: inherit;
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.vn-voucher__copy.is-copied {
	background: var(--wp--preset--color--accent, #234a3c);
	color: #fff;
}

.vn-countdown {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 600;
}

.vn-countdown__label {
	margin-right: 0.4rem;
	color: var(--wp--preset--color--muted, #777);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.vn-countdown__part {
	display: inline-grid;
	place-items: center;
	min-width: 2.6rem;
	height: 2.6rem;
	border-radius: 6px;
	background: var(--wp--preset--color--contrast, #222);
	color: #fff;
	font-variant-numeric: tabular-nums;
}

.vn-low-stock {
	display: inline-block;
	margin-bottom: 0.35rem;
	color: var(--wp--preset--color--highlight, #c62828);
	font-size: 0.75rem;
	font-weight: 600;
}

.vn-promise {
	margin: 1.5rem 0 1rem;
	padding: 1rem 1.25rem;
	border-radius: 8px;
	background: var(--wp--preset--color--base-2, #f1ece0);
	list-style: none;
	font-size: 0.875rem;
	line-height: 2;
}

.vn-promise li::before {
	content: "✓";
	margin-right: 0.6rem;
	color: var(--wp--preset--color--accent, #234a3c);
	font-weight: 700;
}

.vn-zalo-cta {
	margin: 1rem 0;
	text-align: inherit;
}

.vn-cta .vn-zalo-cta {
	text-align: center;
}

.vn-zalo-cta__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.85rem 1.75rem;
	border-radius: 999px;
	background: #0068ff;
	color: #fff !important;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
}

.vn-zalo-cta__btn::before {
	content: "Zalo";
	padding: 0.15rem 0.4rem;
	border-radius: 4px;
	background: #fff;
	color: #0068ff;
	font-size: 0.6875rem;
	font-weight: 700;
}

.vn-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 10000;
	max-width: min(90vw, 420px);
	padding: 12px 18px;
	border-radius: 10px;
	background: #2b2b2b;
	color: #fff;
	font: 14px/1.45 system-ui, sans-serif;
	text-align: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 12px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.vn-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ---------- Flower delivery ---------- */

/* "Order within 02:14:09 to get your flowers today" */
.vn-cutoff {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem 0.55rem;
	margin: 1.25rem 0 0;
	padding: 0.5rem 1rem 0.5rem 0.9rem;
	border-radius: 1.25rem;
	box-shadow: inset 0 0 0 1px rgba(31, 42, 36, 0.1);
	background: var(--wp--preset--color--base, #fff);
	color: var(--wp--preset--color--contrast, #1f2a24);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.3;
}

.vn-cutoff::before {
	content: "";
	flex: none;
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 50%;
	background: #2e9b5b;
	box-shadow: 0 0 0 0 rgba(46, 155, 91, 0.5);
	animation: vn-pulse 2s infinite;
}

.vn-cutoff.is-closed {
	flex-wrap: nowrap;
	align-items: flex-start;
}

.vn-cutoff.is-closed::before {
	margin-top: 0.4rem;
	background: var(--wp--preset--color--muted, #777);
	animation: none;
}

.vn-cutoff .vn-countdown {
	display: inline-flex;
	gap: 0.2rem;
}

.vn-cutoff .vn-countdown__part {
	min-width: 1.9rem;
	height: 1.9rem;
	border-radius: 6px;
	background: var(--wp--preset--color--accent, #234a3c);
	font-size: 0.8125rem;
}

@keyframes vn-pulse {
	70% { box-shadow: 0 0 0 0.5rem rgba(46, 155, 91, 0); }
	100% { box-shadow: 0 0 0 0 rgba(46, 155, 91, 0); }
}

/* Same-day label on a product card. */
.woocommerce ul.products li.product:has(.onsale) .vn-same-day {
	top: 2.85rem;
}

.vn-same-day {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 2;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--wp--preset--color--accent, #234a3c);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.3;
}

/* Checkout: headings and the recipient block. */
.vn-checkout-heading {
	margin: 1.5rem 0 0.75rem;
	font-family: var(--wp--preset--font-family--heading, serif);
	font-size: 1.35rem;
	font-weight: 400;
}

.woocommerce-billing-fields > h3,
.woocommerce-additional-fields > h3 {
	margin: 1.5rem 0 0.75rem;
	font-family: var(--wp--preset--font-family--heading, serif);
	font-size: 1.35rem;
	font-weight: 400;
}

/* The recipient is always asked for, so the "ship to a different address?" switch is hidden. */
#ship-to-different-address {
	display: none;
}

.woocommerce-shipping-fields .shipping_address {
	display: block !important;
}

.vn-same-recipient {
	margin: 0 0 1rem;
}

/* The day and time picker. */
.vn-delivery {
	clear: both;
	margin: 2rem 0;
	padding: 1.25rem 1.5rem 1rem;
	border: 1px solid var(--vn-border, #ddd5c6);
	border-radius: 18px;
	background: var(--wp--preset--color--base-2, #f1ece0);
}

.vn-delivery > .vn-checkout-heading:first-child {
	margin-top: 0;
}

.vn-delivery .vn-cutoff {
	margin: 0 0 1.25rem;
}

.vn-delivery__group {
	/* A fieldset is as wide as its content by default, which would stretch the page around the sideways-scrolling days. */
	min-width: 0;
	margin: 0 0 1.25rem;
	padding: 0;
	border: 0;
}

.vn-delivery__group legend {
	margin-bottom: 0.6rem;
	padding: 0;
	color: var(--wp--preset--color--muted, #5b655f);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.vn-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.vn-chip {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 4.4rem;
	padding: 0.55rem 0.65rem;
	border: 1px solid var(--vn-border, #ddd5c6);
	border-radius: 12px;
	background: #fff;
	color: var(--wp--preset--color--contrast, #1f2a24);
	line-height: 1.25;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.vn-chip input[type="radio"] {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.vn-chip:hover {
	border-color: var(--wp--preset--color--accent, #234a3c);
}

.vn-chip:focus-within {
	outline: 2px solid var(--wp--preset--color--accent, #234a3c);
	outline-offset: 2px;
}

.vn-chip:has(input:checked),
.vn-chip.is-selected {
	border-color: var(--wp--preset--color--accent, #234a3c);
	background: var(--wp--preset--color--accent, #234a3c);
	color: var(--wp--preset--color--base, #fff);
}

.vn-chip__top {
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.7;
}

.vn-chip__main {
	font-size: 1rem;
	font-weight: 600;
}

.vn-chip__sub {
	min-height: 1em;
	font-size: 0.6875rem;
	opacity: 0.85;
}

.vn-chip.is-peak .vn-chip__sub {
	color: var(--wp--preset--color--highlight, #b4475a);
	font-weight: 600;
	opacity: 1;
}

.vn-chip.is-peak:has(input:checked) .vn-chip__sub,
.vn-chip.is-peak.is-selected .vn-chip__sub {
	color: var(--wp--preset--color--accent-soft, #f3e1db);
}

.vn-chip.is-off {
	opacity: 0.45;
	cursor: not-allowed;
}

.vn-chip.is-off input {
	cursor: not-allowed;
}

.vn-chip.is-off .vn-chip__main {
	text-decoration: line-through;
}

.vn-chip--slot {
	min-width: 7.25rem;
	padding: 0.7rem 1rem;
}

.vn-chip--other {
	min-width: 8.5rem;
}

.vn-chip__date {
	width: 100%;
	margin-top: 0.15rem;
	padding: 0.15rem 0.25rem;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.8125rem;
}

.vn-chip--other .vn-chip__date {
	position: relative;
	z-index: 1;
}

/* Days scroll sideways on a phone instead of wrapping into many rows. */
@media (max-width: 781px) {
	.vn-chips--days {
		flex-wrap: nowrap;
		margin-right: -1.5rem;
		padding: 0 1.5rem 0.4rem 0;
		overflow-x: auto;
		scroll-snap-type: x proximity;
	}

	.vn-chips--days .vn-chip {
		flex: none;
		scroll-snap-align: start;
	}
}

.vn-delivery__summary {
	margin: 0 0 0.75rem;
	font-weight: 600;
}

.vn-delivery__summary:empty {
	display: none;
}

.vn-delivery__peak,
.vn-delivery__notice {
	margin: 0 0 1rem;
	padding: 0.65rem 0.9rem;
	border-radius: 10px;
	background: var(--wp--preset--color--accent-soft, #f3e1db);
	font-size: 0.875rem;
}

.vn-delivery__peak[hidden],
.vn-delivery__notice[hidden] {
	display: none;
}

.vn-delivery__card textarea {
	width: 100%;
	min-height: 5.5rem;
}

.vn-delivery__count {
	display: block;
	margin-top: 0.25rem;
	color: var(--wp--preset--color--muted, #5b655f);
	text-align: right;
}

/* Order details: the delivery block on the thank-you page. */
.vn-order-delivery {
	margin: 2rem 0;
}
