:root {
	--ot-ink: #0f172a;
	--ot-muted: #475569;
	--ot-line: #e2e8f0;
	--ot-paper: #f8fafc;
	--ot-accent: #3b71fe;
	--ot-accent-ink: #1e3a8a;
	--ot-card: #ffffff;
	--ot-radius: 16px;
	--ot-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.ot-book {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	color: var(--ot-ink);
	font-family: "Segoe UI", "Avenir Next", sans-serif;
}

.ot-book.is-ready .ot-cal-fallback,
.ot-book.is-ready .ot-choice-fallback,
.ot-book.is-ready .ot-people-fallback {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.ot-pickers {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	align-items: start;
}

.ot-picker-button {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto auto;
	align-items: center;
	width: 100%;
	min-height: 4.1rem;
	padding: 0.65rem 0.75rem;
	border: 1px solid #c5cdd6;
	border-radius: 0.55rem;
	background: #fff;
	color: var(--ot-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.ot-picker-button[aria-expanded="true"] {
	border-color: var(--ot-accent);
}

.ot-picker-label {
	grid-column: 1;
	color: var(--ot-muted);
	font-size: 0.8rem;
	font-weight: 500;
	line-height: 1.2;
}

.ot-picker-value {
	grid-column: 1;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.ot-picker-value.is-empty {
	color: var(--ot-muted);
	font-weight: 600;
}

.ot-picker-chevron {
	grid-column: 2;
	grid-row: 1 / span 2;
	width: 0.45rem;
	height: 0.45rem;
	margin-right: 0.2rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}

.ot-picker-button[aria-expanded="true"] .ot-picker-chevron {
	transform: rotate(225deg) translateY(-2px);
}

.ot-picker-panel {
	grid-column: 1 / -1;
	padding: 0.75rem;
	border: 1px solid var(--ot-line);
	border-radius: 0.75rem;
	background: #fff;
}

.ot-picker-panel[hidden] {
	display: none;
}

.ot-cal-head,
.otb-cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
	font-weight: 700;
}

.ot-cal-nav,
.otb-cal-head button,
.ot-counter button,
.ot-sheet-close {
	width: 44px;
	height: 44px;
	border: 1px solid var(--ot-line);
	border-radius: 12px;
	background: #fff;
	color: var(--ot-ink);
	font-size: 1.25rem;
	cursor: pointer;
}

.ot-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.ot-dow,
.ot-day {
	text-align: center;
	font-size: 0.85rem;
}

.ot-dow {
	color: var(--ot-muted);
	padding: 4px 0;
}

.ot-day {
	min-height: 44px;
	border: 0;
	border-radius: 10px;
	background: var(--ot-paper);
	color: var(--ot-ink);
	cursor: pointer;
}

.ot-day.is-empty,
.ot-day.is-closed {
	background: transparent;
	color: #94a3b8;
	cursor: default;
}

.ot-day.is-selected {
	background: var(--ot-accent);
	color: #fff;
	font-weight: 700;
}

.ot-choices {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ot-choice {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	width: 100%;
	padding: 14px 16px;
	border: 2px solid var(--ot-line);
	border-radius: 14px;
	background: #fff;
	color: var(--ot-ink);
	text-align: left;
	cursor: pointer;
}

.ot-choice.is-selected {
	border-color: var(--ot-accent);
	background: #eef3ff;
}

.ot-choice-name,
.ot-choice-price {
	font-weight: 700;
}

.ot-choice-note,
.ot-choice-sub,
.ot-from-note,
.ot-unit,
.ot-from-label {
	color: var(--ot-muted);
}

.ot-from-note,
.ot-choice-sub {
	margin: 0.15rem 0 0;
	font-size: 0.95rem;
	font-weight: 500;
}

.ot-counter {
	display: grid;
	grid-template-columns: 1fr auto auto auto;
	gap: 8px;
	align-items: center;
}

.ot-count {
	min-width: 1.5rem;
	text-align: center;
	font-size: 1.25rem;
	font-weight: 700;
}

.ot-total,
.ot-from-amount {
	margin: 0;
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.ot-unit,
.ot-from {
	margin: 0;
}

.ot-book input[type="text"],
.ot-book input[type="email"],
.ot-book input[type="date"],
.ot-book input[type="number"],
.ot-book select,
.ot-search input,
.ot-search select,
.ot-contact input,
.ot-contact textarea {
	width: 100%;
	min-height: 48px;
	margin-top: 4px;
	padding: 10px 12px;
	border: 1px solid var(--ot-line);
	border-radius: 12px;
	background: #fff;
	color: var(--ot-ink);
	font: inherit;
}

.ot-field {
	display: block;
	font-weight: 600;
}

.ot-button,
button.ot-button,
.ot-search button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #place_order {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 12px 18px;
	border: 0;
	border-radius: 14px;
	background: var(--ot-accent);
	color: #fff;
	font-size: 1.125rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.ot-button-small {
	width: auto;
	min-height: 44px;
	padding: 8px 14px;
	font-size: 1rem;
}

.ot-error {
	margin: 0;
	color: #9f1239;
	font-weight: 600;
}

.ot-gallery {
	margin-top: 1.25rem;
}

.ot-gallery-stage {
	position: relative;
	overflow: hidden;
	border-radius: 1.15rem;
	background: var(--ot-paper);
	aspect-ratio: 16 / 10;
}

.ot-gallery-main {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.ot-gallery.has-side {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(8.5rem, 0.8fr);
	gap: 0.5rem;
	align-items: stretch;
	min-height: 22rem;
}

.ot-gallery.has-side .ot-gallery-stage {
	min-height: 22rem;
	aspect-ratio: auto;
	height: 100%;
}

.ot-gallery-side {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.ot-gallery-pick {
	position: relative;
	flex: 1 1 0;
	min-height: 6.5rem;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 1rem;
	overflow: hidden;
	background: var(--ot-paper);
	cursor: pointer;
}

.ot-gallery-pick.is-selected {
	border-color: var(--ot-accent);
}

.ot-gallery-pick img,
.ot-gallery-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ot-gallery-more,
.ot-gallery-close {
	min-height: 44px;
	border: 1px solid var(--ot-line);
	border-radius: 0.7rem;
	background: #fff;
	color: var(--ot-ink);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.ot-gallery-film {
	display: none;
}

.ot-gallery-dialog {
	width: min(52rem, calc(100% - 2rem));
	max-height: calc(100% - 2rem);
	padding: 1rem;
	border: 0;
	border-radius: 1rem;
}

.ot-gallery-dialog::backdrop {
	background: rgba(16, 32, 51, 0.55);
}

.ot-gallery-all {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.ot-gallery-all .ot-gallery-pick {
	aspect-ratio: 4 / 3;
	min-height: 0;
}

.ot-story,
.ot-lists,
.ot-day,
.ot-questions {
	margin-top: 2rem;
}

.ot-lists {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem 2rem;
}

.ot-lists h2,
.ot-day h2,
.ot-questions h2,
.ot-story h2 {
	margin: 0 0 0.75rem;
	font-size: 1.35rem;
}

.ot-included,
.ot-excluded {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ot-included li,
.ot-excluded li {
	position: relative;
	margin: 0 0 0.55rem;
	padding-left: 1.4rem;
}

.ot-included li::before,
.ot-excluded li::before {
	position: absolute;
	left: 0;
	font-weight: 700;
}

.ot-included li::before {
	content: "✓";
	color: var(--ot-accent);
}

.ot-excluded li::before {
	content: "–";
	color: var(--ot-muted);
}

.ot-stops {
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: 2px solid var(--ot-line);
}

.ot-stops li {
	position: relative;
	margin: 0;
	padding: 0 0 1.25rem 1.15rem;
}

.ot-stops li::before {
	content: "";
	position: absolute;
	left: -7px;
	top: 0.35rem;
	width: 12px;
	height: 12px;
	border: 2px solid var(--ot-accent);
	border-radius: 50%;
	background: #fff;
}

.ot-stops h3 {
	margin: 0 0 0.2rem;
	font-size: 1.05rem;
}

.ot-stops p {
	margin: 0;
	color: var(--ot-muted);
}

.ot-question {
	border-bottom: 1px solid var(--ot-line);
	padding: 0.35rem 0;
}

.ot-question summary {
	cursor: pointer;
	font-weight: 600;
	padding: 0.45rem 0;
}

.ot-question p {
	margin: 0 0 0.75rem;
	color: var(--ot-muted);
}

@media (max-width: 859px) {
	.ot-gallery.has-side {
		display: block;
		min-height: 0;
	}

	.ot-gallery.has-side .ot-gallery-stage {
		min-height: 0;
		height: auto;
		aspect-ratio: 16 / 10;
	}

	.ot-gallery-side,
	.ot-gallery-more {
		display: none;
	}

	.ot-gallery-film {
		display: flex;
		gap: 0.5rem;
		margin-top: 0.5rem;
		overflow-x: auto;
		padding-bottom: 0.25rem;
	}

	.ot-gallery-film .ot-gallery-pick {
		flex: 0 0 auto;
		width: 4.5rem;
		height: 4.5rem;
		min-height: 0;
	}

	.ot-lists,
	.ot-gallery-all {
		grid-template-columns: 1fr;
	}

	.ot-gallery-all {
		grid-template-columns: 1fr 1fr;
	}
}

.ot-code {
	font-size: 1.25rem;
}

.ot-pay-note {
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--ot-paper);
}

.otb-hidden-field {
	display: none !important;
}

:focus-visible {
	outline: 3px solid var(--ot-accent-ink);
	outline-offset: 2px;
}
