/* =============================================================================
 * Aksara Agency — Booking styles
 * A cohesive skin for the MotoPress Hotel Booking & WooCommerce Confirm Payment
 * screens: rooms listing, single room, booking/checkout form, confirm form.
 * Matches the theme's design language (theme.json tokens: Pine, Sage, Cream,
 * Gold; Poppins; 8px button radius; gold-filled buttons; cream inputs).
 *
 * Enqueued only on booking contexts (see functions.php). Loads after the main
 * theme stylesheet.
 * ========================================================================= */

/* ---------------------------------------------------------------------------
 * 0. Local design tokens (theme presets with hex fallbacks)
 * Defined on :root (the file only loads on booking pages) so they are
 * available regardless of the surrounding containers MPHB renders.
 * ------------------------------------------------------------------------- */
:root {
	--akbk-pine: var(--wp--preset--color--pine, #083630);
	--akbk-pine-muted: var(--wp--preset--color--pine-muted, #2d544f);
	--akbk-pine-deep: var(--wp--preset--color--pine-deep, #052420);
	--akbk-sage: var(--wp--preset--color--sage, #eaf0ee);
	--akbk-cream: var(--wp--preset--color--cream, #f8f6f0);
	--akbk-gold: var(--wp--preset--color--gold, #c6a15b);
	--akbk-gold-deep: var(--wp--preset--color--gold-deep, #947944);
	--akbk-gold-soft: var(--wp--preset--color--gold-soft, #f6f1e6);
	--akbk-charcoal: var(--wp--preset--color--charcoal, #26302d);
	--akbk-line: var(--wp--preset--color--line, #dad5c6);
	--akbk-white: var(--wp--preset--color--white, #ffffff);
	--akbk-font: var(--wp--preset--font-family--poppins, Poppins, sans-serif);
	--akbk-radius-lg: 18px;
	--akbk-radius-md: 12px;
	--akbk-radius-sm: 8px;
	--akbk-shadow: 0 10px 30px rgba(8, 54, 48, 0.08);
	--akbk-shadow-hover: 0 18px 40px rgba(8, 54, 48, 0.16);
}

/* Shared “eyebrow” heading used above attribute groups & price. */
.mphb-room-type-details-title,
.mphb-details-title,
.mphb-calendar-title,
.mphb-reservation-form-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 26px 0 12px;
	font-family: var(--akbk-font);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--akbk-pine-muted);
}

.mphb-room-type-details-title::before,
.mphb-details-title::before,
.mphb-calendar-title::before,
.mphb-reservation-form-title::before {
	content: '';
	flex: 0 0 auto;
	width: 22px;
	height: 2px;
	background: var(--akbk-gold);
	border-radius: 2px;
}

/* ---------------------------------------------------------------------------
 * 1. Rooms listing ( [mphb_rooms] / [mphb_search_results] )
 * ------------------------------------------------------------------------- */
.mphb_sc_rooms-wrapper.mphb-room-types {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: clamp(20px, 3vw, 30px);
	list-style: none;
	margin: 0;
}

.mphb-room-type {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--akbk-white);
	border: 1px solid var(--akbk-line);
	border-radius: var(--akbk-radius-lg);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mphb-room-type:hover {
	transform: translateY(-4px);
	box-shadow: var(--akbk-shadow-hover);
}

/* Images / slider sit flush to the card top. */
.mphb-room-type-images {
	position: relative;
	background: var(--akbk-sage);
	overflow: hidden;
}

.mphb-room-type-images .flexslider,
.mphb-room-type-images .mphb-flexslider-gallery-wrapper {
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.mphb-room-type-images img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Keep every slide of the listing slider on the exact same 4:3 box. The WP
   gallery markup wraps the slide <img> in an inline <span class="gallery-icon">,
   so the inline-block image keeps a text baseline gap and each <li> grows
   taller than the image. Forcing block layout on the whole slide chain makes
   every card image render at an identical 4:3 height, regardless of each
   source image's own aspect ratio. */
.mphb_sc_rooms-wrapper.mphb-room-types .mphb-room-type-images .flexslider,
.mphb_sc_rooms-wrapper.mphb-room-types .mphb-room-type-images .flex-viewport {
	height: auto !important;
}

.mphb_sc_rooms-wrapper.mphb-room-types .mphb-room-type-images .flexslider .slides > li,
.mphb_sc_rooms-wrapper.mphb-room-types .mphb-room-type-images .flexslider .slides > li > .gallery-icon,
.mphb_sc_rooms-wrapper.mphb-room-types .mphb-room-type-images .flexslider .slides > li > .gallery-icon > a {
	display: block;
	height: auto;
	margin: 0;
	padding: 0;
	line-height: 0;
}

.mphb_sc_rooms-wrapper.mphb-room-types .mphb-room-type-images .flexslider .slides > li > .gallery-icon > a > img {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* On the rooms listings the MPHB thumbnail nav slider renders at full size
   (same as the main slider), so each card shows a duplicated/stacked gallery.
   Show only the single main slider on listing cards; the single-room page
   keeps its working thumbnail strip. */
.mphb_sc_rooms-wrapper.mphb-room-types .mphb-gallery-thumbnail-slider {
	display: none;
}

/* Text content inside the card. */
.mphb-room-type .mphb-room-type-title {
	margin: 18px 22px 0;
	padding: 0;
	font-size: 1.25rem;
	line-height: 1.3;
}

.mphb-room-type .mphb-room-type-title a {
	color: var(--akbk-charcoal);
	text-decoration: none;
	transition: color 0.2s ease;
}

.mphb-room-type .mphb-room-type-title a:hover {
	color: var(--akbk-pine);
}

.mphb-room-type-details-title {
	margin: 16px 22px 6px;
}

.mphb-loop-room-type-attributes {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin: 0 22px;
	padding: 0;
	list-style: none;
	font-size: 0.84375rem;
}

.mphb-loop-room-type-attributes li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	color: var(--akbk-charcoal);
}

.mphb-loop-room-type-attributes .mphb-attribute-title {
	color: var(--akbk-pine-muted);
	font-weight: 600;
}

/* Facility / category links become small chips. */
.mphb-loop-room-type-attributes .mphb-attribute-value a,
.mphb-single-room-type-attributes .mphb-attribute-value a,
.mphb-room-type-categories .mphb-attribute-value a,
.mphb-room-type-facilities .mphb-attribute-value a {
	display: inline-flex;
	align-items: center;
	background: var(--akbk-sage);
	color: var(--akbk-pine);
	border-radius: 999px;
	padding: 3px 10px;
	margin: 1px 2px 1px 0;
	font-size: 0.75rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.mphb-loop-room-type-attributes .mphb-attribute-value a:hover,
.mphb-single-room-type-attributes .mphb-attribute-value a:hover,
.mphb-room-type-categories .mphb-attribute-value a:hover,
.mphb-room-type-facilities .mphb-attribute-value a:hover {
	background: var(--akbk-pine);
	color: var(--akbk-cream);
}

/* Price */
.mphb-room-type .mphb-regular-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	margin: 16px 22px 0;
	font-size: 0.84375rem;
	color: var(--akbk-pine-muted);
}

.mphb-room-type .mphb-regular-price strong {
	font-weight: 600;
	color: var(--akbk-pine-muted);
}

.mphb-room-type .mphb-price {
	color: var(--akbk-pine);
	font-size: 1.125rem;
	font-weight: 700;
	white-space: nowrap;
}

.mphb-room-type .mphb-price-period {
	font-size: 0.8125rem;
	color: var(--akbk-pine-muted);
}

/* Card action area — full-width buttons stacked, pinned to the bottom so all
   cards in a row align even when the attribute lists differ in length. */
.mphb-room-type .mphb-view-details-button-wrapper,
.mphb-room-type .mphb-to-book-btn-wrapper {
	display: block;
	width: 100%;
	box-sizing: border-box;
}

.mphb-room-type .mphb-view-details-button-wrapper {
	margin-top: auto; /* push the action group to the bottom of the card */
	padding: 20px 22px 0;
}

.mphb-room-type .mphb-to-book-btn-wrapper {
	padding: 12px 22px 22px;
}

.mphb-room-type .mphb-to-book-btn-wrapper form {
	display: block;
	width: 100%;
	margin: 0;
}

.mphb-room-type .mphb-to-book-btn-wrapper br {
	display: none;
}

.mphb-room-type .mphb-view-details-button-wrapper .mphb-view-details-button,
.mphb-room-type .mphb-to-book-btn-wrapper .mphb-book-button {
	width: 100%;
	box-sizing: border-box;
}

/* ---------------------------------------------------------------------------
 * 2. Buttons (theme-consistent: gold fill + pine text; outline variant)
 * ------------------------------------------------------------------------- */
.mphb-view-details-button,
.mphb-book-button,
.mphb-button,
.mphb-confirm-reservation,
.mphb-reserve-btn,
.wcp-button-confirm {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--akbk-font);
	font-size: 0.84375rem;
	font-weight: 600;
	line-height: 1;
	border-radius: var(--akbk-radius-sm);
	padding: 13px 26px;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
		box-shadow 0.2s ease, transform 0.2s ease;
}

/* Gold (primary) */
.mphb-book-button,
.mphb-confirm-reservation,
.mphb-reserve-btn,
.mphb-button,
.wcp-button-confirm {
	background: var(--akbk-gold);
	border: 1px solid var(--akbk-gold);
	color: var(--akbk-pine);
}

.mphb-book-button:hover,
.mphb-confirm-reservation:hover,
.mphb-reserve-btn:hover,
.mphb-button:hover,
.wcp-button-confirm:hover {
	background: var(--akbk-gold-deep);
	border-color: var(--akbk-gold-deep);
	color: var(--akbk-cream);
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(8, 54, 48, 0.18);
}

/* Outline (secondary) */
.mphb-view-details-button {
	background: transparent;
	border: 1.5px solid var(--akbk-pine);
	color: var(--akbk-pine);
}

.mphb-view-details-button:hover {
	background: var(--akbk-pine);
	color: var(--akbk-cream);
}

/* ---------------------------------------------------------------------------
 * 3. Single room page
 * ------------------------------------------------------------------------- */

/* Gallery slider on the single page. */
.mphb-gallery-main-slider,
.mphb-gallery-thumbnail-slider {
	max-width: none;
}

.single-mphb_room_type .mphb-gallery-main-slider {
	border-radius: var(--akbk-radius-lg);
	overflow: hidden;
	box-shadow: var(--akbk-shadow);
}

.single-mphb_room_type .mphb-gallery-main-slider .flexslider,
.single-mphb_room_type .mphb-gallery-thumbnail-slider .flexslider {
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.mphb-gallery-thumbnail-slider {
	margin-top: 12px;
}

.single-mphb_room_type .mphb-gallery-thumbnail-slider {
	border-radius: var(--akbk-radius-md);
	overflow: hidden;
}

/* Details / attributes as a soft panel. */
.single-mphb_room_type .mphb-single-room-type-attributes {
	display: grid;
	gap: 10px;
	margin: 14px 0 0;
	padding: 18px 20px;
	list-style: none;
	background: var(--akbk-sage);
	border: 1px solid rgba(45, 84, 79, 0.12);
	border-radius: var(--akbk-radius-md);
}

.single-mphb_room_type .mphb-single-room-type-attributes li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	font-size: 0.90625rem;
	color: var(--akbk-charcoal);
}

.single-mphb_room_type .mphb-single-room-type-attributes .mphb-attribute-title {
	color: var(--akbk-pine-muted);
	font-weight: 600;
}

/* Price callout. */
.mphb-single-room-type .mphb-regular-price,
.single-mphb_room_type .mphb-regular-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	background: var(--akbk-gold-soft);
	border: 1px solid var(--akbk-line);
	border-radius: var(--akbk-radius-md);
	padding: 14px 18px;
	margin: 16px 0 0;
	font-size: 0.90625rem;
	color: var(--akbk-pine-muted);
}

.single-mphb_room_type .mphb-price {
	color: var(--akbk-pine);
	font-size: 1.375rem;
	font-weight: 700;
}

.single-mphb_room_type .mphb-price-period {
	font-size: 0.875rem;
}

/* ---------------------------------------------------------------------------
 * 4. MPHB forms — shared (single room reservation form + booking/checkout)
 * ------------------------------------------------------------------------- */
.mphb-booking-form {
	background: var(--akbk-white);
	border: 1px solid var(--akbk-line);
	border-radius: var(--akbk-radius-lg);
	padding: clamp(20px, 3.5vw, 30px);
}

.mphb-required-fields-tip {
	color: var(--akbk-pine-muted);
	font-size: 0.8125rem;
	margin: 0 0 16px;
}

/* Labels */
.mphb-booking-form label,
.mphb-booking-form .mphb-reserve-rooms label {
	display: inline-block;
	font-family: var(--akbk-font);
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--akbk-pine);
	margin-bottom: 6px;
}

/* Inputs (cream surface, gold focus — mirrors the theme forms). */
.mphb-booking-form input[type='text'],
.mphb-booking-form input[type='email'],
.mphb-booking-form input[type='tel'],
.mphb-booking-form input[type='number'],
.mphb-booking-form input[type='date'],
.mphb-booking-form input[type='time'],
.mphb-booking-form select,
.mphb-booking-form textarea,
.mphb-booking-form .mphb-datepick {
	width: 100%;
	box-sizing: border-box;
	font-family: var(--akbk-font);
	font-size: 0.875rem;
	color: var(--akbk-charcoal);
	background: var(--akbk-cream);
	border: 1px solid var(--akbk-line);
	border-radius: var(--akbk-radius-sm);
	padding: 11px 12px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mphb-booking-form input[type='text']:focus,
.mphb-booking-form input[type='email']:focus,
.mphb-booking-form input[type='tel']:focus,
.mphb-booking-form input[type='number']:focus,
.mphb-booking-form input[type='date']:focus,
.mphb-booking-form input[type='time']:focus,
.mphb-booking-form select:focus,
.mphb-booking-form textarea:focus,
.mphb-booking-form .mphb-datepick:focus {
	outline: none;
	border-color: var(--akbk-gold);
	box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.18);
}

/* Side-by-side date fields on room pages. */
.mphb-check-in-date-wrapper,
.mphb-check-out-date-wrapper {
	margin: 0 0 14px;
}

@media (min-width: 640px) {
	.mphb-check-in-date-wrapper,
	.mphb-check-out-date-wrapper {
		display: inline-block;
		width: calc(50% - 6px);
		vertical-align: top;
	}

	.mphb-check-out-date-wrapper {
		margin-left: 12px;
	}
}

/* Reserve section / quantities */
.mphb-reserve-room-section {
	margin-top: 6px;
}

.mphb-rooms-quantity-wrapper label {
	font-size: 0.8125rem;
}

/* Availability calendar — tone down borders, keep readable. */
.mphb-calendar {
	border: 1px solid var(--akbk-line);
	border-radius: var(--akbk-radius-md);
	overflow: hidden;
	background: var(--akbk-white);
}

.mphb-calendar .datepick-month {
	border-color: var(--akbk-line);
}

/* ---------------------------------------------------------------------------
 * 5. Confirm payment form (wc-confirm-payment)
 * ------------------------------------------------------------------------- */
.wcp-form {
	max-width: 860px;
	margin: 0 auto;
	background: var(--akbk-white);
	border: 1px solid var(--akbk-line);
	border-radius: var(--akbk-radius-lg);
	padding: clamp(22px, 4vw, 38px);
	box-shadow: var(--akbk-shadow);
}

.wcp-form-inner {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}

.wcp-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	min-width: 0;
}

/* Groups without the half-width modifier span the full row. */
.wcp-form-group:not(.wcp-col-2) {
	grid-column: 1 / -1;
}

.wcp-form-label {
	font-family: var(--akbk-font);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--akbk-pine);
}

.wcp-form-label .required {
	color: var(--akbk-gold-deep);
	font-weight: 700;
	margin-left: 2px;
}

.wcp-form .wcp-form-control {
	width: 100%;
	box-sizing: border-box;
	font-family: var(--akbk-font);
	font-size: 0.90625rem;
	color: var(--akbk-charcoal);
	background: var(--akbk-cream);
	border: 1px solid var(--akbk-line);
	border-radius: var(--akbk-radius-sm);
	padding: 12px 13px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wcp-form .wcp-form-control:focus {
	outline: none;
	border-color: var(--akbk-gold);
	box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.18);
}

/* File input (slip upload). */
.wcp-form input[type='file'].wcp-form-control {
	padding: 9px;
	background: var(--akbk-cream);
	cursor: pointer;
}

/* Bank account radio options as selectable cards. */
.wcp-form-input-radio {
	display: grid;
	gap: 10px;
}

.wcp-account-detail-item {
	display: block;
	cursor: pointer;
}

.wcp-account-detail-item ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wcp-account-bank {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--akbk-sage);
	border: 1.5px solid transparent;
	border-radius: var(--akbk-radius-md);
	padding: 12px 14px;
	font-size: 0.90625rem;
	font-weight: 600;
	color: var(--akbk-pine);
	transition: border-color 0.2s ease, background 0.2s ease;
}

.wcp-account-detail-item input[type='radio'] {
	accent-color: var(--akbk-pine);
	margin: 0;
}

.wcp-account-detail-item input[type='radio']:checked + img + *,
.wcp-account-detail-item input[type='radio']:checked ~ .wcp-account-bank-label {
	color: var(--akbk-pine-deep);
}

.wcp-form .wcp-account-bank:has(input[type='radio']:checked) {
	border-color: var(--akbk-pine);
	background: var(--akbk-gold-soft);
}

.wcp-account-bank img {
	width: 26px;
	height: auto;
	border-radius: 4px;
}

/* Submit */
.wcp-form-group .wcp-button-confirm {
	width: 100%;
}

/* AJAX response area */
.wcp-form-response {
	min-height: 24px;
}

.wcp-form-response p {
	margin: 10px 0 0;
	font-size: 0.90625rem;
}

.wcp-form-response .success,
.wcp-form-response .notice-success {
	color: var(--akbk-pine);
	font-weight: 600;
}

/* ---------------------------------------------------------------------------
 * 6. Checkout / booking confirmation page extras
 * ------------------------------------------------------------------------- */
/* Headings on MPHB booking/checkout pages. */
.mphb_sc_checkout-wrapper h1,
.mphb_sc_checkout-wrapper h2,
.mphb_sc_booking_details-wrapper h2 {
	color: var(--akbk-pine);
}

/* ---------------------------------------------------------------------------
 * 7. MPHB checkout — Booking Confirmation page ( [mphb_checkout] )
 * ------------------------------------------------------------------------- */
.mphb_sc_checkout-wrapper {
	max-width: 920px;
	margin-left: auto;
	margin-right: auto;
}

form.mphb_sc_checkout-form {
	background: var(--akbk-white);
	border: 1px solid var(--akbk-line);
	border-radius: var(--akbk-radius-lg);
	padding: clamp(24px, 4vw, 44px);
	box-shadow: var(--akbk-shadow);
}

/* Section headings as small eyebrows with a gold dash. */
.mphb_sc_checkout-form .mphb-booking-details-title,
.mphb_sc_checkout-form .mphb-customer-details-title,
.mphb_sc_checkout-form .mphb-gateway-chooser-title,
.mphb_sc_checkout-form .mphb-price-breakdown-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	font-family: var(--akbk-font);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--akbk-pine);
}

.mphb_sc_checkout-form .mphb-booking-details-title::before,
.mphb_sc_checkout-form .mphb-customer-details-title::before,
.mphb_sc_checkout-form .mphb-gateway-chooser-title::before,
.mphb_sc_checkout-form .mphb-price-breakdown-title::before {
	content: '';
	flex: 0 0 auto;
	width: 22px;
	height: 2px;
	background: var(--akbk-gold);
	border-radius: 2px;
}

/* Booking summary sits in a soft sage panel. */
.mphb_sc_checkout-form #mphb-booking-details {
	margin: 0 0 26px;
	padding: 20px 22px;
	background: var(--akbk-sage);
	border: 1px solid rgba(45, 84, 79, 0.12);
	border-radius: var(--akbk-radius-md);
}

.mphb_sc_checkout-form .mphb-check-in-date,
.mphb_sc_checkout-form .mphb-check-out-date {
	box-sizing: border-box;
	display: inline-block;
	vertical-align: top;
	width: calc(50% - 6px);
	margin: 0 0 8px;
	padding: 12px 14px;
	background: var(--akbk-white);
	border: 1px solid var(--akbk-line);
	border-radius: var(--akbk-radius-sm);
	font-size: 0.8125rem;
	color: var(--akbk-pine-muted);
}

.mphb_sc_checkout-form .mphb-check-out-date {
	margin-left: 12px;
}

.mphb_sc_checkout-form .mphb-check-in-date strong,
.mphb_sc_checkout-form .mphb-check-out-date strong {
	color: var(--akbk-pine);
	font-weight: 700;
}

/* Each reserved room inside the summary. */
.mphb_sc_checkout-form .mphb-reserve-rooms-details {
	margin-top: 6px;
	padding-top: 14px;
	border-top: 1px dashed var(--akbk-line);
}

.mphb_sc_checkout-form .mphb-room-details + .mphb-room-details {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px dashed var(--akbk-line);
}

.mphb_sc_checkout-form .mphb-room-number {
	margin: 0 0 4px;
	font-family: var(--akbk-font);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--akbk-pine-muted);
}

.mphb_sc_checkout-form .mphb-room-type-title {
	margin: 0 0 10px;
	font-weight: 600;
	color: var(--akbk-charcoal);
}

.mphb_sc_checkout-form .mphb-room-type-title a {
	color: var(--akbk-pine);
	text-decoration: none;
}

.mphb_sc_checkout-form .mphb-adults-chooser,
.mphb_sc_checkout-form .mphb-children-chooser {
	box-sizing: border-box;
	display: inline-block;
	vertical-align: top;
	width: calc(50% - 6px);
	margin: 0 0 10px;
}

.mphb_sc_checkout-form .mphb-children-chooser {
	margin-left: 12px;
}

.mphb_sc_checkout-form .mphb-adults-chooser label,
.mphb_sc_checkout-form .mphb-children-chooser label,
.mphb_sc_checkout-form .mphb-guest-name-wrapper label {
	display: block;
	margin-bottom: 4px;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--akbk-pine);
}

/* Checkout text fields & selects (cream surface, gold focus). */
.mphb_sc_checkout-form input[type='text'],
.mphb_sc_checkout-form input[type='email'],
.mphb_sc_checkout-form input[type='tel'],
.mphb_sc_checkout-form input[type='number'],
.mphb_sc_checkout-form textarea,
.mphb_sc_checkout-form select {
	box-sizing: border-box;
	width: 100%;
	font-family: var(--akbk-font);
	font-size: 0.875rem;
	color: var(--akbk-charcoal);
	background: var(--akbk-cream);
	border: 1px solid var(--akbk-line);
	border-radius: var(--akbk-radius-sm);
	padding: 11px 12px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mphb_sc_checkout-form input[type='text']:focus,
.mphb_sc_checkout-form input[type='email']:focus,
.mphb_sc_checkout-form input[type='tel']:focus,
.mphb_sc_checkout-form input[type='number']:focus,
.mphb_sc_checkout-form textarea:focus,
.mphb_sc_checkout-form select:focus {
	outline: none;
	border-color: var(--akbk-gold);
	box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.18);
}

/* "Your Information" — a two-column card of fields. */
.mphb_sc_checkout-form #mphb-customer-details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 20px;
	row-gap: 16px;
	margin: 0 0 26px;
	padding: 22px 24px;
	border: 1px solid var(--akbk-line);
	border-radius: var(--akbk-radius-md);
}

.mphb_sc_checkout-form #mphb-customer-details .mphb-customer-details-title,
.mphb_sc_checkout-form #mphb-customer-details .mphb-required-fields-tip,
.mphb_sc_checkout-form #mphb-customer-details .mphb-customer-note {
	grid-column: 1 / -1;
}

.mphb_sc_checkout-form #mphb-customer-details .mphb-required-fields-tip {
	margin: -8px 0 2px;
	font-size: 0.8125rem;
	color: var(--akbk-pine-muted);
}

.mphb_sc_checkout-form #mphb-customer-details p {
	margin: 0;
}

.mphb_sc_checkout-form #mphb-customer-details br {
	display: none;
}

.mphb_sc_checkout-form #mphb-customer-details label {
	display: block;
	margin-bottom: 4px;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--akbk-pine);
}

.mphb_sc_checkout-form #mphb-customer-details label abbr,
.mphb_sc_checkout-form #mphb-customer-details .mphb-required-fields-tip abbr {
	color: var(--akbk-gold-deep);
	font-weight: 700;
}

/* Coupon box. */
.mphb_sc_checkout-form #mphb-coupon-details {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px 14px;
	margin: 0 0 26px;
	padding: 16px 20px;
	background: var(--akbk-cream);
	border: 1px dashed var(--akbk-line);
	border-radius: var(--akbk-radius-md);
}

.mphb_sc_checkout-form #mphb-coupon-details .mphb-coupon-code-title {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--akbk-pine);
}

.mphb_sc_checkout-form #mphb-coupon-details input#mphb_coupon_code {
	width: 100%;
	margin: 0;
}

.mphb_sc_checkout-form button.mphb-apply-coupon-code-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--akbk-font);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1;
	color: var(--akbk-pine);
	background: transparent;
	border: 1.5px solid var(--akbk-pine);
	border-radius: var(--akbk-radius-sm);
	padding: 11px 20px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.mphb_sc_checkout-form button.mphb-apply-coupon-code-button:hover {
	background: var(--akbk-pine);
	color: var(--akbk-cream);
}

/* Price breakdown. */
.mphb_sc_checkout-form #mphb-price-details {
	margin: 0 0 26px;
	padding: 20px 22px;
	border: 1px solid var(--akbk-line);
	border-radius: var(--akbk-radius-md);
	overflow: hidden;
}

.mphb_sc_checkout-form table.mphb-price-breakdown {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
	color: var(--akbk-charcoal);
}

.mphb_sc_checkout-form table.mphb-price-breakdown td,
.mphb_sc_checkout-form table.mphb-price-breakdown th {
	padding: 9px 6px;
	text-align: left;
	vertical-align: middle;
	border-bottom: 1px solid rgba(218, 213, 198, 0.55);
}

.mphb_sc_checkout-form table.mphb-price-breakdown th.mphb-table-price-column,
.mphb_sc_checkout-form table.mphb-price-breakdown td.mphb-table-price-column {
	text-align: right;
	white-space: nowrap;
}

.mphb_sc_checkout-form table.mphb-price-breakdown tr.mphb-price-breakdown-total {
	background: var(--akbk-gold-soft);
	font-weight: 700;
	color: var(--akbk-pine);
}

.mphb_sc_checkout-form table.mphb-price-breakdown tr.mphb-price-breakdown-total td,
.mphb_sc_checkout-form table.mphb-price-breakdown tr.mphb-price-breakdown-total th {
	border-bottom: 0;
}

/* Payment method (gateway). */
.mphb_sc_checkout-form #mphb-billing-details {
	margin: 0 0 24px;
	padding: 20px 22px;
	border: 1px solid var(--akbk-line);
	border-radius: var(--akbk-radius-md);
}

.mphb_sc_checkout-form .mphb-gateway-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--akbk-pine);
}

.mphb_sc_checkout-form .mphb-gateway-description {
	margin: 6px 0 0;
	font-size: 0.8125rem;
	color: var(--akbk-pine-muted);
}

/* Total price callout. */
.mphb_sc_checkout-form .mphb-total-price {
	margin: 0 0 20px;
	padding: 16px 18px;
	background: var(--akbk-gold-soft);
	border: 1px solid var(--akbk-line);
	border-radius: var(--akbk-radius-md);
}

.mphb_sc_checkout-form .mphb-total-price output {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-weight: 600;
	color: var(--akbk-pine);
}

.mphb_sc_checkout-form .mphb-total-price .mphb-total-price-field {
	margin-left: auto;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--akbk-pine);
}

.mphb_sc_checkout-form .mphb-deposit-amount {
	margin: -6px 0 20px;
	padding: 12px 18px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--akbk-pine-muted);
}

/* Book Now — full-width gold button. */
.mphb_sc_checkout-form .mphb_sc_checkout-submit-wrapper {
	margin: 0;
}

.mphb_sc_checkout-form .mphb_sc_checkout-submit-wrapper input[type='submit'] {
	width: 100%;
	font-family: var(--akbk-font);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1;
	color: var(--akbk-pine);
	background: var(--akbk-gold);
	border: 1px solid var(--akbk-gold);
	border-radius: var(--akbk-radius-sm);
	padding: 16px 26px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
		transform 0.2s ease, box-shadow 0.2s ease;
}

.mphb_sc_checkout-form .mphb_sc_checkout-submit-wrapper input[type='submit']:hover {
	background: var(--akbk-gold-deep);
	border-color: var(--akbk-gold-deep);
	color: var(--akbk-cream);
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(8, 54, 48, 0.18);
}

/* Inline validation errors (added by JS). */
.mphb_sc_checkout-form .mphb-errors-wrapper:not(.mphb-hide) {
	margin: 0 0 18px;
	padding: 12px 16px;
	background: #fdf0ee;
	border: 1px solid #e7b6af;
	border-left: 4px solid #b3412f;
	border-radius: var(--akbk-radius-sm);
	color: #8f2f20;
	font-size: 0.875rem;
}

/* Fallback raw-data notice (should rarely be visible thanks to the friendly
   empty state injected from the theme, see functions.php). */
.mphb_sc_checkout-wrapper > .mphb-data-incorrect {
	margin: 0;
	padding: 14px 18px;
	background: var(--akbk-gold-soft);
	border: 1px solid var(--akbk-line);
	border-left: 4px solid var(--akbk-gold);
	border-radius: var(--akbk-radius-sm);
	color: var(--akbk-charcoal);
	font-size: 0.90625rem;
}

/* ---------------------------------------------------------------------------
 * 8. Booking Confirmation empty state (direct visit without a reservation)
 * ------------------------------------------------------------------------- */
.mphb-empty-checkout {
	box-sizing: border-box;
	max-width: 620px;
	margin: 0 auto;
	padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 44px);
	text-align: center;
	background: var(--akbk-white);
	border: 1px solid var(--akbk-line);
	border-radius: var(--akbk-radius-lg);
	box-shadow: var(--akbk-shadow);
}

.mphb-empty-checkout-icon {
	display: grid;
	place-items: center;
	width: 66px;
	height: 66px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: var(--akbk-gold-soft);
	color: var(--akbk-gold-deep);
}

.mphb-empty-checkout h2 {
	margin: 0 0 10px;
	font-family: var(--akbk-font);
	font-size: clamp(1.4rem, 3vw, 1.9rem);
	font-weight: 700;
	color: var(--akbk-pine);
}

.mphb-empty-checkout > p {
	margin: 0 auto 6px;
	max-width: 46ch;
	color: var(--akbk-pine-muted);
}

.mphb-empty-checkout-errors {
	margin: 14px auto 0;
	max-width: 44ch;
	font-size: 0.8rem;
	color: var(--akbk-pine-muted);
}

.mphb-empty-checkout-errors ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mphb-empty-checkout-errors li + li {
	margin-top: 4px;
}

.mphb-empty-checkout .mphb-empty-checkout-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 22px;
	font-family: var(--akbk-font);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	color: var(--akbk-pine);
	background: var(--akbk-gold);
	border: 1px solid var(--akbk-gold);
	border-radius: var(--akbk-radius-sm);
	padding: 14px 28px;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease,
		box-shadow 0.2s ease;
}

.mphb-empty-checkout .mphb-empty-checkout-button:hover {
	background: var(--akbk-gold-deep);
	border-color: var(--akbk-gold-deep);
	color: var(--akbk-cream);
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(8, 54, 48, 0.18);
}

/* ---------------------------------------------------------------------------
 * 9. Site footer spacing on booking screens
 * (the MPHB/WCP shortcode pages otherwise end flush against the footer)
 * ------------------------------------------------------------------------- */
.wp-site-blocks > footer.wp-block-template-part {
	margin-top: clamp(56px, 7vw, 96px);
}

/* ---------------------------------------------------------------------------
 * 10. Responsive
 * ------------------------------------------------------------------------- */
@media (max-width: 599px) {
	.mphb_sc_rooms-wrapper.mphb-room-types {
		grid-template-columns: 1fr;
	}

	.wcp-form-inner {
		grid-template-columns: 1fr;
	}

	.wcp-form-group:not(.wcp-col-2) {
		grid-column: auto;
	}

	.mphb_sc_checkout-form .mphb-check-in-date,
	.mphb_sc_checkout-form .mphb-check-out-date {
		width: 100%;
		margin-left: 0;
	}

	.mphb_sc_checkout-form .mphb-adults-chooser,
	.mphb_sc_checkout-form .mphb-children-chooser {
		width: 100%;
		margin-left: 0;
	}

	.mphb_sc_checkout-form #mphb-customer-details,
	.mphb_sc_checkout-form #mphb-coupon-details {
		grid-template-columns: 1fr;
	}

	.mphb_sc_checkout-form #mphb-coupon-details .mphb-coupon-code-title {
		grid-column: auto;
	}
}
