/* =========================================================================
   Canto de Luz — Checkout  (.hotelCheckout)
   Casa Roca step 2 layout: form left, sticky summary right.
   Depends on the tokens defined in cdl-accommodations.css (:root).
   Markup: div.mphb_sc_checkout-wrapper.hotelCheckout
             > div.mphb-login-form-wrap
             > form.mphb_sc_checkout-form
                 > section.mphb-booking-details
                     > div.mphb-reserve-rooms-details > div.mphb-room-details
                         > section.mphb-rate-chooser
                         > section.mphb-services-details
                 > section.mphb-coupon-code-wrapper
                 > section.mphb-room-price-breakdown-wrapper
                 > section.mphb-customer-details
                 > section.mphb-billing-fields-wrapper
                 > p.mphb-total-price
                 > p.mphb-deposit-amount
                 > p.mphb-errors-wrapper
                 > p.mphb_sc_checkout-submit-wrapper
   ========================================================================= */

.hotelCheckout {
	--cdl-summary-width: 380px;

	width: 100%;
	max-width: calc(var(--cdl-container) + (var(--cdl-gutter) * 2));
	margin-inline: auto;
	padding-inline: var(--cdl-gutter);
	padding-block: var(--cdl-section-pad);
	box-sizing: border-box;
	font-family: var(--cdl-font-body);
	color: var(--cdl-text);
}


/* -------------------------------------------------------------------------
   1. Two-column shell
   ------------------------------------------------------------------------- */

.hotelCheckout .mphb_sc_checkout-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--cdl-summary-width);
	align-items: start;
	column-gap: var(--cdl-grid-gap);
	row-gap: 20px;
}

/* Left column — what the guest fills in */
.hotelCheckout .mphb-booking-details,
.hotelCheckout .mphb-customer-details,
.hotelCheckout .mphb-billing-fields-wrapper,
.hotelCheckout .cdl-pay {
	grid-column: 1;
}

/* The end of the left column (built by the JS): club and terms boxes, the
   payment method once opened, errors, the button. */
.hotelCheckout .cdl-pay {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

/* .mphb-checkout-section sets display, which would beat the attribute. */
.hotelCheckout .cdl-pay > [hidden] {
	display: none !important;
}

/* Right column — one grid item, built by the JS wrapper.
   Sticky needs a single tall grid area; separate siblings each get a
   one-row area and cannot stick. */
.hotelCheckout .cdl-summary {
	grid-column: 2;
	grid-row: 1 / -1;
	align-self: start;
	position: sticky;
	top: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}


/* -------------------------------------------------------------------------
   2. Card look for every section
   ------------------------------------------------------------------------- */

.hotelCheckout .mphb-checkout-section {
	background: var(--cdl-white);
	border: 1px solid var(--cdl-line);
	border-radius: var(--cdl-radius);
	padding: var(--cdl-card-pad);
	margin: 0;
	box-sizing: border-box;
}

.hotelCheckout .mphb-checkout-section > h3,
.hotelCheckout .mphb-checkout-section > h4 {
	font-family: var(--cdl-font-title);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--cdl-ink);
	margin: 0 0 16px;
}

.hotelCheckout .mphb-login-form-wrap {
	margin: 0 0 20px;
	font-size: 14px;
}

.hotelCheckout .mphb-required-fields-tip { display: none; }


/* -------------------------------------------------------------------------
   3. Booking details (dates + each accommodation)
   ------------------------------------------------------------------------- */

.hotelCheckout .mphb-check-in-date,
.hotelCheckout .mphb-check-out-date {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	margin: 0 0 6px;
	font-size: 16px;
}

.hotelCheckout .mphb-check-in-date strong,
.hotelCheckout .mphb-check-out-date strong {
	font-weight: 700;
	color: var(--cdl-ink);
}

.hotelCheckout .mphb-reserve-rooms-details {
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.hotelCheckout .mphb-room-details {
	border: 1px solid var(--cdl-line);
	border-radius: var(--cdl-radius);
	padding: 20px;
	background: var(--cdl-white);
}

.hotelCheckout .mphb-room-number {
	font-family: var(--cdl-font-ui);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: var(--cdl-ls-ui);
	text-transform: none;
	color: var(--cdl-text);
	opacity: 1;
	margin: 0 0 6px;
}

.hotelCheckout .mphb-room-type-title {
	font-family: var(--cdl-font-title);
	font-size: 16px;
	line-height: 1.25;
	color: var(--cdl-ink);
	margin: 0 0 16px;
	font-weight: 700;
}

.hotelCheckout .mphb-room-type-title > span { display: none;
}

.hotelCheckout .mphb-room-type-title a {
	color: inherit;
	text-decoration: none;
	pointer-events: none;
	cursor: default;
}

/* Guest choosers side by side */
.hotelCheckout .mphb-adults-chooser,
.hotelCheckout .mphb-children-chooser {
	display: inline-block;
	width: calc(50% - 6px);
	vertical-align: top;
	margin: 0 0 14px;
}

.hotelCheckout .mphb-adults-chooser { margin-right: 8px; }

.hotelCheckout .mphb-guest-name-wrapper { margin: 0 0 14px; }


/* -------------------------------------------------------------------------
   4. Rate chooser
   ------------------------------------------------------------------------- */

.hotelCheckout .mphb-rate-chooser,
.hotelCheckout .mphb-services-details {
	margin: 18px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--cdl-line);
}

.hotelCheckout .mphb-room-rate-chooser-title,
.hotelCheckout .mphb-services-details-title {
	font-family: var(--cdl-font-ui);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: var(--cdl-ls-ui);
	text-transform: none;
	color: var(--cdl-text);
	opacity: 1;
	margin: 0 0 12px;
}

.hotelCheckout .mphb-room-rate-variant {
	margin: 0 0 24px;
}

.hotelCheckout .mphb-room-rate-variant br { display: none; }

.hotelCheckout .mphb-room-rate-variant > label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid var(--cdl-line);
	border-radius: var(--cdl-radius);
	cursor: pointer;
	font-size: 16px;
	line-height: 1.4;
	transition: border-color .2s ease, background-color .2s ease;
}

.hotelCheckout .mphb-room-rate-variant > label:hover {
	border-color: var(--cdl-brand);
}

.hotelCheckout .mphb-room-rate-variant > label:has(input:checked) {
	border-color: var(--cdl-brand);
	background: rgba(var(--cdl-brand-rgb, 102, 50, 100), .04);
}

.hotelCheckout .mphb-room-rate-variant strong {
	font-weight: 700;
	color: var(--cdl-ink);
	margin-left: auto;
	white-space: nowrap;
}

.hotelCheckout input[type="radio"],
.hotelCheckout input[type="checkbox"] {
	accent-color: var(--cdl-brand);
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
	flex: 0 0 auto;
}


/* -------------------------------------------------------------------------
   5. Additional services (upsell)
   ------------------------------------------------------------------------- */

.hotelCheckout .mphb_sc_checkout-services-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Row 1: thumbnail + main label
   Row 2: "for N guest(s)" select, ×, quantity, time(s)
   Row 3: description
   The main label grows to fill row 1, which forces everything after it to
   wrap; the description then takes a full row of its own. */
.hotelCheckout .mphb_sc_checkout-services-list > li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	/* Content sits at the top when a half-width card is stretched to its
	   neighbour's height. */
	align-content: flex-start;
	column-gap: 8px;
	row-gap: 10px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--cdl-line);
	border-radius: var(--cdl-radius);
	font-size: 16px;
	transition: border-color .2s ease, background-color .2s ease;
}

.hotelCheckout .mphb_sc_checkout-services-list > li:hover {
	border-color: var(--cdl-brand);
}

.hotelCheckout .mphb_sc_checkout-services-list > li:has(input.mphb_checkout-service:checked) {
	border-color: var(--cdl-brand);
	background: rgba(var(--cdl-brand-rgb, 102, 50, 100), .04);
}

.hotelCheckout .mphb-checkbox-label {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 220px;
	min-width: 0;
	cursor: pointer;
	line-height: 1.4;
}

/* Row 2 — wrapper built by cdl-checkout.js around the guest select, the
   quantity input and the bare "×" / "time(s)" text nodes. */
.hotelCheckout .cdl-service-options {
	flex: 1 0 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--cdl-text);
}

.hotelCheckout .cdl-service-options label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-family: var(--cdl-font-body);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	opacity: 1;
}

.hotelCheckout .cdl-service-options select,
.hotelCheckout .cdl-service-options input[type="number"] {
	width: auto;
	min-width: 72px;
	padding: 8px 10px;
	font-size: 14px;
}

.hotelCheckout .cdl-service-options select {
	padding-right: 30px;
}

.hotelCheckout .mphb-checkbox-label em {
	font-style: normal;
	color: var(--cdl-ink);
	margin-left: auto;
	white-space: nowrap;
}

/* Service title row: checkbox | title | price on a grid, so the bare title
   text stays one cell that wraps in place. The row is centred on the
   thumbnail (align-items on the li). */
.hotelCheckout .mphb_sc_checkout-services-list .mphb-checkbox-label {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 10px;
	row-gap: 4px;
	margin-bottom: 0;
}

.hotelCheckout .mphb_sc_checkout-services-list .mphb-checkbox-label input[type="checkbox"] {
	margin: 0;
}

.hotelCheckout .mphb_sc_checkout-services-list .mphb-checkbox-label em {
	margin: 0;
}

/* Injected by cdl-checkout.js: thumbnail + description per service */
.hotelCheckout .cdl-service-thumb {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: var(--cdl-radius);
	display: block;
	background: var(--cdl-soft);
}

.hotelCheckout .cdl-service-desc {
	flex: 1 0 100%;
	margin: 0;
	padding: 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--cdl-text);
	opacity: 1;
}



/* -------------------------------------------------------------------------
   6. Form fields
   ------------------------------------------------------------------------- */

.hotelCheckout label {
	display: block;
	font-family: var(--cdl-font-ui);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: var(--cdl-ls-ui);
	text-transform: none;
	color: var(--cdl-text);
	opacity: 1;
	margin-bottom: 6px;
}

.hotelCheckout .mphb-checkbox-label,
.hotelCheckout .mphb-room-rate-variant > label {
	font-family: var(--cdl-font-body);
	font-size: 16px;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	opacity: 1;
	color: var(--cdl-text);
	margin-bottom: 12px;
}

.hotelCheckout label abbr {
	border: 0;
	text-decoration: none;
	color: var(--cdl-brand);
}

.hotelCheckout .mphb-customer-details br,
.hotelCheckout .mphb-billing-fields br { display: none; }

.hotelCheckout input[type="text"],
.hotelCheckout input[type="email"],
.hotelCheckout input[type="tel"],
.hotelCheckout input[type="number"],
.hotelCheckout select,
.hotelCheckout textarea {
	width: 100%;
	box-sizing: border-box;
	font-family: var(--cdl-font-body);
	font-size: 16px;
	line-height: 1.2;
	color: var(--cdl-ink);
	background: var(--cdl-white);
	border: 1px solid var(--cdl-line);
	border-radius: var(--cdl-radius);
	padding: 12px 14px;
	transition: border-color .2s ease;
}

.hotelCheckout input[type="text"]:focus,
.hotelCheckout input[type="email"]:focus,
.hotelCheckout input[type="tel"]:focus,
.hotelCheckout input[type="number"]:focus,
.hotelCheckout select:focus,
.hotelCheckout textarea:focus {
	outline: none;
	border-color: var(--cdl-brand);
}

.hotelCheckout select {
	appearance: none;
	-webkit-appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--cdl-text) 50%),
	                  linear-gradient(135deg, var(--cdl-text) 50%, transparent 50%);
	background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-right: 34px;
}

/* Customer details in two columns */
.hotelCheckout .mphb-customer-details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 16px;
}

.hotelCheckout .mphb-customer-details > h3,
.hotelCheckout .mphb-customer-details > .mphb-customer-address,
.hotelCheckout .mphb-customer-details > .mphb-customer-note,
.hotelCheckout .mphb-customer-details > .mphb-customer-terms {
	grid-column: 1 / -1;
}

.hotelCheckout .mphb-customer-details > p { margin: 0; }


/* -------------------------------------------------------------------------
   7. Summary column
   ------------------------------------------------------------------------- */

.hotelCheckout .mphb-price-breakdown {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.hotelCheckout .mphb-price-breakdown td,
.hotelCheckout .mphb-price-breakdown th {
	padding: 7px 0;
	border: 0;
	text-align: left;
	vertical-align: top;
}

.hotelCheckout .mphb-price-breakdown .mphb-table-price-column {
	text-align: right;
	white-space: nowrap;
	color: var(--cdl-ink);
}

.hotelCheckout .mphb-price-breakdown-group > td {
	border-top: 1px solid var(--cdl-line);
	font-weight: 700;
	color: var(--cdl-ink);
}

.hotelCheckout .mphb-price-breakdown tr:first-child > td {
	border-top: 0;
}

.hotelCheckout .mphb-price-breakdown-expand {
	color: var(--cdl-brand);
	text-decoration: none;
	border-bottom: 1px dotted currentColor;
}

/* Coupon */
.hotelCheckout .mphb-coupon-code-wrapper > p { margin: 0 0 10px; }
.hotelCheckout .mphb-coupon-code-wrapper > p:last-child { margin: 0; }

.hotelCheckout .mphb-coupon-code-title {
	margin-bottom: 6px;
}

.hotelCheckout .mphb-apply-coupon-code-button {
	width: 100%;
	color: var(--cdl-brand);
	background: transparent;
	border: 1px solid var(--cdl-brand);
}

.hotelCheckout .mphb-apply-coupon-code-button:hover {
	color: var(--cdl-ink);
	background: var(--cdl-soft);
	border-color: var(--cdl-line);
}

.hotelCheckout .mphb-coupon-message { font-size: 12px; }
.hotelCheckout .mphb-hide { display: none; }

/* Total */
.hotelCheckout .mphb-total-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin: 0;
	padding: 18px var(--cdl-card-pad);
	background: var(--cdl-soft);
	border-radius: var(--cdl-radius);
	font-family: var(--cdl-font-ui);
	font-size: 12px;
	letter-spacing: var(--cdl-ls-ui);
	text-transform: none;
	color: var(--cdl-text);
}

.hotelCheckout .mphb-total-price .mphb-price {
	font-family: var(--cdl-font-title);
	font-size: 16px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	color: var(--cdl-ink);
	font-weight: 700;
}

.hotelCheckout .mphb-deposit-amount {
	margin: 0;
	padding: 0 var(--cdl-card-pad);
	font-size: 12px;
}

/* Gateway block */
.hotelCheckout .mphb-gateway-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--cdl-font-body);
	font-size: 16px;
	letter-spacing: normal;
	text-transform: none;
	opacity: 1;
	margin: 0;
}

.hotelCheckout .mphb-billing-fields {
	border: 0;
	margin: 14px 0 0;
	padding: 0;
}

.hotelCheckout .mphb-billing-fields-hidden, 
.hotelCheckout .mphb-rate-chooser.mphb-checkout-item-section { display: none; }

/* Errors */
.hotelCheckout .mphb-errors-wrapper:not(.mphb-hide) {
	margin: 0;
	padding: 14px var(--cdl-card-pad);
	background: rgba(var(--cdl-brand-rgb, 102, 50, 100), .06);
	border: 1px solid var(--cdl-brand);
	border-radius: var(--cdl-radius);
	color: var(--cdl-ink);
	font-size: 14px;
}

/* Submit */
.hotelCheckout .mphb_sc_checkout-submit-wrapper {
	margin: 0;
}

.hotelCheckout .mphb_sc_checkout-submit-wrapper .button,
.hotelCheckout .mphb-apply-coupon-code-button {
	display: block;
	width: 100%;
	font-family: var(--cdl-font-ui);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: var(--cdl-ls-ui);
	text-transform: none;
	line-height: 1;
	border-radius: var(--cdl-radius-pill);
	padding: 16px 24px 15px;
	cursor: pointer;
	text-align: center;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.hotelCheckout .mphb_sc_checkout-submit-wrapper .button {
	color: var(--cdl-white);
	background: var(--cdl-brand);
	border: 1px solid var(--cdl-brand);
}

.hotelCheckout .mphb_sc_checkout-submit-wrapper .button:hover {
	background: var(--cdl-brand-dark);
	border-color: var(--cdl-brand-dark);
}


/* -------------------------------------------------------------------------
   8. Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.hotelCheckout .mphb_sc_checkout-form {
		grid-template-columns: minmax(0, 1fr);
	}

	.hotelCheckout .mphb-booking-details,
	.hotelCheckout .mphb-customer-details,
	.hotelCheckout .mphb-billing-fields-wrapper {
		grid-column: 1;
	}

	.hotelCheckout .cdl-summary {
		grid-column: 1;
		grid-row: auto;
		position: static;
	}

	/* One column: the totals before the boxes and the button. */
	.hotelCheckout .cdl-summary { order: 1; }
	.hotelCheckout .cdl-pay { order: 2; }
}

@media (max-width: 767px) {
	.hotelCheckout .mphb-customer-details {
		grid-template-columns: minmax(0, 1fr);
	}

	.hotelCheckout .mphb-adults-chooser,
	.hotelCheckout .mphb-children-chooser {
		display: block;
		width: 100%;
		margin-right: 0;
	}

	.hotelCheckout .mphb-room-details { padding: 16px; }

	.hotelCheckout .mphb-room-rate-variant > label {
		align-items: flex-start;
	}

	.hotelCheckout {
		padding-inline: 16px;
	}

	/* --- Left column: no outer frame, no padding ----------------------
	   The accommodation and service cards inside already carry a border;
	   the section frame around them only eats horizontal space. */
	.hotelCheckout .mphb-booking-details,
	.hotelCheckout .mphb-customer-details,
	.hotelCheckout .mphb-billing-fields-wrapper {
		border: 0;
		padding: 0;
		background: none;
	}

	/* --- Rate labels --------------------------------------------------
	   Radio stays on the left, the long title wraps beside it instead of
	   pushing the price out of the box. */
	.hotelCheckout .mphb-room-rate-variant > label {
		flex-wrap: nowrap;
		align-items: flex-start;
		padding: 12px;
	}

	.hotelCheckout .mphb-room-rate-variant strong {
		flex: 1 1 0;
		min-width: 0;
		margin-left: 0;
		white-space: normal;
		overflow-wrap: anywhere;
	font-weight: 700;
}

	/* --- Services -----------------------------------------------------
	   Row 1: thumbnail + checkbox + title, price under the title on the
	   right; the checkbox spans both, so it sits at the middle of the
	   thumbnail. Row 2: description. */
	.hotelCheckout .mphb_sc_checkout-services-list > li {
		padding: 12px;
	}

	.hotelCheckout .cdl-service-thumb {
		width: 52px;
		height: 52px;
	}

	.hotelCheckout .mphb_sc_checkout-services-list > li .mphb-checkbox-label,
	.hotelCheckout .mphb_sc_checkout-services-list > li.cdl-service--half .mphb-checkbox-label {
		flex: 1 1 0;
		grid-template-columns: auto minmax(0, 1fr);
		line-height: 1.35;
	}

	.hotelCheckout .mphb_sc_checkout-services-list .mphb-checkbox-label input[type="checkbox"] {
		grid-row: 1 / span 2;
	}

	.hotelCheckout .mphb_sc_checkout-services-list .mphb-checkbox-label em {
		grid-column: 2;
		justify-self: end;
		text-align: right;
		white-space: normal;
		font-size: 14px;
	}

	.hotelCheckout .cdl-service-desc {
		font-size: 12px;
	}

	.hotelCheckout input[type="text"],
	.hotelCheckout input[type="email"],
	.hotelCheckout input[type="tel"],
	.hotelCheckout input[type="number"],
	.hotelCheckout select,
	.hotelCheckout textarea {
		font-size: 16px;
	}

	.iti__dropdown-content {
		max-width: calc(100vw - 32px);
	}		
}

/* phone validation */
	
.cdl-phone-error {
	display: block;
	margin-top: 6px;
	color: #cc0023;
	font-family: var(--cdl-font-ui);
	font-size: 12px;
	line-height: 1.4;
}

.iti--input-container {	
	width: 100%;
}	
	
.iti__tel-input {
	display: block;
}	
	
.mphb-customer-phone input[aria-invalid="true"] {
	border-color: #cc0023;
}

.mphb-adults-chooser, 
.mphb-children-chooser, 
.mphb-guest-name-wrapper {
	display: none !important;
}
/* =========================================================================
   Revamp: names, guest summary, service list, email hint, terms, sticky CTA
   ========================================================================= */

/* Names are printed on the invoice and the door card */
.hotelCheckout input[name*="first_name"],
.hotelCheckout input[name*="last_name"] {
	text-transform: capitalize;
}

/* Third line of Booking Details, under the dates */
.hotelCheckout .cdl-guest-summary {
	margin: 4px 0 0;
}

/* Several rooms: name and guests, the room's policy under it */
.hotelCheckout .cdl-guest-summary .cdl-room-guests {
	margin: 8px 0 0;
}

.hotelCheckout .cdl-guest-summary .cdl-rate-desc {
	margin: 2px 0 0;
	font-size: 13px;
	line-height: 1.5;
	white-space: pre-line;
	color: var(--cdl-text);
}

/* Temporary: the quantity control ("× N time(s)") is hidden, the guest
   select stays */
.hotelCheckout .cdl-service-qty {
	display: none;
}

/* Services 2 to 5 (the transfers) sit two per row */
.hotelCheckout .mphb_sc_checkout-services-list {
	flex-direction: row;
	flex-wrap: wrap;
	column-gap: 8px;
}

.hotelCheckout .mphb_sc_checkout-services-list > li {
	flex: 1 1 100%;
}

/* Services marked "Half width on checkout" (CDL Core) sit two per row */
.hotelCheckout .mphb_sc_checkout-services-list > li.cdl-service--half {
	flex: 1 1 calc(50% - 34px);
	max-width: calc(50% - 34px);
}

.hotelCheckout .mphb_sc_checkout-services-list > li.cdl-service--half .mphb-checkbox-label {
	flex: 1 1 210px;
}

/* Email hint under the field */
.hotelCheckout .cdl-email-note {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: var(--cdl-text);
}

.hotelCheckout .cdl-email-note.is-error {
	color: #a3261f;
}

/* Terms, above the Book Now button */
.hotelCheckout .cdl-terms {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.5;
}

.hotelCheckout .cdl-terms label {
	display: block;      /* a szöveg újra folyamatos sor lesz */
	position: relative;
	padding-left: 26px;
}

.hotelCheckout .cdl-terms input[type="checkbox"] {
	position: absolute;
	left: 0;
}

.hotelCheckout .cdl-terms a {
	text-decoration: underline;
}

@media (max-width: 767px) {
	/* Book Now stays on the bottom edge of the screen, full width. The terms
	   checkbox stays in the page: a fixed bar is no place to read them. */
	.hotelCheckout .cdl-summary .mphb_sc_checkout-submit-wrapper {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 20;
		margin: 0;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		background: var(--cdl-white);
		border-top: 1px solid var(--cdl-line);
		box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
	}

	/* Room for the bar, so nothing is trapped underneath it */
	.hotelCheckout .mphb_sc_checkout-form {
		padding-bottom: 88px;
	}

	.hotelCheckout .cdl-summary .mphb_sc_checkout-submit-wrapper .button {
		width: 100%;
	}

	/* Two per row is too tight on a phone */
	.hotelCheckout .mphb_sc_checkout-services-list > li.cdl-service--half {
		flex: 1 1 100%;
		max-width: 100%;
	}
	
	#mphb-billing-details {
		order: 2;
	}
}

/* The first step leads back to the search */
.cdl-steps .cdl-step > a {
	display: flex;
	align-items: center;
}

/* Baby Sitting: the "for N guest(s)" select means nothing here */
.hotelCheckout .mphb_sc_checkout-services-list > li:has(input.mphb_checkout-service[value="120"]) .cdl-service-options {
	display: none;
}

.hotelCheckout .cdl-consent {
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--cdl-text);
}

.hotelCheckout .cdl-club-discount {
	margin: 8px 0 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--cdl-ink);
}

.hotelCheckout .cdl-rate-descriptions {
	margin: 4px 0 12px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--cdl-text);
}

/* The breakdown box carries the totals; the plugin's own lines under the
   coupon field only repeat them. */
.hotelCheckout .mphb-total-price,
.hotelCheckout .mphb-deposit-amount {
	display: none;
}

/* The spinner lives inside the total line, and it is the only sign that the
   totals are being recalculated. The line comes back while it spins, with
   everything but the spinner blanked out. */
.hotelCheckout .mphb-total-price:has( .mphb-preloader:not( .mphb-hide ) ) {
	display: flex;
	justify-content: center;
	min-height: 28px;
	margin: 0 0 8px;
}

.hotelCheckout .mphb-total-price:has( .mphb-preloader:not( .mphb-hide ) ) output,
.hotelCheckout .mphb-total-price:has( .mphb-preloader:not( .mphb-hide ) ) output * {
	font-size: 0;
	color: transparent;
}

.hotelCheckout .mphb-total-price:has( .mphb-preloader:not( .mphb-hide ) ) .mphb-preloader {
	font-size: 16px;
	color: var(--cdl-ink);
}

/* Consent notes: full width, above the billing fields, quieter than the form */
.hotelCheckout .cdl-consent-notes {
	/* The summary spans the second column for the whole form, so the notes
	   stay in the first column rather than running underneath it. */
	grid-column: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 4px;
}

.hotelCheckout .cdl-consent-notes > * {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--cdl-text);
}

.hotelCheckout .cdl-rate-descriptions .cdl-rate-desc {
	white-space: pre-line;
}

/* -------------------------------------------------------------------------
   9. Returning-customer login (wp_login_form() inside .mphb-login-form)
   ------------------------------------------------------------------------- */

.hotelCheckout .mphb-login-form-wrap a {
	color: var(--cdl-brand);
}

.hotelCheckout .mphb-login-form {
	max-width: calc(100% - var(--cdl-summary-width) - var(--cdl-grid-gap));
	margin-top: 12px;
	background: var(--cdl-white);
	border: 1px solid var(--cdl-line);
	border-radius: var(--cdl-radius);
	padding: var(--cdl-card-pad);
	box-sizing: border-box;
}

.hotelCheckout .mphb-login-form.mphb-hide { display: none; }

.hotelCheckout #loginform {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 0;
}

.hotelCheckout #loginform p { margin: 0; }

.hotelCheckout #loginform .login-remember,
.hotelCheckout #loginform .login-submit {
	grid-column: 1 / -1;
}

.hotelCheckout #loginform input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	font-family: var(--cdl-font-body);
	font-size: 16px;
	line-height: 1.2;
	color: var(--cdl-ink);
	background: var(--cdl-white);
	border: 1px solid var(--cdl-line);
	border-radius: var(--cdl-radius);
	padding: 12px 14px;
	transition: border-color .2s ease;
}

.hotelCheckout #loginform input[type="password"]:focus {
	outline: none;
	border-color: var(--cdl-brand);
}

.hotelCheckout #loginform .login-remember label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-family: var(--cdl-font-body);
	font-size: 14px;
	letter-spacing: normal;
	cursor: pointer;
}

.hotelCheckout #loginform .login-submit .button {
	display: inline-block;
	min-width: 200px;
	font-family: var(--cdl-font-ui);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: var(--cdl-ls-ui);
	line-height: 1;
	color: var(--cdl-white);
	background: var(--cdl-brand);
	border: 1px solid var(--cdl-brand);
	border-radius: var(--cdl-radius-pill);
	padding: 14px 24px 13px;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease;
}

.hotelCheckout #loginform .login-submit .button:hover {
	background: var(--cdl-brand-dark);
	border-color: var(--cdl-brand-dark);
}

@media (max-width: 1024px) {
	.hotelCheckout .mphb-login-form { max-width: none; }
}

@media (max-width: 767px) {
	.hotelCheckout #loginform { grid-template-columns: 1fr; }
	.hotelCheckout #loginform .login-submit .button { width: 100%; }
}
