/* Haninge Bilvård Bokning – publikt bokningsflöde.
 * All selectors are scoped under .hbb so the theme is never affected.
 * Colours, radius and spacing come from CSS variables set on #hbb-app
 * (Inställningar → Utseende). */

.hbb {
	--hbb-primary: #0063cc;
	--hbb-primary-dark: #004faa;
	--hbb-accent: #e8f0fb;
	--hbb-text: #0f1b2d;
	--hbb-muted: #52607a;
	--hbb-line: #d8e1ee;
	--hbb-surface: #ffffff;
	--hbb-soft: #f5f8fc;
	--hbb-danger: #b42318;
	--hbb-danger-soft: #fdecea;
	--hbb-success: #067647;
	--hbb-success-soft: #e7f6ee;
	--hbb-radius: 14px;
	--hbb-space: 16px;
	--hbb-shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 4px 16px rgba(15, 27, 45, .06);
	--hbb-shadow-hover: 0 2px 4px rgba(15, 27, 45, .08), 0 12px 28px rgba(0, 60, 130, .14);
	box-sizing: border-box;
	width: 100%;
	max-width: 1520px;
	margin: 0 auto;
	padding: calc(var(--hbb-space) * .5) 0 calc(var(--hbb-space) * 2);
	color: var(--hbb-text);
	font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	text-align: left;
}
.hbb *, .hbb *::before, .hbb *::after { box-sizing: border-box; }
.hbb [hidden] { display: none !important; }
.hbb p { margin: 0 0 .6em; }
.hbb ul, .hbb ol { margin: 0; padding: 0; }

/* Resets against aggressive theme button/input styles. */
.hbb button, .hbb input, .hbb textarea, .hbb select {
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	margin: 0;
}
.hbb button { cursor: pointer; }

.hbb-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.hbb-h2 {
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
	line-height: 1.2;
	font-weight: 700;
	margin: 0 0 calc(var(--hbb-space) * .35);
	color: var(--hbb-text);
	letter-spacing: -.01em;
}
.hbb-h2:focus { outline: none; }
.hbb-h2:focus-visible { outline: 3px solid var(--hbb-primary); outline-offset: 4px; border-radius: 4px; }
.hbb-lead { color: var(--hbb-muted); margin: 0 0 calc(var(--hbb-space) * 1.25); max-width: 70ch; }

.hbb-admin-note {
	background: #fff8e5; border-left: 4px solid #dba617; padding: 10px 14px; margin: 0 0 12px; border-radius: 6px; font-size: .92rem;
}
.hbb-noscript { padding: 14px 16px; background: var(--hbb-soft); border-radius: var(--hbb-radius); }

/* ---------------------------------------------------------------- Steps */
.hbb-steps {
	list-style: none;
	display: flex;
	gap: 8px;
	margin: 0 0 calc(var(--hbb-space) * 1.75);
	padding: 0;
	counter-reset: hbb-step;
}
.hbb-steps li {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 999px;
	background: var(--hbb-soft);
	color: var(--hbb-muted);
	font-size: .92rem;
	font-weight: 600;
	border: 1px solid transparent;
}
.hbb-steps li .hbb-step-n {
	flex: 0 0 auto;
	width: 28px; height: 28px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--hbb-line);
	font-size: .85rem;
	color: var(--hbb-muted);
}
.hbb-steps li .hbb-step-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbb-steps li[aria-current="step"] { background: var(--hbb-accent); color: var(--hbb-primary-dark); border-color: rgba(0, 99, 204, .25); }
.hbb-steps li[aria-current="step"] .hbb-step-n { background: var(--hbb-primary); border-color: var(--hbb-primary); color: #fff; }
.hbb-steps li.is-done { color: var(--hbb-text); }
.hbb-steps li.is-done .hbb-step-n { border-color: var(--hbb-primary); color: var(--hbb-primary); }
.hbb-steps li.is-done .hbb-step-n::after { content: ''; }
/* Clickable steps: the whole pill is the button (keyboard + pointer), with clear hover/focus. */
.hbb-steps li.is-clickable { padding: 0; }
.hbb-steps button.hbb-step-link {
	all: unset; box-sizing: border-box; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px;
	padding: 10px 12px; border-radius: 999px; cursor: pointer; color: inherit; font: inherit;
}
.hbb-steps li.is-clickable:hover { background: var(--hbb-accent); border-color: rgba(0, 99, 204, .35); }
.hbb-steps li.is-clickable:hover .hbb-step-l { text-decoration: underline; text-underline-offset: 3px; }
.hbb-steps button.hbb-step-link:focus-visible { outline: 3px solid var(--hbb-primary); outline-offset: 2px; }

/* ---------------------------------------------------------------- Category cards */
.hbb-cat-grid {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--hbb-space);
	margin: 0;
	padding: 0;
}
.hbb-cat-grid > li { display: flex; }
.hbb .hbb-cat {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	width: 100%;
	min-height: 210px;
	padding: calc(var(--hbb-space) * 1.4);
	border-radius: calc(var(--hbb-radius) + 4px);
	border: 1px solid var(--hbb-line);
	background:
		radial-gradient(120% 90% at 100% 100%, rgba(0, 99, 204, .12) 0%, rgba(0, 99, 204, 0) 60%),
		linear-gradient(160deg, #ffffff 0%, #f7faff 55%, var(--hbb-accent) 100%);
	color: var(--hbb-text);
	text-decoration: none;
	text-align: left;
	overflow: hidden;
	box-shadow: var(--hbb-shadow);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hbb .hbb-cat:hover { transform: translateY(-3px); box-shadow: var(--hbb-shadow-hover); border-color: rgba(0, 99, 204, .45); }
.hbb .hbb-cat:focus-visible { outline: 3px solid var(--hbb-primary); outline-offset: 3px; }
.hbb .hbb-cat[aria-pressed="true"] { border-color: var(--hbb-primary); box-shadow: 0 0 0 2px var(--hbb-primary), var(--hbb-shadow-hover); }
.hbb-cat__art {
	position: absolute;
	right: -6%;
	bottom: -10%;
	width: 70%;
	max-width: 300px;
	color: var(--hbb-primary);
	opacity: .2;
	z-index: -1;
	pointer-events: none;
	transition: opacity .18s ease, transform .3s ease;
}
.hbb-cat__art svg { display: block; width: 100%; height: auto; }
.hbb .hbb-cat:hover .hbb-cat__art { opacity: .3; transform: translateX(-4px); }
.hbb-cat__name { font-size: 1.22rem; font-weight: 700; line-height: 1.25; margin: 0 0 6px; }
.hbb-cat__desc { font-size: .95rem; color: var(--hbb-muted); max-width: 30ch; }
.hbb-cat__go {
	margin-top: auto;
	padding-top: 18px;
	display: inline-flex; align-items: center; gap: 6px;
	font-weight: 600; font-size: .95rem; color: var(--hbb-primary);
}
.hbb-cat__go svg { width: 18px; height: 18px; transition: transform .18s ease; }
.hbb .hbb-cat:hover .hbb-cat__go svg { transform: translateX(3px); }
/* 1.5.0: clear separation from the category cards (28 px at the default spacing), still part of the booking box. */
.hbb .hbb-contact-cats { margin: calc(var(--hbb-space) * 1.75) 0 0; color: var(--hbb-muted); font-size: .95rem; }
.hbb-contact-cats a { color: var(--hbb-primary); font-weight: 600; }
.hbb-contact-cats a:focus-visible { outline: 2px solid var(--hbb-primary); outline-offset: 2px; border-radius: 3px; }

/* 1.5.0: air between the step bar and each step's heading (18 px at the default spacing). Scoped to the step views only. */
.hbb .hbb-step-content { padding-top: calc(var(--hbb-space) * 1.125); }

/* ---------------------------------------------------------------- Service cards */
/* Closed cards are equal because every part has the same size on every card:
 * fixed image band, a title area reserved for the tallest title in the grid
 * (--hbb-svc-title-h, set by booking.js; CSS floor two lines), one toggle row,
 * one meta row and the button. No fixed card height. align-items: start lets
 * a card with an open description grow alone – its neighbours keep their size. */
.hbb-svc-grid {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: var(--hbb-space);
	margin: 0;
	padding: 0;
	align-items: start;
}
.hbb-svc-grid > li { min-width: 0; }
.hbb-svc {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--hbb-surface);
	border: 1px solid var(--hbb-line);
	border-radius: var(--hbb-radius);
	box-shadow: var(--hbb-shadow);
	overflow: hidden;
	transition: box-shadow .18s ease, border-color .18s ease;
}
.hbb-svc:hover { box-shadow: var(--hbb-shadow-hover); }
.hbb-svc.is-selected { border-color: var(--hbb-primary); box-shadow: 0 0 0 2px var(--hbb-primary), var(--hbb-shadow-hover); }
.hbb-svc__bg {
	position: relative;
	flex: 0 0 auto;
	height: 92px;
	background:
		radial-gradient(circle at 1px 1px, rgba(0, 99, 204, .16) 1px, transparent 1.5px) 0 0 / 14px 14px,
		linear-gradient(135deg, #f7faff 0%, var(--hbb-accent) 100%);
	color: var(--hbb-primary);
	overflow: hidden;
}
.hbb-svc__bg svg { position: absolute; right: 8px; bottom: -14px; width: 150px; height: auto; opacity: .32; }
.hbb-svc__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hbb-svc__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 16px 18px 18px; }
.hbb .hbb-svc__title {
	font-size: 1.08rem; line-height: 1.3; font-weight: 700; margin: 0 0 6px; padding: 0; color: var(--hbb-text);
	min-height: var(--hbb-svc-title-h, 2.6em);
	overflow-wrap: normal; word-break: normal; hyphens: manual;
}
.hbb-svc .hbb-linkbtn, .hbb-svc__nodesc { min-height: 30px; }
.hbb-svc__nodesc { display: block; margin: 0 0 8px; visibility: hidden; }
.hbb .hbb-linkbtn {
	align-self: flex-start;
	background: none; border: 0; padding: 4px 0; margin: 0 0 8px;
	color: var(--hbb-primary); font-weight: 600; font-size: .92rem;
	text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
	display: inline-flex; align-items: center; gap: 4px;
}
.hbb .hbb-linkbtn:hover { color: var(--hbb-primary-dark); }
.hbb .hbb-linkbtn:focus-visible { outline: 2px solid var(--hbb-primary); outline-offset: 2px; border-radius: 3px; }
.hbb .hbb-linkbtn svg { width: 14px; height: 14px; transition: transform .18s ease; }
.hbb .hbb-linkbtn[aria-expanded="true"] svg { transform: rotate(180deg); }
.hbb-svc__desc {
	width: 100%;
	text-align: left;
	font-size: .93rem;
	color: #2a3850;
	margin: 0 0 10px;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: manual;
}
.hbb-svc__desc p { margin: 0 0 8px; }
.hbb-svc__desc h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--hbb-muted); margin: 10px 0 4px; }
.hbb-svc__desc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.hbb-svc__desc li { position: relative; padding-left: 20px; }
.hbb-svc__desc li::before {
	content: ''; position: absolute; left: 3px; top: .5em; width: 9px; height: 5px;
	border-left: 2px solid var(--hbb-primary); border-bottom: 2px solid var(--hbb-primary); transform: rotate(-45deg);
}
/* 1.5.0: "Viktig information" – last part of every description (only visible when it is open). */
.hbb-svc__desc .hbb-svc__info {
	margin: 12px 0 0;
	padding: 12px 14px;
	background: var(--hbb-soft);
	border: 1px solid var(--hbb-line);
	border-radius: 10px;
	color: var(--hbb-text);
	font-size: .9rem;
	line-height: 1.55;
}
.hbb-svc__desc .hbb-svc__info-title { margin: 0 0 6px; font-size: .92rem; font-weight: 700; text-transform: none; letter-spacing: normal; color: var(--hbb-text); }
.hbb-svc__desc .hbb-svc__info-list { gap: 4px; }
.hbb-svc__desc .hbb-svc__info-list li { padding-left: 16px; }
.hbb-svc__desc .hbb-svc__info-list li::before { left: 3px; top: .62em; width: 6px; height: 6px; border: 0; border-radius: 50%; background: var(--hbb-primary); transform: none; }

/* 1.5.0: late drop-off ("hämtning nästa dag") – information, deliberately not styled as an error. */
.hbb-latenote {
	margin: 12px 0 var(--hbb-space);
	padding: 12px 16px;
	background: var(--hbb-accent);
	border: 1px solid rgba(0, 99, 204, .25);
	border-left: 4px solid var(--hbb-primary);
	border-radius: 10px;
	color: var(--hbb-text);
	font-size: .95rem;
	line-height: 1.5;
	text-align: left;
	max-width: 820px;
}
.hbb-latenote strong { color: var(--hbb-primary-dark); }
.hbb-latenote-slot .hbb-latenote { margin-bottom: 0; }

.hbb-svc__meta { display: flex; flex-wrap: nowrap; align-items: baseline; justify-content: space-between; gap: 12px; margin: auto 0 12px; padding-top: 8px; min-height: 2.4em; }
.hbb-svc__time { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--hbb-muted); font-size: .9rem; }
.hbb-svc__time svg { width: 16px; height: 16px; }
.hbb-svc__price { font-size: 1.2rem; font-weight: 700; color: var(--hbb-text); white-space: nowrap; }

/* ---------------------------------------------------------------- Buttons */
.hbb .hbb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px;
	padding: 10px 20px;
	border-radius: calc(var(--hbb-radius) - 4px);
	border: 2px solid var(--hbb-primary);
	background: var(--hbb-primary);
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: none;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.hbb .hbb-btn:hover { background: var(--hbb-primary-dark); border-color: var(--hbb-primary-dark); color: #fff; }
.hbb .hbb-btn:focus-visible { outline: 3px solid var(--hbb-primary); outline-offset: 3px; }
.hbb .hbb-btn--block { width: 100%; }
.hbb .hbb-btn--ghost { background: #fff; color: var(--hbb-primary); }
.hbb .hbb-btn--ghost:hover { background: var(--hbb-accent); color: var(--hbb-primary-dark); }
.hbb .hbb-btn--danger { background: #fff; color: var(--hbb-danger); border-color: var(--hbb-danger); }
.hbb .hbb-btn--danger:hover { background: var(--hbb-danger-soft); color: var(--hbb-danger); }
.hbb .hbb-btn--lg { min-height: 54px; font-size: 1.08rem; padding: 12px 28px; }
.hbb .hbb-btn[disabled], .hbb .hbb-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.hbb .hbb-btn.is-loading { cursor: progress; }
.hbb-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: hbb-spin .8s linear infinite; }
@keyframes hbb-spin { to { transform: rotate(360deg); } }

.hbb-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: calc(var(--hbb-space) * 1.5); }
.hbb-nav .hbb-btn--ghost { margin-right: auto; }

/* ---------------------------------------------------------------- Selected-service bar */
.hbb-chosen {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
	padding: 12px 16px; margin: 0 0 var(--hbb-space);
	background: var(--hbb-soft); border: 1px solid var(--hbb-line); border-radius: var(--hbb-radius);
	font-size: .95rem;
}
.hbb-chosen strong { font-weight: 700; }
.hbb-chosen .hbb-dot { color: var(--hbb-line); }

/* ---------------------------------------------------------------- Calendar + times */
.hbb-when { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: calc(var(--hbb-space) * 1.5); align-items: start; }
.hbb-panel { background: var(--hbb-surface); border: 1px solid var(--hbb-line); border-radius: var(--hbb-radius); padding: 16px; box-shadow: var(--hbb-shadow); }
.hbb-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.hbb-cal__title { font-weight: 700; font-size: 1.05rem; text-transform: capitalize; }
/*
 * Calendar. WordPress themes often style every <button> and <table> (solid
 * blue background, gradients, shadows, text-decoration: none, big padding,
 * striped rows) – sometimes with ID selectors or !important, which would turn
 * the whole calendar blue and hide the line-through on closed days. The rules
 * are therefore scoped as .hbb .hbb-cal button.hbb-day and !important is used
 * only for the properties such theme rules set: appearance, background(-color,
 * -image), box-shadow, border width/style/colour, text colour/decoration,
 * font size, opacity, padding and text-transform.
 */
.hbb .hbb-cal__head button.hbb-iconbtn {
	width: 40px; height: 40px; min-height: 0; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 10px; border: 1px solid var(--hbb-line);
	-webkit-appearance: none !important; appearance: none !important;
	background-color: #fff !important; background-image: none !important; box-shadow: none !important;
	border-color: var(--hbb-line) !important; color: var(--hbb-text) !important; padding: 0 !important; opacity: 1 !important;
}
.hbb .hbb-cal__head button.hbb-iconbtn:hover:not([disabled]) { border-color: var(--hbb-primary) !important; color: var(--hbb-primary) !important; }
.hbb .hbb-cal__head button.hbb-iconbtn:focus-visible { outline: 3px solid var(--hbb-primary); outline-offset: 2px; }
.hbb .hbb-cal__head button.hbb-iconbtn[disabled] { opacity: .35 !important; cursor: not-allowed; }
.hbb .hbb-iconbtn svg { width: 18px; height: 18px; }

.hbb table.hbb-cal { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; margin: 0; border: 0 !important; background: transparent !important; }
.hbb table.hbb-cal th, .hbb table.hbb-cal td { padding: 0 !important; text-align: center; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.hbb table.hbb-cal th { font-size: .78rem; font-weight: 600; color: var(--hbb-muted) !important; text-transform: uppercase; padding: 4px 0 !important; }

/* Base: every day is a white cell with a dark digit. */
.hbb .hbb-cal button.hbb-day {
	position: relative; width: 100%; min-width: 0; min-height: 0; height: auto; aspect-ratio: 1 / 1; max-height: 52px; margin: 0;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 10px; border-width: 1px !important; border-style: solid !important;
	font-weight: 600; font-size: .95rem !important; line-height: 1; letter-spacing: normal;
	-webkit-appearance: none !important; appearance: none !important;
	background-color: #fff !important; background-image: none !important; box-shadow: none !important;
	border-color: var(--hbb-line) !important; color: var(--hbb-text) !important;
	text-decoration: none !important; text-shadow: none !important; text-transform: none !important;
	opacity: 1 !important; padding: 0 !important;
}
/* Past, closed or full: light grey cell, clearly grey struck-through digit. Never blue. */
.hbb .hbb-cal button.hbb-day[aria-disabled="true"],
.hbb .hbb-cal button.hbb-day[aria-disabled="true"]:hover,
.hbb .hbb-cal button.hbb-day[aria-disabled="true"]:focus {
	background-color: #f5f6f8 !important; border-color: #eceff3 !important; color: #677084 !important;
	text-decoration: line-through !important; text-decoration-thickness: 1.5px !important; text-decoration-color: #677084 !important;
	cursor: not-allowed;
}
/* Available: light blue cell, dark blue digit. */
.hbb .hbb-cal button.hbb-day.is-available { background-color: var(--hbb-accent) !important; border-color: rgba(0, 99, 204, .28) !important; color: #0a3d78 !important; }
.hbb .hbb-cal button.hbb-day.is-available::after { content: ''; position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--hbb-primary); }
.hbb .hbb-cal button.hbb-day.is-available:hover,
.hbb .hbb-cal button.hbb-day.is-available:focus { background-color: #d5e5fa !important; border-color: var(--hbb-primary) !important; color: #0a3d78 !important; }
.hbb .hbb-cal button.hbb-day.is-today { box-shadow: inset 0 0 0 2px #c3cedd !important; }
/* Selected: solid blue, white digit, white inner ring. */
.hbb .hbb-cal button.hbb-day[aria-pressed="true"],
.hbb .hbb-cal button.hbb-day[aria-pressed="true"]:hover,
.hbb .hbb-cal button.hbb-day[aria-pressed="true"]:focus {
	background-color: var(--hbb-primary) !important; border-color: var(--hbb-primary) !important; color: #fff !important;
	box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--hbb-primary) !important; text-decoration: none !important;
}
.hbb .hbb-cal button.hbb-day[aria-pressed="true"]::after { background: #fff; }
.hbb .hbb-cal button.hbb-day:focus-visible { outline: 3px solid var(--hbb-primary); outline-offset: 2px; z-index: 1; }

.hbb-times-title { font-weight: 700; font-size: 1.05rem; margin: 0 0 4px; }
.hbb-times-help { color: var(--hbb-muted); font-size: .9rem; margin: 0 0 12px; }
.hbb-times { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 0; padding: 0; }
/* Time slots: same theme protection as the calendar days. */
.hbb .hbb-times button.hbb-time {
	width: 100%; min-height: 48px; height: auto; margin: 0; border-radius: 10px; border-width: 1.5px; border-style: solid;
	font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; letter-spacing: normal;
	display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15;
	-webkit-appearance: none !important; appearance: none !important;
	background-color: #fff !important; background-image: none !important; box-shadow: none !important;
	border-color: var(--hbb-line) !important; color: var(--hbb-text) !important;
	text-decoration: none !important; text-transform: none !important; opacity: 1 !important; padding: 6px !important;
}
.hbb .hbb-times button.hbb-time:hover:not([aria-disabled="true"]),
.hbb .hbb-times button.hbb-time:focus:not([aria-disabled="true"]) { border-color: var(--hbb-primary) !important; color: var(--hbb-primary) !important; }
.hbb .hbb-times button.hbb-time[aria-pressed="true"],
.hbb .hbb-times button.hbb-time[aria-pressed="true"]:hover:not([aria-disabled="true"]),
.hbb .hbb-times button.hbb-time[aria-pressed="true"]:focus { background-color: var(--hbb-primary) !important; border-color: var(--hbb-primary) !important; color: #fff !important; }
.hbb .hbb-times button.hbb-time[aria-disabled="true"],
.hbb .hbb-times button.hbb-time[aria-disabled="true"]:hover,
.hbb .hbb-times button.hbb-time[aria-disabled="true"]:focus { background-color: #f5f6f8 !important; border-color: #eceff3 !important; color: #677084 !important; cursor: not-allowed; }
.hbb .hbb-times button.hbb-time[aria-disabled="true"] .hbb-time__t { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.hbb .hbb-time small { font-size: .7rem; font-weight: 600; }
.hbb .hbb-time:focus-visible { outline: 3px solid var(--hbb-primary); outline-offset: 2px; }
.hbb-empty { padding: 18px; text-align: center; color: var(--hbb-muted); background: var(--hbb-soft); border-radius: 10px; }
.hbb-skeleton { height: 48px; border-radius: 10px; background: linear-gradient(90deg, #eef2f8 0%, #f7f9fc 50%, #eef2f8 100%); background-size: 200% 100%; animation: hbb-shimmer 1.2s ease-in-out infinite; }
@keyframes hbb-shimmer { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- Form */
/*
 * Customer form. Each field has four parts – label, control, hint, error – and
 * with subgrid every part sits on a shared row track, so two fields side by
 * side (e.g. Telefonnummer + REG.NR) keep labels, inputs and hints level even
 * when one hint wraps or one field shows an error. Without subgrid the
 * fields fall back to a simple column.
 */
.hbb-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; max-width: 820px; }
.hbb-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hbb-field--full { grid-column: 1 / -1; }
@supports (grid-template-rows: subgrid) {
	.hbb-form { row-gap: 0; }
	.hbb-field { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; padding-bottom: 14px; }
	.hbb-field > label { grid-row: 1; align-self: end; margin-bottom: 6px; }
	.hbb-field > .hbb-input, .hbb-field > .hbb-phone { grid-row: 2; align-self: start; }
	.hbb-field > .hbb-hint { grid-row: 3; margin: 6px 0 0; }
	.hbb-field > .hbb-err { grid-row: 4; margin: 6px 0 0; }
}
.hbb-field label, .hbb-label { font-weight: 600; font-size: .95rem; color: var(--hbb-text); }
.hbb-field .hbb-req { color: var(--hbb-danger); margin-left: 2px; }
.hbb-field .hbb-opt { color: var(--hbb-muted); font-weight: 400; font-size: .88rem; }
.hbb .hbb-input {
	width: 100%; min-height: 48px; padding: 10px 14px;
	border: 1.5px solid #b8c4d6; border-radius: 10px; background: #fff; color: var(--hbb-text);
	font-size: 1rem; line-height: 1.3; box-shadow: none;
}
.hbb textarea.hbb-input { min-height: 96px; resize: vertical; }
.hbb .hbb-input:focus { outline: none; border-color: var(--hbb-primary); box-shadow: 0 0 0 3px rgba(0, 99, 204, .2); }
.hbb .hbb-input[aria-invalid="true"] { border-color: var(--hbb-danger); }
.hbb-phone { display: flex; align-items: stretch; }
.hbb-phone__prefix {
	display: inline-flex; align-items: center; padding: 0 12px; border: 1.5px solid #b8c4d6; border-right: 0;
	border-radius: 10px 0 0 10px; background: var(--hbb-soft); font-weight: 700; color: var(--hbb-muted);
}
.hbb-phone .hbb-input { border-radius: 0 10px 10px 0; }
.hbb .hbb-input--reg { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.hbb-hint { font-size: .85rem; color: var(--hbb-muted); }
.hbb-err { display: flex; gap: 6px; align-items: flex-start; font-size: .88rem; color: var(--hbb-danger); font-weight: 600; }
.hbb-err::before { content: '!'; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: var(--hbb-danger); color: #fff; font-size: .75rem; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.hbb p.hbb-privacy { max-width: 820px; margin: 4px 0 0; font-size: .9rem; color: var(--hbb-muted); }
.hbb-privacy a { color: var(--hbb-primary); text-decoration: underline; text-underline-offset: 2px; }
.hbb-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- Summary / confirmation */
.hbb-summary { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: calc(var(--hbb-space) * 1.5); align-items: start; }
.hbb-dl { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 10px 18px; margin: 0; }
.hbb-dl dt { color: var(--hbb-muted); font-size: .92rem; }
.hbb-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.hbb-dl dd.hbb-regnr { letter-spacing: .06em; }
.hbb-edit { margin-left: 8px; font-weight: 600; font-size: .85rem; }
.hbb-editlinks { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 12px 0 0; }
.hbb-pay { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 2px solid var(--hbb-primary); background: var(--hbb-accent); margin-bottom: 14px; }
.hbb-pay svg { width: 28px; height: 28px; color: var(--hbb-primary); flex: 0 0 auto; }
.hbb-pay strong { display: block; }
.hbb-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; font-weight: 700; margin: 6px 0 16px; padding-top: 12px; border-top: 1px solid var(--hbb-line); }
.hbb-price__row { display: flex; justify-content: space-between; gap: 12px; margin: 4px 0; color: var(--hbb-muted); }
.hbb-price__old { text-decoration: line-through; }
.hbb-price__discount { color: var(--hbb-success); font-weight: 600; }
.hbb-coupon { margin: 0 0 16px; }
.hbb-coupon__panel { margin-top: 8px; }
.hbb-coupon__panel label { display: block; font-weight: 600; margin-bottom: 6px; }
.hbb-coupon__row { display: flex; gap: 8px; }
.hbb-coupon__row .hbb-input { flex: 1 1 auto; min-width: 0; }
.hbb .hbb-input--code { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.hbb-coupon__row .hbb-btn { flex: 0 0 auto; }
.hbb-coupon__status { margin: 8px 0 0; font-size: .9rem; min-height: 1.2em; }
.hbb-coupon__status.is-success { color: var(--hbb-success); font-weight: 600; }
.hbb-coupon__status.is-error { color: var(--hbb-danger); font-weight: 600; }

.hbb-alert { padding: 12px 16px; border-radius: 10px; margin: 0 0 var(--hbb-space); font-weight: 600; }
.hbb-alert--error { background: var(--hbb-danger-soft); color: var(--hbb-danger); border: 1px solid rgba(180, 35, 24, .25); }
.hbb-alert--info { background: var(--hbb-soft); color: var(--hbb-text); border: 1px solid var(--hbb-line); font-weight: 500; }
.hbb-alert--test { background: #fff8e5; color: #7a5400; border: 1px solid #f0d58a; font-weight: 500; }
.hbb-alts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; }

.hbb-done { text-align: center; max-width: 760px; margin: 0 auto; }
.hbb-done__icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--hbb-success-soft); color: var(--hbb-success); display: flex; align-items: center; justify-content: center; }
.hbb-done__icon svg { width: 34px; height: 34px; }
.hbb-done__num { display: inline-block; margin: 6px 0 18px; padding: 8px 16px; border-radius: 999px; background: var(--hbb-accent); color: var(--hbb-primary-dark); font-weight: 700; letter-spacing: .03em; font-size: 1.1rem; }
.hbb-done .hbb-panel { text-align: left; margin: 0 0 16px; }
.hbb-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
	.hbb-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.hbb-when, .hbb-summary { grid-template-columns: 1fr; }
	.hbb-steps li .hbb-step-l { display: none; }
	.hbb-steps li[aria-current="step"] { flex: 3 1 0; }
	.hbb-steps li[aria-current="step"] .hbb-step-l { display: inline; }
	.hbb-steps li { justify-content: center; padding: 8px; }
	.hbb-steps li.is-clickable { padding: 0; }
	.hbb-steps button.hbb-step-link { justify-content: center; padding: 8px; }
}
@media (max-width: 640px) {
	.hbb { font-size: 15.5px; }
	.hbb-cat-grid { grid-template-columns: 1fr; }
	.hbb .hbb-cat { min-height: 150px; }
	.hbb-cat__art { width: 55%; }
	.hbb-form { grid-template-columns: 1fr; }
	.hbb-nav { flex-direction: column-reverse; align-items: stretch; }
	.hbb-nav .hbb-btn { width: 100%; }
	.hbb-nav .hbb-btn--ghost { margin-right: 0; }
	.hbb-dl { grid-template-columns: 1fr; gap: 2px 0; }
	.hbb-dl dd { margin-bottom: 8px; }
	.hbb-times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hbb-coupon__row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	.hbb *, .hbb *::before, .hbb *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
	.hbb .hbb-day[aria-pressed="true"], .hbb .hbb-time[aria-pressed="true"] { outline: 2px solid Highlight; }
}
