/*
 * VRLC Christmas Orders: product page styles.
 * Colours are set once here. Change them to fine-tune against the theme.
 */
.vrlc-collection,
.vrlc-hah,
.vrlc-cal {
	--vrlc-accent: #c9a063;      /* gold: prices, borders, selected states */
	--vrlc-border: #8a8a8a;      /* field borders (matches the quantity boxes) */
	--vrlc-error: #ff8a80;       /* readable on the dark background */
}

/* ===== Festive Box: collection date field ===== */

form.cart:has(.vrlc-collection) {
	flex-wrap: wrap;
}

.vrlc-collection {
	flex: 0 0 100%;
	width: 100%;
	margin: 0 0 1.5em;
}

.vrlc-collection__label {
	display: block;
	font-weight: 600;
	margin: 0 0 0.5em;
}

.vrlc-required {
	color: var(--vrlc-accent);
}

.vrlc-collection__field,
.vrlc-collection__select {
	width: 100%;
	max-width: 420px;
	height: 52px;
	padding: 0 48px 0 16px;
	border: 1px solid var(--vrlc-border);
	border-radius: 0;
	background-color: transparent;
	/* calendar icon */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23c9a063' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='1'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	color: inherit;
	font: inherit;
	cursor: pointer;
	box-shadow: none;
}

.vrlc-collection__field::placeholder {
	color: inherit;
	opacity: 0.6;
}

.vrlc-collection__field:focus,
.vrlc-collection__field.active {
	outline: none;
	border-color: var(--vrlc-accent);
}

.vrlc-collection--invalid .vrlc-collection__field {
	border-color: var(--vrlc-error);
}

.vrlc-collection__error {
	margin: 0.6em 0 0;
	color: var(--vrlc-error);
	font-weight: 600;
}

.vrlc-collection__closed {
	margin: 0;
}

.vrlc-collection [hidden],
.vrlc-hah [hidden] {
	display: none !important;
}

/* ===== Calendar pop-up (attached to the page body, so styled by its own class) ===== */

.vrlc-cal.flatpickr-calendar {
	border-radius: 6px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
	margin-top: 4px;
}

.vrlc-cal .flatpickr-day {
	border-radius: 4px;
}

.vrlc-cal .flatpickr-day.selected,
.vrlc-cal .flatpickr-day.selected:hover,
.vrlc-cal .flatpickr-day.selected:focus {
	background: var(--vrlc-accent);
	border-color: var(--vrlc-accent);
	color: #1f2125;
}

.vrlc-cal .flatpickr-day.today {
	border-color: transparent;
}

.vrlc-cal .flatpickr-day.flatpickr-disabled,
.vrlc-cal .flatpickr-day.flatpickr-disabled:hover {
	color: rgba(57, 57, 57, 0.25);
	text-decoration: line-through;
}

/* Small dot under days with restricted hours (26 December). */
.vrlc-cal .flatpickr-day.vrlc-special {
	position: relative;
}

.vrlc-cal .flatpickr-day.vrlc-special::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 4px;
	width: 4px;
	height: 4px;
	margin-left: -2px;
	border-radius: 50%;
	background: var(--vrlc-accent);
}

.vrlc-cal .flatpickr-day.vrlc-special.selected::after {
	background: #1f2125;
}

/* ===== Heat at Home: per-person picker ===== */

.vrlc-hah-hidden {
	display: none !important;
}

form.cart.vrlc-hah-active {
	flex-wrap: wrap;
}

.vrlc-hah {
	flex: 0 0 100%;
	width: 100%;
	margin: 0 0 1.5em;
}

.vrlc-hah__heading {
	display: block;
	font-weight: 600;
	margin: 0 0 0.25em;
	padding: 0;
	font-size: 1.05em;
}

.vrlc-hah__hint {
	margin: 0 0 1em;
	opacity: 0.8;
	font-size: 0.95em;
}

.vrlc-hah__people {
	display: grid;
	gap: 12px;
}

.vrlc-hah__person {
	display: grid;
	grid-template-columns: 80px 1fr 1fr 36px;
	gap: 10px;
	align-items: center;
}

.vrlc-hah__person-name {
	font-weight: 600;
	white-space: nowrap;
}

.vrlc-hah__select {
	width: 100%;
	height: 48px;
	padding: 0 40px 0 14px;
	border: 1px solid var(--vrlc-border);
	border-radius: 0;
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c9a063' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	color: inherit;
	font: inherit;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.vrlc-hah__select:focus {
	outline: none;
	border-color: var(--vrlc-accent);
}

/* Dropdown lists are drawn by the browser/OS in light colours. Keep the text readable. */
.vrlc-hah__select option {
	color: #1f2125;
	background: #fff;
}

.vrlc-hah__remove {
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--vrlc-border);
	background: transparent;
	color: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.vrlc-hah__remove:hover,
.vrlc-hah__remove:focus {
	border-color: var(--vrlc-accent);
	color: var(--vrlc-accent);
}

.vrlc-hah__add {
	margin: 12px 0 0;
	padding: 6px 0;
	border: 0;
	background: none;
	color: var(--vrlc-accent);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.vrlc-hah__extras {
	margin: 1.75em 0 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.vrlc-hah__side {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	border-bottom: 1px solid rgba(138, 138, 138, 0.3);
}

.vrlc-hah__side-label {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	margin: 0;
	padding: 10px 0;
	cursor: pointer;
}

.vrlc-hah__side-label input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--vrlc-accent);
	flex: none;
}

.vrlc-hah__side-name {
	flex: 1;
}

.vrlc-hah__side-price {
	color: var(--vrlc-accent);
}

.vrlc-hah__side-qty {
	width: 90px;
	height: 40px;
	flex: none;
}

.vrlc-hah__total {
	margin: 1.25em 0 0;
	font-weight: 600;
	color: var(--vrlc-accent);
	min-height: 1.5em;
}

.vrlc-hah__error {
	margin: 0.6em 0 0;
	color: var(--vrlc-error);
	font-weight: 600;
}

.vrlc-per-person {
	font-size: 0.75em;
	opacity: 0.85;
}

@media (max-width: 600px) {
	.vrlc-hah__person {
		grid-template-columns: 1fr 36px;
		padding-bottom: 12px;
		border-bottom: 1px solid rgba(138, 138, 138, 0.3);
	}

	.vrlc-hah__person-name {
		grid-column: 1;
	}

	.vrlc-hah__remove {
		grid-column: 2;
		grid-row: 1;
	}

	.vrlc-hah__person .vrlc-hah__select {
		grid-column: 1 / -1;
	}
}

/* ===== Heat at Home: fixed-slot notice ===== */

.vrlc-collection--fixed {
	padding: 0.75em 1em;
	border-left: 3px solid var(--vrlc-accent);
	background: rgba(201, 160, 99, 0.08);
}

.vrlc-collection--fixed .vrlc-collection__note {
	margin: 0.25em 0 0;
	font-size: 0.9em;
	opacity: 0.85;
}
