/*
 * "Your stay" review (assets/stay-quote.js): a sheet from the bottom on phones, a centred panel from 700 px. Same white
 * sheet, type and focus ring as the find-your-stay phone sheet (stay-search/style.scss). Prices from Guesty.
 */
.hb-sq {
	box-sizing: border-box;
	width: 100%;
	max-width: 560px;
	max-height: calc(100dvh - 24px);
	margin: auto auto 0;
	padding: 18px var(--wp--custom--gutter, 20px) calc(18px + env(safe-area-inset-bottom));
	border: 0;
	border-radius: 18px 18px 0 0;
	background: var(--wp--preset--color--white, #fff);
	color: var(--wp--preset--color--ink, #0f1d29);
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	line-height: 1.5;
	overflow: auto;
	overscroll-behavior: contain;
}
.hb-sq[open] { animation: hb-sq-up 420ms cubic-bezier(.16, 1, .3, 1); }
.hb-sq::backdrop { background: rgba(15, 29, 41, .55); }
.hb-sq :focus-visible { outline: 2px solid var(--wp--preset--color--navy-500, #3d566b); outline-offset: 2px; }
@media (min-width: 700px) {
	.hb-sq { margin: auto; border-radius: 14px; padding: 24px 28px 26px; max-height: calc(100dvh - 48px); }
	.hb-sq[open] { animation-name: hb-sq-in; }
}

.hb-sq__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hb-sq__title { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: 1.625rem; font-weight: 400; line-height: 1.2; }
.hb-sq__title:focus { outline: none; }
/* The heading takes focus when the review opens (screen readers start there); it isn't a control, so no ring. */
.hb-sq__close { position: relative; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; }
.hb-sq__close span::before,
.hb-sq__close span::after { content: ""; position: absolute; left: 12px; top: 21px; width: 20px; height: 1.5px; background: var(--wp--preset--color--ink, #0f1d29); transform: rotate(45deg); }
.hb-sq__close span::after { transform: rotate(-45deg); }

.hb-sq__unit { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; }
.hb-sq__photo { width: 112px; height: 84px; object-fit: cover; border-radius: 8px; background: var(--wp--preset--color--mist, #f5f7f8); }
.hb-sq__name { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: 1.375rem; font-weight: 400; line-height: 1.2; }
.hb-sq__type { margin: 4px 0 0; color: var(--wp--preset--color--grey, #41474c); font-size: .9375rem; }

.hb-sq__trip { display: grid; gap: 10px; margin: 16px 0 0; padding: 14px 0; border-block: 1px solid var(--wp--preset--color--navy-200, #c3d0da); }
.hb-sq__trip > div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; }
.hb-sq__trip dt,
.hb-sq__sub { font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--wp--preset--color--grey, #41474c); padding-top: 3px; }
.hb-sq__trip dd { margin: 0; }
.hb-sq__times { color: var(--wp--preset--color--grey, #41474c); font-size: .9375rem; }

.hb-sq__cost { margin-top: 14px; }
.hb-sq__sub { margin: 0 0 6px; padding: 0; }
.hb-sq__price { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hb-sq__price th { padding: 7px 12px 7px 0; font-weight: 400; text-align: left; vertical-align: top; }
.hb-sq__price td { padding: 7px 0; text-align: right; vertical-align: top; white-space: nowrap; }
.hb-sq__price .is-discount td { color: #2f6b3a; }
.hb-sq__price tfoot th,
.hb-sq__price tfoot td { padding-top: 11px; border-top: 1px solid var(--wp--preset--color--navy-200, #c3d0da); font-weight: 600; font-size: 1.0625rem; }
.hb-sq__cur { font-weight: 400; color: var(--wp--preset--color--grey, #41474c); font-size: .875rem; }
.hb-sq__note { display: block; color: var(--wp--preset--color--grey, #41474c); font-size: .875rem; }
.hb-sq__source,
.hb-sq__secure,
.hb-sq__call { margin: 8px 0 0; color: var(--wp--preset--color--grey, #41474c); font-size: .875rem; }
.hb-sq__call a { color: var(--wp--preset--color--navy, #16293a); }
.hb-sq__msg { margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--wp--preset--color--mist, #f5f7f8); }
.hb-sq__msg.is-problem { border-left: 3px solid #9b2c1f; }
.hb-sq__msg.is-busy { color: var(--wp--preset--color--grey, #41474c); }

.hb-sq__more { margin-top: 10px; border-bottom: 1px solid var(--wp--preset--color--navy-200, #c3d0da); }
.hb-sq__more summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 500; }
.hb-sq__more p { margin: 0 0 12px; font-size: .9375rem; }
.hb-sq__rules { margin: 0 0 12px; padding-left: 1.25em; font-size: .9375rem; }
.hb-sq__rules li + li { margin-top: 4px; }

.hb-sq__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 18px; }
.hb-sq__go {
	display: inline-flex; align-items: center; justify-content: center;
	flex: 1 1 260px; min-height: 52px; border-radius: 10px;
	font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; text-align: center; text-decoration: none;
}
.hb-sq__back {
	min-height: 44px; padding: 0 6px; border: 0; background: none; cursor: pointer;
	color: var(--wp--preset--color--navy, #16293a); font: inherit; text-decoration: underline; text-underline-offset: 3px;
}

/* Book Now cards and the stay pages' band: the live price line under a unit. */
.hb-live-price { margin: 0; font-variant-numeric: tabular-nums; }
.hb-live-price.is-busy { color: var(--wp--preset--color--grey, #41474c); }

@keyframes hb-sq-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes hb-sq-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.hb-sq[open] { animation: none; }
}
