/**
 * Site-wide styles for WP LG RH Beds24.
 *
 * What is left of the plugin's global stylesheet after Phase 4 deleted the
 * transitional presentation layer. The property page's own design lives in
 * bedzy-property.css, which Elementor enqueues only on pages carrying one of
 * this plugin's widgets. Two things outlive that layer and cannot live there:
 *
 * 1. The guest booking-details page at /my-booking/{id}/{token}/, a virtual URL
 *    with no Elementor content of its own.
 * 2. One listing-page correction that belongs to WP_LG_RH_Beds24_Card_Price,
 *    which renders through the theme's own property cards.
 */

/* -------------------------------------------------------------------------
 * Guest booking page, /my-booking/{id}/{token}/ - where Stripe returns the
 * guest. Measurements from the "Booking confirmed" canvas
 * (https://claude.ai/artifact/1jcdnpw8NLt2eFcuqTKqAj): a 1200px column,
 * a 760px main column and a 400px aside with a 40px gap, on the #F4F7F9
 * panel between the theme's own header and footer.
 *
 * The page declares its own tokens with the same values as bedzy-property.css,
 * which is not enqueued here. Sizes are in px, not rem: the theme sets a 10px
 * root font size, so rem values would print at a fraction of the artboard's.
 * ---------------------------------------------------------------------- */

.bedzy-booking {
	--bedzy-accent: #009FE3;
	--bedzy-link: #0079AE;
	--bedzy-link-hover: #005D86;
	--bedzy-ink: #1A1A1A;
	--bedzy-body: #444A4D;
	--bedzy-muted: #5E6669;
	--bedzy-hairline: #EDF1F3;
	--bedzy-border: #E1E8EB;
	--bedzy-control: #CFDBE1;
	--bedzy-tint: #E7F6FD;
	--bedzy-tint-ink: #2C5567;
	--bedzy-panel: #F4F7F9;
	--bedzy-success: #0F7043;
	--bedzy-success-tint: #E8F5EE;
	--bedzy-success-rule: #BFD9C9;
	--bedzy-danger: #A3341C;
	--bedzy-danger-ink: #7E2A16;
	--bedzy-danger-tint: #FCEEEC;
	--bedzy-danger-rule: #E0B6AE;
	--bedzy-radius: 8px;
	--bedzy-radius-sm: 6px;

	background: var(--bedzy-panel);
	color: var(--bedzy-body);
	font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

.bedzy-booking *,
.bedzy-booking *::before,
.bedzy-booking *::after {
	box-sizing: border-box;
}

.bedzy-booking [hidden] {
	display: none !important;
}

.bedzy-booking a {
	color: var(--bedzy-link);
	text-decoration: none;
}

.bedzy-booking a:hover {
	color: var(--bedzy-link-hover);
	text-decoration: underline;
}

.bedzy-booking h1,
.bedzy-booking h2,
.bedzy-booking p,
.bedzy-booking dl,
.bedzy-booking dd,
.bedzy-booking ol {
	margin: 0;
	padding: 0;
}

.bedzy-booking h1,
.bedzy-booking h2 {
	font-family: inherit;
	color: var(--bedzy-ink);
	letter-spacing: normal;
	text-transform: none;
}

.bedzy-booking__container {
	max-width: 1280px;
	margin: 0 auto;
	/* 32px is the artboard's gap under the header. The extra 50px clears the
		site header's banner, an Elementor container with a negative top margin
		(-120px desktop, -140px phone) that hangs 46–50px below the header's own
		box and painted over the top of the confirmation card. */
	padding: 82px 40px 56px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.bedzy-booking__columns {
	display: grid;
	grid-template-columns: minmax(0, 760fr) minmax(0, 400fr);
	gap: 40px;
	align-items: start;
}

.bedzy-booking__main,
.bedzy-booking__aside {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.bedzy-booking__card {
	background: #fff;
	border: 1px solid var(--bedzy-border);
	border-radius: var(--bedzy-radius);
	overflow: hidden;
}

.bedzy-booking__pad {
	padding: 22px 24px;
}

.bedzy-booking__heading {
	margin-bottom: 14px !important;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

.bedzy-booking__heading--small {
	margin-bottom: 8px !important;
	font-size: 18px;
}

/* Hero ------------------------------------------------------------------ */

.bedzy-booking__hero {
	padding: 28px 32px;
	display: flex;
	align-items: center;
	gap: 24px;
}

.bedzy-booking__hero-mark {
	flex: 0 0 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--bedzy-success-tint);
	color: var(--bedzy-success);
	display: flex;
	align-items: center;
	justify-content: center;
}

.bedzy-booking__hero-text {
	flex: 1 1 auto;
	min-width: 0;
}

.bedzy-booking__eyebrow {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--bedzy-success);
}

.bedzy-booking__title {
	margin-top: 4px !important;
	font-size: 34px;
	font-weight: 600;
	line-height: 1.2;
}

.bedzy-booking__lede {
	margin-top: 8px !important;
	font-size: 17px;
	color: var(--bedzy-body);
}

.bedzy-booking__lede strong {
	color: var(--bedzy-ink);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.bedzy-booking__ref {
	flex: 0 0 260px;
	border-radius: var(--bedzy-radius);
	background: var(--bedzy-panel);
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bedzy-booking__ref-label,
.bedzy-booking__ref-note {
	font-size: 13px;
	color: var(--bedzy-muted);
}

.bedzy-booking__ref-label {
	font-weight: 600;
}

.bedzy-booking__ref-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.bedzy-booking__ref-value {
	flex: 1 1 auto;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--bedzy-ink);
	font-variant-numeric: tabular-nums;
}

.bedzy-booking__icon-button {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1.5px solid var(--bedzy-control);
	border-radius: var(--bedzy-radius-sm);
	background: #fff;
	color: #2C3436;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.bedzy-booking__icon-button:hover {
	border-color: var(--bedzy-link);
	color: var(--bedzy-link);
}

/* Status banners (processing, cancelled) -------------------------------- */

.bedzy-booking__banner {
	padding: 22px 24px;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: var(--bedzy-tint);
	border-color: var(--bedzy-tint);
	color: var(--bedzy-tint-ink);
}

.bedzy-booking__banner-icon {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--bedzy-accent);
}

.bedzy-booking__banner-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bedzy-booking__banner-title {
	font-size: 21px;
	font-weight: 600;
	line-height: 1.3;
}

.bedzy-booking__banner-text {
	font-size: 15px;
}

.bedzy-booking__banner-body p + p {
	margin-top: 8px;
}

.bedzy-booking__banner--cancelled {
	background: var(--bedzy-danger-tint);
	border-color: #F0CFC9;
	color: var(--bedzy-danger-ink);
}

.bedzy-booking__banner--cancelled .bedzy-booking__banner-icon,
.bedzy-booking__banner--cancelled .bedzy-booking__banner-title {
	color: var(--bedzy-danger-ink);
}

/* Your stay ------------------------------------------------------------- */

.bedzy-booking__photo {
	height: 260px;
	background: #DCE4E8;
}

.bedzy-booking__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bedzy-booking__stay-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.bedzy-booking__property {
	font-size: 26px;
	font-weight: 600;
	line-height: 1.25;
}

.bedzy-booking__room {
	margin-top: 4px !important;
	color: #2C3436;
}

.bedzy-booking__place {
	margin-top: 8px !important;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	color: var(--bedzy-muted);
}

.bedzy-booking__place a {
	margin-left: 6px;
	font-weight: 600;
}

.bedzy-booking__view {
	flex-shrink: 0;
	font-size: 15px;
	font-weight: 600;
}

.bedzy-booking__tiles {
	margin-top: 20px !important;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.bedzy-booking__tile {
	border: 1px solid var(--bedzy-border);
	border-radius: var(--bedzy-radius-sm);
	padding: 13px 15px;
}

.bedzy-booking__tile dt {
	font-size: 13px;
	font-weight: 400;
	color: var(--bedzy-muted);
}

.bedzy-booking__tile dd {
	display: flex;
	flex-direction: column;
}

.bedzy-booking__tile strong {
	margin-top: 2px;
	font-size: 17px;
	font-weight: 600;
	color: var(--bedzy-ink);
}

.bedzy-booking__tile span {
	font-size: 14px;
	color: var(--bedzy-muted);
}

/* What happens next ----------------------------------------------------- */

.bedzy-booking__steps {
	list-style: none;
}

.bedzy-booking__step {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding-bottom: 18px;
}

.bedzy-booking__step:last-child {
	padding-bottom: 0;
}

/* The rail between two marks. */
.bedzy-booking__step:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 10px;
	top: 26px;
	bottom: 2px;
	width: 2px;
	background: #DCE4E8;
}

.bedzy-booking__step.is-done:not(:last-child)::after {
	background: var(--bedzy-success-rule);
}

.bedzy-booking__step-mark {
	flex: 0 0 22px;
	height: 22px;
	margin-top: 2px;
	border-radius: 50%;
	border: 2px solid var(--bedzy-control);
	background: #fff;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bedzy-booking__step.is-done .bedzy-booking__step-mark {
	border-color: var(--bedzy-success);
	background: var(--bedzy-success);
}

.bedzy-booking__step-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.bedzy-booking__step-body strong {
	font-weight: 600;
	color: var(--bedzy-ink);
}

.bedzy-booking__step-body span {
	font-size: 14px;
	color: var(--bedzy-muted);
}

/* Lead guest ------------------------------------------------------------ */

.bedzy-booking__guest {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px 24px;
	font-size: 15px;
}

.bedzy-booking__guest dt {
	font-weight: 400;
	color: var(--bedzy-muted);
}

.bedzy-booking__guest dd {
	margin-top: 2px;
	color: var(--bedzy-ink);
	overflow-wrap: anywhere;
}

/* Money ----------------------------------------------------------------- */

.bedzy-booking__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.bedzy-booking__total .bedzy-booking__heading {
	margin-bottom: 0 !important;
}

.bedzy-booking__total-value {
	font-size: 28px;
	font-weight: 700;
	color: var(--bedzy-ink);
}

.bedzy-booking__paid {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bedzy-booking__paid-tile {
	border-radius: var(--bedzy-radius-sm);
	background: var(--bedzy-panel);
	padding: 13px 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.bedzy-booking__paid-tile.is-paid {
	background: var(--bedzy-success-tint);
}

.bedzy-booking__paid-label {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	font-weight: 700;
	color: var(--bedzy-muted);
}

.bedzy-booking__paid-tile.is-paid .bedzy-booking__paid-label {
	color: var(--bedzy-success);
}

.bedzy-booking__paid-value {
	font-size: 18px;
	font-weight: 700;
	color: var(--bedzy-ink);
}

.bedzy-booking__note {
	margin-top: 12px !important;
	font-size: 14px;
	line-height: 1.55;
	color: var(--bedzy-muted);
}

.bedzy-booking__breakdown {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--bedzy-hairline);
}

.bedzy-booking__breakdown summary {
	min-height: 32px;
	display: flex;
	align-items: center;
	font-size: 15px;
	font-weight: 600;
	color: var(--bedzy-link);
	cursor: pointer;
}

.bedzy-booking__breakdown dl {
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 7px;
	font-size: 15px;
	color: #2C3436;
}

.bedzy-booking__breakdown dl div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.bedzy-booking__breakdown dt {
	font-weight: 400;
}

/* UpsellMyBooking.dc.html: the extras charged, under their own label. */
.bedzy-booking__breakdown .is-heading {
	margin-top: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #5E6669;
}

.bedzy-booking__breakdown .bedzy-required-tag {
	font-size: 13px;
	font-weight: 400;
	color: #5E6669;
}

.bedzy-booking__breakdown .is-saving {
	font-weight: 600;
	color: var(--bedzy-success);
}

/* Actions --------------------------------------------------------------- */

.bedzy-booking__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bedzy-booking__action-pair {
	display: flex;
	gap: 10px;
}

.bedzy-booking__action-pair > * {
	flex: 1 1 0;
}

.bedzy-booking .bedzy-booking__button {
	min-height: 48px;
	padding: 0 18px;
	border: 1.5px solid var(--bedzy-control);
	border-radius: var(--bedzy-radius);
	background: #fff;
	color: #2C3436;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none;
	cursor: pointer;
}

.bedzy-booking .bedzy-booking__button:hover {
	border-color: var(--bedzy-link);
	color: var(--bedzy-link);
	text-decoration: none;
}

/* #0079AE, not the accent: #009FE3 is 2.97:1 under white text. */
.bedzy-booking .bedzy-booking__button--primary {
	min-height: 50px;
	border-color: var(--bedzy-link);
	background: var(--bedzy-link);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
}

.bedzy-booking .bedzy-booking__button--primary:hover {
	border-color: var(--bedzy-link-hover);
	background: var(--bedzy-link-hover);
	color: #fff;
}

.bedzy-booking .bedzy-booking__button--danger {
	border-color: var(--bedzy-danger-rule);
	color: var(--bedzy-danger);
	font-weight: 700;
}

.bedzy-booking .bedzy-booking__button--danger:hover {
	border-color: var(--bedzy-danger);
	color: var(--bedzy-danger);
}

.bedzy-booking .bedzy-booking__button:disabled {
	opacity: 0.6;
	cursor: default;
}

/* Doubled class: the `.bedzy-booking p` reset outranks a single class. */
.bedzy-booking .bedzy-booking__tip {
	margin-top: 6px;
	border-radius: var(--bedzy-radius-sm);
	background: var(--bedzy-tint);
	padding: 12px 14px;
	display: flex;
	gap: 10px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--bedzy-tint-ink);
}

.bedzy-booking__tip svg {
	flex-shrink: 0;
	margin-top: 1px;
}

.bedzy-booking__policy {
	font-size: 14px;
	line-height: 1.6;
	color: var(--bedzy-muted);
}

.bedzy-booking__policy p + p {
	margin-top: 8px;
}

.bedzy-booking__change .bedzy-booking__action-pair {
	margin-top: 14px;
}

.bedzy-booking__error {
	margin-top: 10px !important;
	font-size: 14px;
	color: var(--bedzy-danger);
}

/* Not found ------------------------------------------------------------- */

.bedzy-booking__lost {
	max-width: 640px;
	margin: 24px auto;
	padding: 32px;
}

.bedzy-booking__lost-title {
	margin-bottom: 8px !important;
	font-size: 28px;
	font-weight: 600;
}

/* Tablet and phone ------------------------------------------------------ */

@media (max-width: 1024px) {
	.bedzy-booking__columns {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.bedzy-booking__main,
	.bedzy-booking__aside {
		gap: 16px;
	}
}

@media (max-width: 767px) {
	.bedzy-booking__container {
		padding: 70px 16px 32px;
		gap: 16px;
	}

	.bedzy-booking__pad,
	.bedzy-booking__banner {
		padding: 18px 16px;
	}

	.bedzy-booking__hero {
		padding: 24px 20px;
		flex-direction: column;
		text-align: center;
		gap: 10px;
	}

	.bedzy-booking__hero-mark {
		flex-basis: 56px;
		width: 56px;
		height: 56px;
	}

	.bedzy-booking__title {
		font-size: 27px;
	}

	.bedzy-booking__lede {
		font-size: 16px;
	}

	.bedzy-booking__ref {
		flex-basis: auto;
		width: 100%;
		margin-top: 6px;
		text-align: left;
	}

	.bedzy-booking__ref-value {
		font-size: 22px;
	}

	.bedzy-booking__photo {
		height: 190px;
	}

	.bedzy-booking__stay-head {
		flex-direction: column;
		gap: 8px;
	}

	.bedzy-booking__property {
		font-size: 22px;
	}

	.bedzy-booking__tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.bedzy-booking__tile:last-child {
		grid-column: 1 / -1;
	}

	.bedzy-booking__guest {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.bedzy-booking__total-value {
		font-size: 24px;
	}

	.bedzy-booking__change .bedzy-booking__action-pair {
		flex-direction: column;
	}
}

/* Print: the booking alone, no site chrome, no controls. */
@media print {
	body.bedzy-booking-page header,
	body.bedzy-booking-page footer,
	body.bedzy-booking-page .rh-header-wrapper,
	body.bedzy-booking-page .elementor-location-header,
	body.bedzy-booking-page .elementor-location-footer,
	.bedzy-booking__actions,
	.bedzy-booking__change,
	.bedzy-booking__icon-button {
		display: none !important;
	}

	.bedzy-booking {
		background: #fff;
	}

	.bedzy-booking__columns {
		grid-template-columns: minmax(0, 1fr);
	}

	.bedzy-booking__breakdown:not([open]) > dl {
		display: flex;
	}
}

/*
 * Booking-details page: keep the shared site header (branding + nav) but hide
 * the site search form it embeds ([bedzy_search], in an Elementor Shortcode
 * widget). The body class is added server-side in
 * WP_LG_RH_Beds24_Booking_Details::add_body_class().
 */
.bedzy-booking-page .elementor-widget-shortcode:has(.bedzy-site-search) {
	display: none !important;
}


/*
 * Dated-search listing prices.
 *
 * On a dated search the card price postfix is a full phrase ("for 3 nights"),
 * so the theme's "/" separator before it reads wrong. Listing pages only ever
 * show the plugin's date-gated card price, so the slash can be hidden across
 * every non-single-property view; the property detail page keeps its own
 * "/ month" style untouched.
 */
body:not(.single-property) .ere-price-slash {
	display: none;
}
