/* Booking widget: summary card + phone bar + step dialog. Builds on transfer-form.css (fields, quote lines). */

.pt-booking {
	--pt-ink: #1d1d1b;
	--pt-brand: var(--wp--preset--color--brand, var(--e-global-color-primary, #f1b61b));
	--pt-line: #e6e6e0;
	--pt-muted: #5f5f5a;
	display: block;
	margin: 0;
	color: var(--pt-ink);
}

.pt-booking button {
	font: inherit;
	cursor: pointer;
}

/* Primary button */

.pt-booking .pt-bk-cta {
	min-height: 3.1rem;
	padding: 0 1.75rem;
	border: 0;
	border-radius: 999px;
	background: var(--pt-brand);
	color: var(--pt-ink);
	font-weight: 700;
}

.pt-booking .pt-bk-cta:hover,
.pt-booking .pt-bk-cta:focus-visible {
	background: var(--pt-ink);
	color: #fff;
}

/* Card */

.pt-bk-card {
	display: grid;
	gap: 1rem;
	padding: 1.5rem;
	border: 1px solid var(--pt-line);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.pt-bk-card p {
	margin: 0;
}

.pt-bk-card__price strong {
	font-size: 1.85rem;
	line-height: 1;
}

.pt-bk-card__price span {
	color: var(--pt-muted);
}

.pt-bk-card__fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	overflow: hidden;
	border: 1px solid #c9c9c2;
	border-radius: 12px;
}

.pt-booking .pt-bk-card__fields button {
	display: grid;
	gap: 0.15rem;
	min-width: 0;
	padding: 0.65rem 0.85rem;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: var(--pt-ink);
	font-weight: 600;
	text-align: start;
}

.pt-booking .pt-bk-card__fields button + button {
	border-inline-start: 1px solid #c9c9c2;
}

.pt-booking .pt-bk-card__fields button:hover {
	background: #f6f5f1;
}

.pt-bk-card__fields small {
	color: var(--pt-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.pt-bk-card__total {
	display: flex;
	justify-content: space-between;
}

.pt-bk-card__total[hidden] {
	display: none;
}

.pt-bk-card .pt-bk-cta {
	width: 100%;
}

.pt-bk-card__perk {
	display: flex;
	gap: 0.4rem;
	color: var(--pt-muted);
	font-size: 0.875rem;
}

.pt-bk-card__perk .pt-icon {
	flex: 0 0 auto;
	color: #2e7d32;
}

/* Phone bar */

.pt-bk-bar {
	display: none;
}

@media (max-width: 781px) {
	/* On phones the bar replaces the card. */
	.pt-bk-card {
		display: none;
	}

	body:has(.pt-bk-bar) {
		padding-bottom: 5rem;
	}

	/* GTranslate's fixed switcher would sit on top of the price. */
	body:has(.pt-bk-bar) #gt_float_wrapper {
		bottom: 5.5rem !important;
	}

	.pt-bk-bar {
		position: fixed;
		inset: auto 0 0;
		z-index: 60;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
		border-top: 1px solid var(--pt-line);
		background: #fff;
		box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
	}

	.pt-bk-bar p {
		margin: 0;
	}

	.pt-bk-bar strong {
		font-size: 1.3rem;
	}

	.pt-bk-bar span {
		color: var(--pt-muted);
		font-size: 0.875rem;
	}
}

/* Dialog */

.pt-bk-panel {
	width: min(32rem, calc(100vw - 2rem));
	max-height: min(44rem, calc(100dvh - 2rem));
	padding: 0;
	border: 0;
	border-radius: 20px;
	background: #fff;
	color: var(--pt-ink);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.pt-bk-panel[open] {
	display: flex;
	flex-direction: column;
}

.pt-bk-panel::backdrop {
	background: rgba(20, 20, 18, 0.55);
}

.pt-bk-panel__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 1.5rem 0.8rem;
}

.pt-bk-panel__head .pt-bk-panel__title {
	margin: 0;
	color: var(--pt-ink);
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.2;
}

.pt-bk-panel__count {
	margin: 0;
	color: var(--pt-muted);
	font-size: 0.8rem;
}

.pt-booking .pt-bk-panel__close {
	width: 2.4rem;
	height: 2.4rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f1ec;
	color: var(--pt-ink);
	font-size: 1.4rem;
	line-height: 1;
}

.pt-bk-panel__bar {
	height: 3px;
	background: var(--pt-line);
}

.pt-bk-panel__bar span {
	display: block;
	width: 25%;
	height: 100%;
	background: var(--pt-brand);
	transition: width 0.2s;
}

.pt-bk-panel__body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 1.1rem 1.5rem;
}

.pt-bk-panel__body > section {
	display: grid;
	gap: 1rem;
}

.pt-bk-panel__body > section[hidden] {
	display: none;
}

.pt-bk-panel__foot {
	padding: 0.8rem 1.5rem 1rem;
	border-top: 1px solid var(--pt-line);
}

.pt-bk-panel__foot .pt-quote__error {
	margin: 0 0 0.6rem;
}

.pt-bk-panel__actions {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.pt-bk-panel__actions .pt-quote__total {
	display: grid;
	gap: 0;
	flex: 1;
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.2;
}

.pt-bk-panel__actions .pt-quote__total > span {
	color: var(--pt-muted);
	font-size: 0.8rem;
}

.pt-bk-panel__actions .pt-quote__total strong {
	font-size: 1.3rem;
}

.pt-booking .pt-bk-back {
	min-height: 3.1rem;
	padding: 0 1rem;
	border: 0;
	background: none;
	color: var(--pt-ink);
	font-weight: 600;
	text-decoration: underline;
}

.pt-booking .pt-bk-cta[hidden],
.pt-booking .pt-bk-back[hidden] {
	display: none;
}

.pt-bk-panel .pt-quote__lines {
	margin: 0;
	font-size: 1rem;
}

.pt-bk-panel .pt-quote__lines li {
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--pt-line);
}

@media (max-width: 600px) {
	.pt-bk-panel {
		width: 100vw;
		max-width: 100vw;
		height: 100dvh;
		max-height: 100dvh;
		margin: 0;
		border-radius: 0;
	}

	.pt-bk-panel__head,
	.pt-bk-panel__body,
	.pt-bk-panel__foot {
		padding-inline: 1rem;
	}
}

/* Calendar */

.pt-cal {
	color: #1d1d1b;
}

.pt-cal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}

.pt-cal__month {
	display: inline-block;
}

.pt-cal__month::first-letter {
	text-transform: uppercase;
}

.pt-booking .pt-cal button {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0.4rem;
	background: none;
	color: inherit;
	font: inherit;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
}

.pt-booking .pt-cal .pt-cal__nav {
	width: 2.5rem;
	height: 2.5rem;
	font-size: 1.5rem;
}

.pt-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
	text-align: center;
}

.pt-cal__wd {
	padding: 0.25rem 0;
	font-size: 0.8em;
	opacity: 0.6;
	text-transform: uppercase;
}

.pt-booking .pt-cal .pt-cal__day {
	aspect-ratio: 1;
	max-height: 2.9rem;
	font-variant-numeric: tabular-nums;
}

.pt-booking .pt-cal .pt-cal__day:hover:not(:disabled) {
	background: #f1f1ec;
}

.pt-booking .pt-cal .pt-cal__day:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.pt-booking .pt-cal .pt-cal__day.is-booked {
	text-decoration: line-through;
}

.pt-booking .pt-cal .pt-cal__day.is-range {
	border-radius: 0;
	background: #fbe7b0;
}

.pt-booking .pt-cal .pt-cal__day.is-selected {
	background: #1d1d1b;
	color: #fff;
	font-weight: 700;
}

.pt-booking .pt-cal button:focus-visible {
	outline: 2px solid #1d1d1b;
	outline-offset: 1px;
}

.pt-cal__summary {
	min-height: 1.4em;
	margin: 0.5rem 0 0;
	font-weight: 600;
}

/* Extras and quantity steppers */

.pt-extra {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 3.4rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--pt-line);
}

.pt-booking .pt-extra label {
	display: grid;
	flex: 1;
	font-weight: 600;
	cursor: pointer;
}

.pt-extra small {
	color: var(--pt-muted);
	font-weight: 400;
}

.pt-transfer .pt-extra input[type="checkbox"] {
	flex: 0 0 auto;
	width: 1.5rem !important;
	height: 1.5rem !important;
	min-height: 0;
	margin: 0;
	accent-color: var(--pt-ink);
}

.pt-qty {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 0.25rem;
}

.pt-booking .pt-qty button {
	width: 2.4rem;
	height: 2.4rem;
	padding: 0;
	border: 1px solid #c9c9c2;
	border-radius: 50%;
	background: #fff;
	color: var(--pt-ink);
	font-size: 1.15rem;
	line-height: 1;
}

.pt-transfer .pt-qty input[type="number"] {
	width: 2.6rem !important;
	min-height: 2.4rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--pt-ink);
	font-weight: 600;
	text-align: center;
	appearance: textfield;
}

.pt-qty input::-webkit-inner-spin-button {
	appearance: none;
}

.pt-transfer .pt-hint--strong {
	padding: 0.7rem 0.9rem;
	border-radius: 10px;
	background: #fff7dc;
	font-size: 0.95rem;
	font-weight: 600;
	opacity: 1;
}

.pt-extra-more summary {
	padding: 0.8rem 0;
	font-weight: 600;
	cursor: pointer;
}

.pt-quote__error.is-hint {
	color: inherit;
	opacity: 0.75;
}
