/* ==========================================================================
   HESTHETIQUE — Wunschtermin-Kalender
   Self-contained: works with or without the main site stylesheet. Every
   class is prefixed .hesth-bk so no theme can collide with it, and every
   colour is a variable you can override from Elementor or the Customizer.
   Values mirror build/assets/css/hesthetique.css.
   ========================================================================== */
.hesth-bk {
	--hesth-cream: #f7f4ee;
	--hesth-cream-2: #efe9df;
	--hesth-ink: #201d1a;
	--hesth-ink-soft: #5a5650;
	--hesth-gold: #a9824c;
	--hesth-gold-soft: #cdb28a;
	--hesth-lilac: #8b7ab0;
	--hesth-line: #e2dbcc;
	--hesth-white: #fff;
	--hesth-mute: #c9c2b3;
	--hesth-serif: "Cormorant Garamond", Georgia, serif;
	--hesth-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	color: var(--hesth-ink);
	font-family: var(--hesth-sans);
	font-weight: 300;
	line-height: 1.65;
	box-sizing: border-box;
}

.hesth-bk *,
.hesth-bk *::before,
.hesth-bk *::after {
	box-sizing: inherit;
}

/* --------------------------------------------------------------------------
   Theme armour.

   WordPress themes style every <button> and every <a> on the page, including
   their :hover state, and a theme accent colour bleeding through the calendar
   looked like the plugin's own. So every interactive part below declares its
   own background, colour and border for EVERY state - rest, hover, focus and
   active - and does it at three-class specificity, which outranks the
   ordinary `.entry-content button:hover` kind of theme rule.

   If you add an interactive element here, give it all four states too.
   -------------------------------------------------------------------------- */
/*
 * Keep this list to properties no component below wants to own. `.hesth-bk
 * button` is (0,1,1), which outranks a single-class rule like .hesth-bk-day
 * (0,1,0) - putting border-radius, text-transform or letter-spacing in here
 * squared off the day circles and un-capitalised the button.
 */
.hesth-bk button,
.hesth-bk a.hesth-bk-btn {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	box-shadow: none;
	text-decoration: none;
	text-shadow: none;
}

.hesth-bk button:hover,
.hesth-bk button:focus,
.hesth-bk button:active,
.hesth-bk a.hesth-bk-btn:hover,
.hesth-bk a.hesth-bk-btn:focus,
.hesth-bk a.hesth-bk-btn:active {
	box-shadow: none;
	text-decoration: none;
}

/* --- optional two-column shell (shortcode attribute intro="yes") --------- */
.hesth-bk--split {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	border: 1px solid var(--hesth-line);
	background-color: var(--hesth-white);
}

.hesth-bk--split .hesth-bk-intro {
	padding: 44px 46px;
	border-right: 1px solid var(--hesth-line);
}

.hesth-bk--split .hesth-bk-cal {
	padding: 44px 46px;
}

.hesth-bk-eyebrow {
	display: inline-block;
	margin-bottom: 10px;
	color: var(--hesth-gold);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.28em;
	text-transform: uppercase;
}

.hesth-bk-introtitle {
	margin: 0 0 12px;
	color: var(--hesth-ink);
	font-family: var(--hesth-serif);
	font-size: 26px;
	font-weight: 500;
	line-height: 1.3;
}

.hesth-bk-introtext {
	margin: 0;
	color: var(--hesth-ink-soft);
	font-size: 13.5px;
}

.hesth-bk-hint {
	margin: 16px 0 0;
	color: var(--hesth-ink-soft);
	font-size: 12px;
	line-height: 1.7;
}

/* --- month navigation ---------------------------------------------------- */
.hesth-bk-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 22px;
}

.hesth-bk-month {
	font-family: var(--hesth-serif);
	font-size: 19px;
	text-transform: capitalize;
}

.hesth-bk-nav button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--hesth-line);
	border-radius: 0;
	background-color: transparent;
	background-image: none;
	color: var(--hesth-ink);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: 0.25s;
}

.hesth-bk .hesth-bk-nav button,
.hesth-bk .hesth-bk-nav button:hover,
.hesth-bk .hesth-bk-nav button:focus,
.hesth-bk .hesth-bk-nav button:active {
	background-color: transparent;
	background-image: none;
	color: var(--hesth-ink);
	border-radius: 0;
}

.hesth-bk .hesth-bk-nav button:hover:not(:disabled),
.hesth-bk .hesth-bk-nav button:focus:not(:disabled) {
	border-color: var(--hesth-gold);
	color: var(--hesth-gold);
}

.hesth-bk .hesth-bk-nav button:disabled,
.hesth-bk .hesth-bk-nav button:disabled:hover {
	border-color: var(--hesth-line);
	color: var(--hesth-ink);
	opacity: 0.3;
	cursor: not-allowed;
}

/* --- day grid ------------------------------------------------------------ */
.hesth-bk-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	margin-bottom: 6px;
}

.hesth-bk-weekdays span {
	padding-bottom: 8px;
	color: var(--hesth-ink-soft);
	font-size: 10.5px;
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
}

.hesth-bk-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	margin-bottom: 30px;
}

.hesth-bk-day {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 50%;
	background-color: transparent;
	background-image: none;
	color: var(--hesth-ink);
	font-family: var(--hesth-sans);
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	transition: 0.2s;
}

.hesth-bk-day.is-empty {
	visibility: hidden;
	cursor: default;
}

/* Every state, spelled out, so no theme hover rule can reach a day cell. */
.hesth-bk .hesth-bk-day,
.hesth-bk .hesth-bk-day:hover,
.hesth-bk .hesth-bk-day:focus,
.hesth-bk .hesth-bk-day:active {
	background-color: transparent;
	background-image: none;
	color: var(--hesth-ink);
	border-radius: 50%;
	font-family: var(--hesth-sans);
	text-transform: none;
}

.hesth-bk .hesth-bk-day.is-disabled,
.hesth-bk .hesth-bk-day.is-disabled:hover,
.hesth-bk .hesth-bk-day.is-disabled:focus {
	background-color: transparent;
	background-image: none;
	color: var(--hesth-mute);
	border-color: transparent;
	text-decoration: line-through;
	text-decoration-color: var(--hesth-mute);
	cursor: not-allowed;
}

/* studio closed / public holiday */
.hesth-bk .hesth-bk-day.is-closed,
.hesth-bk .hesth-bk-day.is-closed:hover,
.hesth-bk .hesth-bk-day.is-closed:focus {
	color: var(--hesth-mute);
	border-color: transparent;
	cursor: not-allowed;
	background-color: transparent;
	background-image: repeating-linear-gradient(-45deg,
			transparent, transparent 4px,
			var(--hesth-cream-2) 4px, var(--hesth-cream-2) 5px);
}

.hesth-bk .hesth-bk-day.is-available:hover,
.hesth-bk .hesth-bk-day.is-available:focus {
	background-color: transparent;
	background-image: none;
	color: var(--hesth-ink);
	border-color: var(--hesth-gold-soft);
}

.hesth-bk .hesth-bk-day.is-today:not(.is-selected),
.hesth-bk .hesth-bk-day.is-today:not(.is-selected):hover,
.hesth-bk .hesth-bk-day.is-today:not(.is-selected):focus {
	background-color: transparent;
	background-image: none;
	border-color: var(--hesth-gold);
	color: var(--hesth-gold);
}

.hesth-bk .hesth-bk-day.is-selected,
.hesth-bk .hesth-bk-day.is-selected:hover,
.hesth-bk .hesth-bk-day.is-selected:focus,
.hesth-bk .hesth-bk-day.is-selected:active {
	background-color: var(--hesth-ink);
	background-image: none;
	color: var(--hesth-cream);
	border-color: var(--hesth-ink);
}

/* --- time slots ---------------------------------------------------------- */
.hesth-bk-slotslabel {
	margin-bottom: 14px;
	color: var(--hesth-ink-soft);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hesth-bk-slots {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 26px;
}

.hesth-bk-slots:empty {
	margin-bottom: 0;
}

.hesth-bk-slot {
	padding: 10px 6px;
	border: 1px solid var(--hesth-line);
	border-radius: 0;
	background-color: transparent;
	background-image: none;
	color: var(--hesth-ink);
	font-family: var(--hesth-sans);
	font-size: 13px;
	cursor: pointer;
	transition: 0.2s;
}

.hesth-bk .hesth-bk-slot,
.hesth-bk .hesth-bk-slot:hover,
.hesth-bk .hesth-bk-slot:focus,
.hesth-bk .hesth-bk-slot:active {
	background-color: transparent;
	background-image: none;
	color: var(--hesth-ink);
	border-radius: 0;
	font-family: var(--hesth-sans);
	text-transform: none;
}

.hesth-bk .hesth-bk-slot:hover,
.hesth-bk .hesth-bk-slot:focus {
	border-color: var(--hesth-gold-soft);
}

.hesth-bk .hesth-bk-slot.is-selected,
.hesth-bk .hesth-bk-slot.is-selected:hover,
.hesth-bk .hesth-bk-slot.is-selected:focus,
.hesth-bk .hesth-bk-slot.is-selected:active {
	border-color: var(--hesth-ink);
	background-color: var(--hesth-ink);
	background-image: none;
	color: var(--hesth-cream);
}

/* --- legend -------------------------------------------------------------- */
.hesth-bk-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 14px;
	color: var(--hesth-ink-soft);
	font-size: 11px;
	letter-spacing: 0.06em;
}

.hesth-bk-legend span {
	display: flex;
	align-items: center;
	gap: 6px;
}

.hesth-bk-legend i {
	display: inline-block;
	width: 11px;
	height: 11px;
	border: 1px solid var(--hesth-line);
	font-style: normal;
}

.hesth-bk-legend i.is-free {
	border-color: var(--hesth-gold-soft);
}

.hesth-bk-legend i.is-today {
	border-color: var(--hesth-gold);
}

.hesth-bk-legend i.is-closed {
	background-color: transparent;
	background-image: repeating-linear-gradient(-45deg,
			transparent, transparent 3px,
			var(--hesth-cream-2) 3px, var(--hesth-cream-2) 4px);
}

/* --- summary + hand-off button ------------------------------------------ */
.hesth-bk-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 32px;
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid var(--hesth-line);
}

.hesth-bk-chosen {
	color: var(--hesth-ink-soft);
	font-size: 13.5px;
}

.hesth-bk-chosen b {
	color: var(--hesth-ink);
	font-weight: 500;
}

.hesth-bk-btn {
	display: inline-block;
	padding: 14px 30px;
	border: 1px solid var(--hesth-ink);
	background-color: transparent;
	background-image: none;
	color: var(--hesth-ink);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-decoration: none;
	text-transform: uppercase;
	transition: all 0.35s ease;
}

.hesth-bk a.hesth-bk-btn,
.hesth-bk a.hesth-bk-btn:visited {
	background-color: transparent;
	background-image: none;
	color: var(--hesth-ink);
	border-color: var(--hesth-ink);
	border-radius: 0;
	font-family: var(--hesth-sans);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.hesth-bk a.hesth-bk-btn:hover,
.hesth-bk a.hesth-bk-btn:focus,
.hesth-bk a.hesth-bk-btn:active {
	background-color: var(--hesth-ink);
	background-image: none;
	color: var(--hesth-cream);
	border-color: var(--hesth-ink);
}

.hesth-bk a.hesth-bk-btn.is-disabled,
.hesth-bk a.hesth-bk-btn[aria-disabled="true"] {
	background-color: transparent;
	background-image: none;
	color: var(--hesth-ink);
	border-color: var(--hesth-ink);
	opacity: 0.4;
	pointer-events: none;
	cursor: not-allowed;
}

/* --- keyboard focus ------------------------------------------------------ */
.hesth-bk button:focus-visible,
.hesth-bk a:focus-visible {
	outline: 2px solid var(--hesth-gold);
	outline-offset: 3px;
}

/* --- responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
	.hesth-bk--split {
		grid-template-columns: 1fr;
	}

	.hesth-bk--split .hesth-bk-intro {
		border-right: none;
		border-bottom: 1px solid var(--hesth-line);
	}

	.hesth-bk--split .hesth-bk-intro,
	.hesth-bk--split .hesth-bk-cal {
		padding: 34px 26px;
	}

	.hesth-bk-summary {
		flex-direction: column;
		align-items: flex-start;
	}

	.hesth-bk-btn {
		width: 100%;
		text-align: center;
	}
}

@media (max-width: 420px) {
	.hesth-bk-slots {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hesth-bk * {
		transition: none !important;
	}
}
