/* The Wine Shop — reservations
   Palette: claret #6B1F2E · ink #211C19 · ivory #FBF8F3 · parchment #EFE7DA · gold #B08D57
   Type:    EB Garamond (display) · Montserrat (utility) */

.tws-res {
	--tws-accent: #6b1f2e;
	--tws-ink: #211c19;
	--tws-muted: #7d7268;
	--tws-line: #ddd2c2;
	--tws-paper: #fbf8f3;
	--tws-parchment: #efe7da;
	--tws-gold: #b08d57;
	--tws-confirm: #2f6b4f;
	--tws-serif: "EB Garamond", Georgia, "Times New Roman", serif;
	--tws-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	max-width: 760px;
	margin: 0 auto;
	color: var(--tws-ink);
	font-family: var(--tws-sans);
	font-size: 15px;
	line-height: 1.55;
	text-align: left;
}

.tws-res *,
.tws-res *::before,
.tws-res *::after {
	box-sizing: border-box;
}

.tws-res__card {
	position: relative;
	background: var(--tws-paper);
	border: 1px solid var(--tws-line);
	padding: 36px clamp(20px, 4vw, 44px) 40px;
}

.tws-res__card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: var(--tws-accent);
}

.tws-res__eyebrow {
	margin: 0 0 8px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--tws-muted);
}

.tws-res__title {
	margin: 0 0 12px;
	padding: 0;
	font-family: var(--tws-serif);
	font-weight: 400;
	font-size: clamp(30px, 5vw, 42px);
	line-height: 1.05;
	color: var(--tws-ink);
}

.tws-res__intro {
	margin: 0 0 8px;
	max-width: 54ch;
	font-size: 14px;
	color: var(--tws-muted);
}

/* Steps */

.tws-res__step {
	margin-top: 32px;
	padding-top: 22px;
	border-top: 1px solid var(--tws-line);
}

.tws-res__steptitle {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	padding: 0;
	font-family: var(--tws-sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tws-ink);
}

.tws-res__stepnum {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	border: 1px solid var(--tws-gold);
	border-radius: 50%;
	font-family: var(--tws-serif);
	font-size: 14px;
	letter-spacing: 0;
	color: var(--tws-gold);
}

.tws-res__row,
.tws-res__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}

.tws-res__field {
	display: block;
	min-width: 0;
}

.tws-res__field--wide {
	grid-column: 1 / -1;
}

.tws-res__label {
	display: block;
	margin-bottom: 6px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tws-muted);
}

.tws-res__label em {
	font-style: normal;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0.02em;
	opacity: 0.75;
}

.tws-res input[type="text"],
.tws-res input[type="tel"],
.tws-res input[type="email"],
.tws-res input[type="date"],
.tws-res select,
.tws-res textarea {
	width: 100%;
	min-height: 46px;
	padding: 11px 13px;
	background: #fff;
	border: 1px solid var(--tws-line);
	border-radius: 0;
	font-family: inherit;
	font-size: 15px;
	color: var(--tws-ink);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.tws-res select {
	background-image: linear-gradient(45deg, transparent 50%, var(--tws-muted) 50%), linear-gradient(135deg, var(--tws-muted) 50%, transparent 50%);
	background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-right: 34px;
}

.tws-res textarea {
	resize: vertical;
	min-height: 92px;
}

.tws-res input:focus,
.tws-res select:focus,
.tws-res textarea:focus {
	outline: none;
	border-color: var(--tws-accent);
	box-shadow: 0 0 0 2px rgba(107, 31, 46, 0.13);
}

.tws-res a:focus-visible,
.tws-res button:focus-visible,
.tws-res input:focus-visible,
.tws-res select:focus-visible,
.tws-res textarea:focus-visible {
	outline: 2px solid var(--tws-accent);
	outline-offset: 2px;
}

/* Duration choice */

.tws-res__durations {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tws-res__duration {
	flex: 1 1 150px;
	display: block;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--tws-line);
	border-radius: 0;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.tws-res__duration:hover {
	border-color: var(--tws-gold);
}

.tws-res__duration.is-active {
	background: var(--tws-accent);
	border-color: var(--tws-accent);
}

.tws-res__durationtime {
	display: block;
	font-family: var(--tws-serif);
	font-size: 20px;
	line-height: 1.2;
	color: var(--tws-ink);
}

.tws-res__durationhint {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	letter-spacing: 0.04em;
	color: var(--tws-muted);
}

.tws-res__duration.is-active .tws-res__durationtime,
.tws-res__duration.is-active .tws-res__durationhint {
	color: var(--tws-paper);
}

.tws-res__duration.is-active .tws-res__durationhint {
	opacity: 0.8;
}

/* Half-hour blocks — the signature element */

.tws-res__slotgroup + .tws-res__slotgroup {
	margin-top: 22px;
}

.tws-res__slotlabel {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 12px;
	font-family: var(--tws-serif);
	font-size: 19px;
	font-style: italic;
	color: var(--tws-accent);
}

.tws-res__slotlabel::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--tws-line);
}

.tws-res__blocks {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
	gap: 8px;
}

.tws-res__block {
	padding: 12px 6px;
	background: #fff;
	border: 1px solid var(--tws-line);
	border-radius: 0;
	font-family: var(--tws-sans);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
	color: var(--tws-ink);
	cursor: pointer;
	transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.tws-res__block:hover:not(:disabled) {
	border-color: var(--tws-accent);
	color: var(--tws-accent);
}

.tws-res__block.is-chosen {
	background: var(--tws-confirm);
	border-color: var(--tws-confirm);
	color: #fff;
	font-weight: 600;
}

.tws-res__block.is-chosen::after {
	content: " ✓";
	font-size: 12px;
}

.tws-res__block.is-soon {
	background: repeating-linear-gradient(
		135deg,
		#f4eee4,
		#f4eee4 5px,
		#ebe2d4 5px,
		#ebe2d4 10px
	);
	border-color: transparent;
	color: #a2988a;
	text-decoration: none;
	cursor: not-allowed;
}

.tws-res__block:disabled {
	background: var(--tws-parchment);
	border-color: transparent;
	color: #b3a798;
	text-decoration: line-through;
	cursor: not-allowed;
}

.tws-res__slotsempty,
.tws-res__slotsnote {
	margin: 0;
	font-size: 14px;
	color: var(--tws-muted);
}

.tws-res__slotsnote {
	margin-top: 14px;
	padding-left: 12px;
	border-left: 2px solid var(--tws-gold);
	color: var(--tws-ink);
}

.tws-res__last {
	display: block;
	margin-top: 10px;
	font-size: 12px;
	letter-spacing: 0.06em;
	color: var(--tws-accent);
}

/* Details, submit bar */

.tws-res__check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 18px;
	font-size: 13.5px;
	color: var(--tws-muted);
	cursor: pointer;
}

.tws-res__check input {
	margin-top: 3px;
	accent-color: var(--tws-accent);
}

.tws-res__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 30px;
	padding: 18px 20px;
	background: var(--tws-parchment);
}

.tws-res__chosen {
	margin: 0;
	font-family: var(--tws-serif);
	font-size: 19px;
	line-height: 1.3;
	color: var(--tws-ink);
}

.tws-res__submit {
	border: 1px solid var(--tws-accent);
	background: var(--tws-accent);
	color: #fff;
	font-family: inherit;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 15px 30px;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
}

.tws-res__submit:hover:not([disabled]) {
	background: transparent;
	color: var(--tws-accent);
}

.tws-res__submit[disabled] {
	opacity: 0.55;
	cursor: progress;
}

.tws-res__note {
	margin: 18px 0 0;
	font-size: 12.5px;
	color: var(--tws-muted);
}

.tws-res__error {
	margin-top: 18px;
	padding: 13px 15px;
	border-left: 3px solid var(--tws-accent);
	background: rgba(107, 31, 46, 0.06);
	font-size: 14px;
}

/* Confirmation */

.tws-res__summary {
	margin: 0 0 28px;
	display: grid;
	grid-template-columns: max-content 1fr;
	border-top: 1px solid var(--tws-line);
}

.tws-res__summary dt,
.tws-res__summary dd {
	margin: 0;
	padding: 11px 0;
	border-bottom: 1px solid var(--tws-line);
}

.tws-res__summary dt {
	padding-right: 28px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--tws-muted);
	align-self: center;
}

.tws-res__summary dd {
	font-family: var(--tws-serif);
	font-size: 19px;
}

.tws-res__wa {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	background: #128c7e;
	color: #fff !important;
	text-decoration: none !important;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	transition: background 0.18s ease;
}

.tws-res__wa:hover {
	background: #0f7167;
}

.tws-res__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 600px) {
	.tws-res__card {
		padding: 26px 18px 32px;
	}

	.tws-res__row,
	.tws-res__grid {
		grid-template-columns: 1fr;
	}

	.tws-res__blocks {
		grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
	}

	.tws-res__bar {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.tws-res__submit,
	.tws-res__wa {
		width: 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tws-res * {
		transition: none !important;
	}
}


/* Card header and logo */

.tws-res__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
}

.tws-res__logo {
	flex: 0 0 auto;
	width: auto;
	max-width: 120px;
	max-height: 58px;
	height: auto;
	object-fit: contain;
	opacity: 0.85;
	mix-blend-mode: multiply;
}

/* Mobile field with dial code */

.tws-res__phone {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--tws-line);
	background: #fff;
}

.tws-res__phone:focus-within {
	border-color: var(--tws-accent);
	box-shadow: 0 0 0 2px rgba(107, 31, 46, 0.13);
}

.tws-res__dial {
	display: flex;
	align-items: center;
	padding: 0 12px;
	background: var(--tws-parchment);
	border-right: 1px solid var(--tws-line);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	color: var(--tws-muted);
}

.tws-res__phone input[type="tel"] {
	border: 0;
	box-shadow: none;
}

.tws-res__phone input[type="tel"]:focus {
	box-shadow: none;
}

/* Key to the block states */

.tws-res__key {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
	font-size: 11px;
	letter-spacing: 0.06em;
	color: var(--tws-muted);
}

.tws-res__key li {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 0;
}

.tws-res__keyswatch {
	display: inline-block;
	width: 13px;
	height: 13px;
	border: 1px solid var(--tws-line);
	background: #fff;
}

.tws-res__keyswatch.is-chosen {
	background: var(--tws-confirm);
	border-color: var(--tws-confirm);
}

.tws-res__keyswatch.is-full {
	background: var(--tws-parchment);
	border-color: transparent;
}

.tws-res__keyswatch.is-soon {
	background: repeating-linear-gradient(
		135deg,
		#f4eee4,
		#f4eee4 4px,
		#ebe2d4 4px,
		#ebe2d4 8px
	);
	border-color: transparent;
}

/* Confirmation actions */

.tws-res__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.tws-res__cal {
	display: inline-flex;
	align-items: center;
	padding: 14px 24px;
	border: 1px solid var(--tws-line);
	background: transparent;
	color: var(--tws-ink) !important;
	text-decoration: none !important;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	transition: border-color 0.18s ease, color 0.18s ease;
}

.tws-res__cal:hover {
	border-color: var(--tws-accent);
	color: var(--tws-accent) !important;
}

/* Brand footer */

.tws-res__footer {
	margin-top: 34px;
	padding-top: 20px;
	border-top: 1px solid var(--tws-line);
}

.tws-res__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
}

.tws-res__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--tws-muted) !important;
	text-decoration: none !important;
	font-size: 12px;
	letter-spacing: 0.04em;
	border: 0;
	transition: color 0.15s ease;
}

.tws-res__link:hover {
	color: var(--tws-accent) !important;
}

.tws-res__link svg {
	flex: 0 0 auto;
	opacity: 0.75;
}

.tws-res__hours {
	margin: 14px 0 0;
	font-size: 11.5px;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
	color: var(--tws-muted);
}

.tws-res__legal {
	margin: 10px 0 0;
	font-family: var(--tws-serif);
	font-style: italic;
	font-size: 13px;
	color: var(--tws-muted);
}

@media (max-width: 600px) {
	.tws-res__head {
		flex-direction: row-reverse;
		align-items: center;
	}

	.tws-res__logo {
		max-width: 78px;
		max-height: 44px;
	}

	.tws-res__cal {
		width: 100%;
		justify-content: center;
	}
}


/* WhatsApp-required notice */

.tws-res__wanote {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 20px;
	padding: 14px 16px;
	background: rgba(18, 140, 126, 0.07);
	border-left: 3px solid #128c7e;
}

.tws-res__wanote svg {
	flex: 0 0 auto;
	margin-top: 2px;
	color: #128c7e;
}

.tws-res__wanote p {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--tws-ink);
}

.tws-res__privacy {
	margin: 12px 0 0;
	font-size: 11.5px;
	color: var(--tws-muted);
}
