/* Stay Hygge booking box (assets/js/booking-box.js). Brand palette:
   cream #f6f3ed, charcoal #304238, sage #728474, terra #a88f7b. */

.hl-booking-embed.hl-bb-host, .hl-bb-host {
	--bb-ink: #304238;
	--bb-sage: #728474;
	--bb-terra: #a88f7b;
	--bb-cream: #f6f3ed;
	--bb-line: #e3ddd1;
	--bb-muted: #66736a;
	background: #fff;
	border: 1px solid var(--bb-line);
	box-shadow: 0 10px 30px rgba(48, 66, 56, 0.08);
	padding: 20px;
	color: var(--bb-ink);
	text-align: left;
	box-sizing: border-box;
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
	border-radius: 16px;
	overflow: visible;
}

/* Inside popups the dialog is already the card. */
.hl-lm-modal .hl-bb-host, .hl-booking-modal .hl-bb-host { box-shadow: none; border: 0; padding: 8px 4px; }

.hl-bb { font-family: var(--hl-font, Inter, system-ui, sans-serif); font-size: 14px; line-height: 1.5; }
.hl-bb button { font: inherit; color: inherit; cursor: pointer; }
.hl-bb button:disabled { cursor: default; }
.hl-bb button:focus-visible, .hl-bb input:focus-visible { outline: 2px solid var(--bb-sage); outline-offset: 2px; }

.hl-bb__fields { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--bb-line); border-radius: 10px; overflow: hidden; }
.hl-bb__field { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; background: #fff; border: 0; text-align: left; min-width: 0; }
.hl-bb__field + .hl-bb__field { border-left: 1px solid var(--bb-line); }
.hl-bb__field--wide { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--bb-line); }
.hl-bb__field.is-active { background: var(--bb-cream); box-shadow: inset 0 -2px 0 var(--bb-ink); }
.hl-bb__field-label { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bb-muted); }
.hl-bb__field-value { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hl-bb__field-value.is-empty { color: var(--bb-muted); font-weight: 400; }

.hl-bb__cal { margin-top: 14px; }
.hl-bb__cal[hidden], .hl-bb__guests[hidden], .hl-bb__error[hidden], .hl-bb__form[hidden] { display: none; }
.hl-bb__cal-loading { padding: 40px 0; text-align: center; color: var(--bb-muted); }
.hl-bb__cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hl-bb__cal-title { font-family: var(--hl-font-heading, Jost, sans-serif); font-weight: 500; font-size: 16px; }
.hl-bb__nav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--bb-line); background: #fff; font-size: 20px; line-height: 1; }
.hl-bb__nav:disabled { opacity: 0.35; }
.hl-bb__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.hl-bb__dow { font-size: 11px; text-align: center; color: var(--bb-muted); padding: 4px 0; }
.hl-bb__day { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 46px; padding: 2px 0; border: 0; border-radius: 8px; background: transparent; }
.hl-bb__day:not(:disabled):hover { background: var(--bb-cream); }
.hl-bb__day:disabled { color: #b9bdb6; text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, 0.15); }
.hl-bb__num { font-size: 14px; font-weight: 500; }
.hl-bb__price { font-size: 10px; color: var(--bb-muted); }
.hl-bb__day.is-between { background: var(--bb-cream); border-radius: 0; }
.hl-bb__day.is-start, .hl-bb__day.is-end { background: var(--bb-ink); color: #fff; text-decoration: none; }
.hl-bb__day.is-start .hl-bb__price, .hl-bb__day.is-end .hl-bb__price { color: rgba(255, 255, 255, 0.75); }
.hl-bb__cal-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.hl-bb__clear, .hl-bb__link { background: none; border: 0; padding: 0; text-decoration: underline; color: var(--bb-ink); font-size: 13px; }

.hl-bb__hint { margin: 8px 0 0; font-size: 13px; color: var(--bb-muted); }
.hl-bb__note { margin: 6px 0 0; font-size: 13px; color: var(--bb-muted); }
.hl-bb__error { margin: 8px 0 0; font-size: 13px; color: #a23b2a; }

.hl-bb__guests { margin-top: 12px; padding: 12px; border: 1px solid var(--bb-line); border-radius: 10px; }
.hl-bb__grow { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.hl-bb__grow + .hl-bb__grow { border-top: 1px solid var(--bb-line); }
.hl-bb__gtext { display: flex; flex-direction: column; }
.hl-bb__gname { font-weight: 500; }
.hl-bb__gsub { font-size: 12px; color: var(--bb-muted); }
.hl-bb__step { display: flex; align-items: center; gap: 10px; }
.hl-bb__stepbtn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--bb-line); background: #fff; font-size: 18px; line-height: 1; }
.hl-bb__stepbtn:disabled { opacity: 0.35; }
.hl-bb__stepval { min-width: 18px; text-align: center; font-weight: 500; }
.hl-bb__done { margin-top: 8px; background: none; border: 0; padding: 0; font-weight: 500; text-decoration: underline; }

.hl-bb__quote { margin-top: 14px; }
.hl-bb__lines { margin: 0; }
.hl-bb__line { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.hl-bb__line dt, .hl-bb__line dd { margin: 0; }
.hl-bb__line.is-discount dd { color: var(--bb-sage); }
.hl-bb__line--total { border-top: 1px solid var(--bb-line); margin-top: 6px; padding-top: 10px; font-weight: 600; font-size: 15px; }
.hl-bb__skeleton span { display: block; height: 12px; margin: 10px 0; border-radius: 6px; background: linear-gradient(90deg, #f1ede5, #e7e1d6, #f1ede5); background-size: 200% 100%; animation: hl-bb-shimmer 1.2s infinite; }
.hl-bb__skeleton span:nth-child(odd) { width: 70%; }
@keyframes hl-bb-shimmer { to { background-position: -200% 0; } }

.hl-bb__promo { margin-top: 10px; }
.hl-bb__promo-row { display: flex; gap: 8px; }
.hl-bb__input { width: 100%; box-sizing: border-box; height: 42px; padding: 0 12px; border: 1px solid var(--bb-line); border-radius: 8px; background: #fff; font: inherit; color: var(--bb-ink); }
.hl-bb__input--promo { text-transform: uppercase; }
.hl-bb__apply { flex: 0 0 auto; padding: 0 14px; border: 1px solid var(--bb-ink); border-radius: 8px; background: #fff; font-weight: 500; }

.hl-bb__form { margin-top: 16px; }
.hl-bb__label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.hl-bb__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.hl-bb__reserve { display: block; width: 100%; margin-top: 12px; padding: 14px 16px; border: 0; border-radius: 10px; background: var(--bb-ink); color: #fff !important; font-weight: 500; font-size: 15px; letter-spacing: 0.02em; transition: background 0.2s; }
.hl-bb__reserve:hover:not(:disabled) { background: #22312a; }
.hl-bb__reserve:disabled { opacity: 0.7; }
.hl-bb__foot { margin: 10px 0 0; font-size: 12px; color: var(--bb-muted); text-align: center; }

.hl-bb.is-loading .hl-bb__fields { opacity: 0.6; }

/* Theme guard: Flatsome (and similar themes) style every button/input
   (uppercase, letter-spacing, 14px margins, min-heights, square inset inputs).
   Reset inside the box with enough specificity to win. */
.hl-bb-host .hl-bb button {
	text-transform: none !important;
	letter-spacing: normal !important;
	margin: 0 !important;
	min-height: 0 !important;
	line-height: 1.3 !important;
	box-shadow: none;
	text-shadow: none !important;
	font-family: inherit !important;
	font-weight: 400;
	vertical-align: middle;
	max-width: none;
}
.hl-bb-host .hl-bb .hl-bb__field.is-active { box-shadow: inset 0 -2px 0 var(--bb-ink); }
.hl-bb-host .hl-bb .hl-bb__field-value, .hl-bb-host .hl-bb .hl-bb__num, .hl-bb-host .hl-bb .hl-bb__reserve, .hl-bb-host .hl-bb .hl-bb__apply, .hl-bb-host .hl-bb .hl-bb__done, .hl-bb-host .hl-bb .hl-bb__gname { font-weight: 500; }
.hl-bb-host .hl-bb .hl-bb__field-value.is-empty { font-weight: 400; }
.hl-bb-host .hl-bb .hl-bb__field-label { text-transform: uppercase; letter-spacing: 0.06em; }
.hl-bb-host .hl-bb .hl-bb__day { min-height: 46px !important; padding: 2px 0 !important; width: auto; }
.hl-bb-host .hl-bb .hl-bb__nav, .hl-bb-host .hl-bb .hl-bb__stepbtn { padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; }
.hl-bb-host .hl-bb .hl-bb__link, .hl-bb-host .hl-bb .hl-bb__clear, .hl-bb-host .hl-bb .hl-bb__done { padding: 0 !important; background: none !important; border: 0 !important; color: var(--bb-ink) !important; }
.hl-bb-host .hl-bb .hl-bb__reserve { padding: 14px 16px !important; font-size: 15px !important; }
.hl-bb-host .hl-bb input.hl-bb__input {
	height: 42px !important;
	margin: 0 !important;
	padding: 0 12px !important;
	border: 1px solid var(--bb-line) !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	background: #fff !important;
	font-size: 14px !important;
	font-family: inherit !important;
	letter-spacing: normal !important;
	color: var(--bb-ink) !important;
	max-width: 100%;
}
.hl-bb-host .hl-bb input.hl-bb__input--promo { text-transform: uppercase !important; }
.hl-bb-host .hl-bb .hl-bb__label { text-transform: none; letter-spacing: normal; }

/* Popups whose container is the stock widget's dark frame: drop the frame
   when the box is inside (JS adds .hl-bb-parent; :has() covers modern browsers). */
.hl-booking-embed.hl-bb-parent, .hl-booking-embed:has(> .hl-bb-host) {
	background: transparent !important;
	padding: 0 !important;
	box-shadow: none !important;
	max-width: 440px;
}
/* Theme guard: Flatsome shrinks/uppercases <dl> and colors labels. */
.hl-bb-host .hl-bb .hl-bb__lines,
.hl-bb-host .hl-bb .hl-bb__lines dt,
.hl-bb-host .hl-bb .hl-bb__lines dd {
	font-size: 14px !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	color: var(--bb-ink) !important;
	margin: 0 !important;
}
.hl-bb-host .hl-bb .hl-bb__line--total dt,
.hl-bb-host .hl-bb .hl-bb__line--total dd { font-size: 15px !important; font-weight: 600 !important; }
.hl-bb-host .hl-bb .hl-bb__line.is-discount dd { color: var(--bb-sage) !important; }
.hl-bb-host .hl-bb .hl-bb__label { color: var(--bb-ink) !important; }
