/* Horotiu checkout layout. */

.hh-checkout-page .entry-header { max-width: var(--hh-container, 1240px); margin: 0 auto; padding: var(--hh-space-5, 2.5rem) var(--hh-gutter, 24px) 0; }
.hh-checkout-page .mphb-login-form-wrap { display: none; }
.hh-checkout-page .entry-title { font-size: var(--hh-h2, 2.6rem); margin: 0; }
.hh-checkout-page .entry-content { max-width: var(--hh-container, 1240px); margin: 0 auto; padding: var(--hh-space-5, 2.5rem) var(--hh-gutter, 24px) var(--hh-space-7, 6rem); }
.hh-checkout-page .site-content .ast-container,
.hh-checkout-page .ast-container { max-width: 100%; padding: 0; display: block; }
.hh-checkout-page #primary { margin: 0; padding: 0; width: 100%; }
.hh-checkout-page .ast-article-single,
.hh-checkout-page article.page { background: none; padding: 0; margin: 0; border: 0; }

form.hh-co {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: clamp(1.5rem, 3vw, 3rem);
	align-items: start;
	color: var(--hh-ink, #18201B);
}
.hh-co__main { display: grid; gap: 1.5rem; min-width: 0; }
.hh-co__main > section {
	margin: 0;
	padding: clamp(1.25rem, 3vw, 2rem);
	background: #fff;
	border: 1px solid var(--hh-line, #E2DACA);
	border-radius: var(--hh-radius-lg, 18px);
}

/* Hide what the summary already shows. */
.hh-co .mphb-booking-details-title,
.hh-co .mphb-check-in-date,
.hh-co .mphb-check-out-date,
.hh-co .mphb-room-number,
.hh-co .mphb-room-type-title,
.hh-co .mphb-guest-name-wrapper { display: none; }

.hh-co h3,
.hh-co h4,
.hh-co .hh-co__heading,
.hh-co .mphb-customer-details-title,
.hh-co .mphb-services-details-title {
	margin: 0 0 1rem;
	font-family: var(--hh-font-display, Georgia, serif);
	font-weight: 400;
	font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem);
	color: var(--hh-forest, #1F3A2E);
}

.hh-co label { font-weight: 600; font-size: 0.95rem; }
.hh-co abbr[title] { text-decoration: none; color: var(--hh-gold-ink, #8A6A2C); }
.hh-co .mphb-adults-chooser { display: grid; gap: 0.4rem; max-width: 260px; margin: 0 0 0.5rem; }
.hh-co select { height: auto; min-height: 48px; line-height: 1.4; padding: 0.65em 0.85em; }
.hh-co select,
.hh-co input[type="text"],
.hh-co input[type="email"],
.hh-co input[type="number"],
.hh-co textarea { width: 100%; }

/* Extras */
.hh-co .mphb-services-details { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--hh-line, #E2DACA); }
.hh-co .mphb_sc_checkout-services-list { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.hh-extra {
	position: relative;
	padding: 1rem 1.1rem;
	border: 1px solid var(--hh-line, #E2DACA);
	border-radius: var(--hh-radius, 10px);
	background: var(--hh-paper, #FAF7F0);
	transition: border-color 0.2s, background-color 0.2s;
}
.hh-extra:hover { border-color: var(--hh-leaf, #3F6B4F); }
.hh-extra.is-on { border-color: var(--hh-forest, #1F3A2E); background: #fff; box-shadow: inset 3px 0 0 var(--hh-forest, #1F3A2E); }
.hh-extra > label {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 0.85rem;
	align-items: start;
	margin: 0;
	font-weight: 400;
	cursor: pointer;
}
.hh-extra input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 22px;
	height: 22px;
	margin: 2px 0 0;
	border: 1.5px solid var(--hh-muted, #5B665E);
	border-radius: 5px;
	background: #fff;
	cursor: pointer;
	display: grid;
	place-content: center;
}
.hh-extra input[type="checkbox"]::after {
	content: "";
	width: 11px;
	height: 6px;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(-45deg) translate(1px, -1px);
	opacity: 0;
}
.hh-extra input[type="checkbox"]:checked { background: var(--hh-forest, #1F3A2E); border-color: var(--hh-forest, #1F3A2E); }
.hh-extra input[type="checkbox"]:checked::after { opacity: 1; }
.hh-extra input[type="checkbox"]:focus-visible { outline: 2px solid var(--hh-gold, #B8924A); outline-offset: 2px; }
.hh-extra__body { display: grid; gap: 0.15rem; }
.hh-extra__name { font-weight: 600; }
.hh-extra__desc { font-size: 0.875rem; color: var(--hh-muted, #5B665E); }
.hh-extra__price { font-style: normal; font-weight: 600; white-space: nowrap; color: var(--hh-forest, #1F3A2E); }
.hh-extra__qty { display: none; align-items: center; gap: 0.75rem; margin: 0.85rem 0 0 calc(22px + 0.85rem); }
.hh-extra.is-on .hh-extra__qty { display: flex; }
.hh-extra__qty label { font-weight: 500; font-size: 0.9rem; }
.hh-extra__qty input[type="number"] { width: 90px; }

/* Contact details */
.hh-co .mphb-customer-details { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.hh-co .mphb-customer-details > * { grid-column: 1 / -1; }
.hh-co .mphb-customer-details > p { margin: 0 0 1rem; display: grid; gap: 0.35rem; }
.hh-co .mphb-customer-name,
.hh-co .mphb-customer-last-name,
.hh-co .mphb-customer-email,
.hh-co .mphb-customer-phone { grid-column: auto; }
.hh-co .mphb-required-fields-tip { font-size: 0.85rem; color: var(--hh-muted, #5B665E); }

/* Summary column */
/* Sticky only when the whole card fits on screen, so the button is always reachable. */
@media (min-width: 961px) {
	.hh-co__aside {
		--hh-co-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--hh-header-h, 76px) + 1.25rem);
		position: sticky;
		top: var(--hh-co-top);
		align-self: start;
	}
	.hh-co__aside .hh-co__card {
		display: flex;
		flex-direction: column;
		max-height: calc(100vh - var(--hh-co-top) - 1.25rem);
	}
	.hh-co__aside .hh-co__head { flex: 0 0 auto; }
	.hh-co__aside .hh-co__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
	.hh-co__aside .hh-co__foot { flex: 0 0 auto; }
}
/* Short screens: drop the photo so the summary and button still fit. */
@media (min-width: 961px) and (max-height: 820px) {
	.hh-co__aside .hh-co__img { display: none; }
	.hh-co__aside .hh-co__head-body { padding-top: 1rem; }
}
}
.hh-co__card {
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--hh-line, #E2DACA);
	border-radius: var(--hh-radius-lg, 18px);
	box-shadow: var(--hh-shadow-panel, 0 18px 40px -18px rgba(21, 40, 31, 0.28));
}
.hh-co__img { display: block; width: 100%; aspect-ratio: 5 / 2; object-fit: cover; object-position: center 60%; }
.hh-co__head-body { padding: 1.25rem 1.5rem 0; }
.hh-co__title { margin: 0; font-size: 1.45rem; }
.hh-co__dates { margin: 0.25rem 0 0.25rem; color: var(--hh-ink, #18201B); font-weight: 500; }
.hh-co__change { font-size: 0.9rem; }
.hh-co__body { padding: 1rem 1.5rem 1.5rem; }
.hh-co__body > section,
.hh-co__body .mphb-room-price-breakdown-wrapper { margin: 0; padding: 0; border: 0; background: none; }
.hh-co__body .mphb-price-breakdown-title { display: none; }

.hh-co .mphb-price-breakdown { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.hh-co .mphb-price-breakdown th,
.hh-co .mphb-price-breakdown td { padding: 0.45rem 0; border: 0; border-bottom: 1px solid var(--hh-line, #E2DACA); background: none; text-align: left; font-weight: 400; }
.hh-co .mphb-price-breakdown td:last-child,
.hh-co .mphb-price-breakdown th:last-child { text-align: right; }
.hh-co .mphb-price-breakdown tfoot,
.hh-co .mphb-price-breakdown .mphb-price-breakdown-total { display: none; }
.hh-co .mphb-price-breakdown-expand { color: var(--hh-forest, #1F3A2E); text-decoration: none; font-weight: 600; }

.hh-co .mphb-total-price {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin: 1rem 0 0;
	padding-top: 0.9rem;
	border-top: 1px solid var(--hh-ink, #18201B);
	font-weight: 700;
}
.hh-co .mphb-total-price .mphb-price { font-family: var(--hh-font-display, Georgia, serif); font-weight: 400; font-size: 1.6rem; color: var(--hh-forest, #1F3A2E); }
.hh-co .hhb-bond-note { margin: 1rem 0 0; font-size: 0.875rem; }
.hh-co .mphb-errors-wrapper:not(.mphb-hide) { margin: 1rem 0 0; color: var(--hh-error, #A2412F); }
.hh-co .mphb_sc_checkout-submit-wrapper { margin: 1.25rem 0 0; }
.hh-co .mphb_sc_checkout-submit-wrapper [type="submit"] {
	width: 100%;
	padding: 1em;
	border: 1px solid var(--hh-gold, #B8924A);
	border-radius: var(--hh-radius-sm, 6px);
	background: var(--hh-gold, #B8924A);
	color: var(--hh-forest-deep, #15281F);
	font-family: var(--hh-font-body, sans-serif);
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
}
.hh-co .mphb_sc_checkout-submit-wrapper [type="submit"]:hover { background: var(--hh-gold-light, #E3CB96); }

/* Pay block under the form */
.hh-co .hh-co__pay {
	margin-top: 1.5rem;
	padding: 1.5rem 1.75rem;
	background: var(--hh-white, #fff);
	border: 1px solid var(--hh-line, #E2DACA);
	border-radius: 18px;
}
.hh-co .hh-co__pay .mphb-terms-and-conditions-accept,
.hh-co .hh-co__pay > p:first-child { margin: 0; }
.hh-co .hh-co__pay .mphb_sc_checkout-submit-wrapper { margin-top: 1.1rem; }
.hh-co .hh-co__pay .mphb_sc_checkout-submit-wrapper [type="submit"] { font-size: 1.0625rem; padding: 1.05em; }
.hh-co .hh-co__secure { margin: 0.75rem 0 0; font-size: 0.875rem; color: var(--hh-muted, #5B665E); text-align: center; }

/* Pinned foot of the summary card: total, bond note and the main button. */
.hh-co__foot { padding: 0 1.5rem 1.5rem; border-top: 1px solid var(--hh-line, #E2DACA); background: #fff; }
.hh-co__foot .mphb-total-price { margin-top: 0; border-top: 0; }
.hh-co button.hh-co__aside-btn {
	width: 100%;
	margin: 1rem 0 0;
	padding: 1em;
	border: 1px solid var(--hh-gold, #B8924A);
	border-radius: var(--hh-radius-sm, 6px);
	background: var(--hh-gold, #B8924A);
	color: var(--hh-forest-deep, #15281F);
	font-family: var(--hh-font-body, sans-serif);
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
}
.hh-co button.hh-co__aside-btn:hover { background: var(--hh-gold-light, #E3CB96); }

/* Mobile bar */
.hh-co-bar { display: none; }
@media (max-width: 960px) {
	.hh-co button.hh-co__aside-btn { display: none; }
	.hh-co .hh-co__pay { padding: 1.25rem; }
	form.hh-co { grid-template-columns: 1fr; }
	.hh-co__aside { position: static; }
	.hh-co .mphb-customer-details { grid-template-columns: 1fr; }
	.hh-co-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 40;
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		gap: 0.75rem;
		padding: 0.8rem var(--hh-gutter, 16px) calc(0.8rem + env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid var(--hh-line, #E2DACA);
		box-shadow: 0 -8px 24px -12px rgba(21, 40, 31, 0.25);
		transition: transform 0.25s ease;
	}
	.hh-co-bar.is-hidden { transform: translateY(110%); }
	.hh-co-bar__label { color: var(--hh-muted, #5B665E); font-size: 0.9rem; }
	.hh-co-bar__total { font-size: 1.15rem; }
	.hh-checkout-page .entry-content { padding-bottom: 7rem; }
}

/* Keep floating theme controls off the booking buttons. */
.hh-checkout-page #ast-scroll-top,
body:has(.hhb-book) #ast-scroll-top { display: none !important; }
.hh-co .hh-co__title { color: var(--hh-forest, #1F3A2E); font-family: var(--hh-font-display, Georgia, serif); font-weight: 400; }
