/* HappyBooking – frontend (mobile first). Inherits the theme's fonts; colors via CSS variables. */
.hb {
	--hb-primary: var(--hb-color-primary, #A02B93);
	--hb-accent: var(--hb-color-accent, #F2CEED);
	--hb-text: inherit;
	--hb-muted: #6d6368;
	--hb-border: #e9dfe6;
	--hb-surface: #fff;
	--hb-soft: #faf5f8;
	--hb-ok: #1f7a4d;
	--hb-warn: #9a5b00;
	--hb-bad: #b3261e;
	--hb-radius: 16px;
	--hb-gap: 16px;
	font-family: inherit;
	color: var(--hb-text);
	line-height: 1.55;
	box-sizing: border-box;
}
.hb *, .hb *::before, .hb *::after { box-sizing: border-box; }
.hb .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.hb-container { max-width: 1140px; margin: 0 auto; padding: 16px 16px 48px; }
.hb-card {
	background: var(--hb-surface);
	border: 1px solid var(--hb-border);
	border-radius: var(--hb-radius);
	padding: 20px;
	box-shadow: 0 1px 2px rgba(60, 20, 50, .04), 0 8px 24px rgba(60, 20, 50, .05);
}
.hb .hb-card-title { font-size: 1.2rem; margin: 0 0 12px; line-height: 1.3; }
.hb-muted { color: var(--hb-muted); font-weight: 400; }
.hb-pill {
	display: inline-block; padding: 4px 12px; border-radius: 999px;
	background: var(--hb-accent); color: #3b1034; font-weight: 600; font-size: .85rem; letter-spacing: .2px; white-space: nowrap;
}
.hb-note { padding: 12px 16px; border-radius: 12px; margin: 0 0 16px; }
.hb-note--info { background: #eef4ff; border: 1px solid #c9d9ff; }

/* Buttons – large touch targets */
.hb-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
	font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: filter .15s ease, transform .05s ease;
}
.hb .hb-button, .hb a.hb-button, .hb button.hb-button { text-decoration: none; box-shadow: none; text-transform: none; letter-spacing: normal; }
.hb .hb-button--primary, .hb a.hb-button--primary, .hb button.hb-button--primary { background: var(--hb-primary); background-color: var(--hb-primary); border-color: var(--hb-primary); color: #fff; }
.hb .hb-button--primary:hover, .hb .hb-button--primary:focus-visible { filter: brightness(1.08); background-color: var(--hb-primary); color: #fff; text-decoration: none; }
.hb-button:active { transform: translateY(1px); }
.hb .hb-button--block, .hb button.hb-button--block { width: 100%; display: flex; }
.hb a:focus-visible, .hb button:focus-visible, .hb input:focus-visible, .hb select:focus-visible, .hb summary:focus-visible {
	outline: 3px solid var(--hb-primary); outline-offset: 2px;
}

/* Availability: text + color + icon, never color alone */
.hb-avail { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.hb-avail::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.hb-avail--ok { color: var(--hb-ok); }
.hb-avail--low { color: var(--hb-warn); }
.hb-avail--full, .hb-avail--closed { color: var(--hb-bad); }

/* ---------- Hold page ---------- */
.hb-hold-layout { display: grid; gap: 20px; }
.hb-hold-image { margin: 0 -16px; }
.hb-hold-image img { width: 100%; height: auto; max-height: 60vh; object-fit: cover; display: block; }
.hb-hold-header { margin: 4px 0 0; }
.hb-eyebrow { margin: 0 0 8px; }
.hb .hb-hold-title { font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.15rem); line-height: 1.2; margin: 0 0 10px; }
.hb-lead { font-size: 1.08rem; color: var(--hb-muted); }
.hb-lead p { margin: 0 0 8px; }
.hb-facts { margin-top: 16px; }
.hb-dates { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.hb-dates li {
	display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline;
	padding: 10px 12px; border-radius: 12px; background: var(--hb-soft);
}
.hb-date { font-weight: 600; }
.hb-time { font-variant-numeric: tabular-nums; }
.hb-date-loc { width: 100%; color: var(--hb-muted); font-size: .92rem; }
.hb-meta { margin: 0; display: grid; gap: 10px; }
.hb-meta > div { display: grid; grid-template-columns: 120px 1fr; gap: 8px; align-items: baseline; }
.hb-meta dt { color: var(--hb-muted); font-size: .92rem; }
.hb-meta dd { margin: 0; font-weight: 600; }
.hb-section { margin-top: 28px; }
.hb .hb-section h2 { font-size: 1.3rem; margin: 0 0 10px; line-height: 1.3; }
.hb-richtext img { max-width: 100%; height: auto; border-radius: 12px; }

.hb-book { border: 2px solid var(--hb-accent); }
.hb-label { display: block; font-weight: 600; margin: 0 0 8px; }
.hb-stepper { display: flex; align-items: stretch; gap: 8px; }
.hb button.hb-step, .hb .hb-step {
	padding: 0; background-color: #fff; color: inherit; font-weight: 400;
	width: 56px; min-height: 56px; border-radius: 14px; border: 2px solid var(--hb-border); background: #fff;
	font-size: 1.6rem; line-height: 1; cursor: pointer; color: inherit;
}
.hb button.hb-step:hover, .hb button.hb-step:focus { background-color: var(--hb-soft); color: inherit; border-color: var(--hb-primary); }
.hb button.hb-step:disabled { opacity: .35; cursor: not-allowed; background-color: #fff; border-color: var(--hb-border); }
.hb-qty {
	flex: 1; min-width: 0; min-height: 56px; text-align: center; font-size: 1.4rem; font-weight: 700;
	border: 2px solid var(--hb-border); border-radius: 14px; background: #fff; color: inherit; -moz-appearance: textfield;
}
.hb-qty::-webkit-outer-spin-button, .hb-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hb-help { font-size: .9rem; color: var(--hb-muted); margin: 8px 0 0; }
.hb-help--center { text-align: center; }
.hb-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0; padding: 14px 0; border-top: 1px dashed var(--hb-border); border-bottom: 1px dashed var(--hb-border); font-size: 1.1rem; }
.hb-total strong { font-size: 1.35rem; }
.hb-check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; cursor: pointer; }
.hb-check input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--hb-primary); }

@media (min-width: 900px) {
	.hb-container { padding-top: 28px; }
	.hb-hold-layout { grid-template-columns: minmax(0, 1fr) 380px; column-gap: 40px; row-gap: 0; align-items: start; }
	.hb-hold-top { grid-column: 1; grid-row: 1; }
	.hb-hold-more { grid-column: 1; grid-row: 2; }
	.hb-hold-aside { grid-column: 2; grid-row: 1 / span 2; }
	.hb-hold-image { margin: 0 0 20px; }
	.hb-hold-image img { border-radius: var(--hb-radius); }
	.hb-hold-aside { position: sticky; top: 24px; }
	.hb-card { padding: 24px; }
}

/* ---------- List ---------- */
.hb-list-items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--hb-gap); }
.hb-list--cards .hb-list-items { grid-template-columns: 1fr; }
@media (min-width: 700px) { .hb-list--cards .hb-list-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .hb-list--cards .hb-list-items { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hb-list-item { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.hb-list-item.is-full { opacity: .85; }
.hb-list-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.hb .hb-list-title { font-size: 1.15rem; line-height: 1.3; margin: 0; }
.hb-list-title a { color: inherit; text-decoration: none; }
.hb-list-dates { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hb-list-dates li { display: flex; gap: 10px; justify-content: space-between; padding: 6px 10px; background: var(--hb-soft); border-radius: 10px; font-size: .95rem; }
.hb-list-foot { margin-top: auto; display: grid; gap: 12px; }
.hb-list-facts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: center; }
.hb-price { font-weight: 700; font-size: 1.05rem; }
.hb-list-foot .hb-button { width: 100%; }
.hb-list--list .hb-list-item { flex-direction: column; }
@media (min-width: 700px) {
	.hb-list--list .hb-list-item { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr; align-items: center; }
	.hb-list--list .hb-list-head { flex-direction: column; }
}
.hb-empty { padding: 20px; border-radius: var(--hb-radius); background: var(--hb-soft); margin: 0; }

/* ---------- Mine kurser ---------- */
.hb-my { display: grid; gap: 20px; }
.hb .hb-my-card h3 { margin: 0 0 4px; font-size: 1.2rem; }
.hb-my-sub { margin: 0 0 12px; color: var(--hb-muted); }
.hb-my details { border-top: 1px solid var(--hb-border); padding: 10px 0; }
.hb-my summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.hb-seats { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.hb-seat { border: 1px solid var(--hb-border); border-radius: 12px; padding: 12px; }
.hb-seat-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.hb-seat-empty { color: var(--hb-muted); font-style: italic; font-weight: 400; }
.hb-seat-form { display: grid; gap: 10px; margin-top: 10px; }
.hb-seat-form label { display: grid; gap: 4px; font-size: .92rem; font-weight: 600; }
.hb-seat-form input[type=text], .hb-seat-form input[type=email], .hb-seat-form input[type=tel] {
	min-height: 48px; padding: 10px 12px; border: 2px solid var(--hb-border); border-radius: 12px; font: inherit; width: 100%;
}
.hb-seat-form label.hb-check { display: flex; font-weight: 400; margin: 0; }
.hb-my summary { list-style: none; justify-content: space-between; }
.hb-my summary::-webkit-details-marker { display: none; }
.hb-my summary::after { content: "+"; font-size: 1.3em; line-height: 1; color: var(--hb-primary); margin-left: 12px; }
.hb-my details[open] > summary::after { content: "–"; }
@media (min-width: 700px) { .hb-seat-form .hb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } }
.hb-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: #eef6f1; color: var(--hb-ok); }
.hb-status--bad { background: #fdeeee; color: var(--hb-bad); }
.hb-status--warn { background: #fff4e5; color: var(--hb-warn); }
.hb-status--muted { background: #f0eef0; color: var(--hb-muted); }
.hb-order-changed { margin: 8px 0 0; padding: 8px 12px; background: #fff4e5; border-radius: 8px; }

/* Headings follow the website's heading font (Elementor global "Primær" typography) but keep sane sizes. */
.hb h1, .hb h2, .hb h3, .hb h4 {
	font-family: var(--e-global-typography-primary-font-family, inherit);
	font-weight: var(--e-global-typography-primary-font-weight, 600);
	text-transform: none; letter-spacing: normal; word-break: normal;
}
.hb .hb-button--primary, .hb a.hb-button--primary, .hb button.hb-button--primary { color: var(--hb-color-button-text, #fff); }


/* ---------- Course pages (built-in design, shortcodes and Elementor widgets) ---------- */
.hb-course-page { --hb-page-max: 1140px; }
.hb-course-page > .hb-course-block { max-width: var(--hb-page-max); margin-left: auto; margin-right: auto; padding: 32px 16px; }
.hb-course-page > .hb-course-intro { padding-top: 40px; }
@media (min-width: 900px) { .hb-course-page > .hb-course-block { padding: 48px 24px; } }
.hb .hb-block-title { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.15rem); line-height: 1.2; margin: 0 0 16px; }
.hb-readable { max-width: 68ch; font-size: 1.0625rem; line-height: 1.7; }
.hb-readable > :first-child { margin-top: 0; }
.hb-readable p { margin: 0 0 1em; }
.hb-readable ul, .hb-readable ol { margin: 0 0 1em; padding-left: 1.3em; }
.hb-readable li { margin: 0 0 .35em; }
.hb-center { text-align: center; margin: 24px 0 0; }
.hb .hb-button--ghost, .hb a.hb-button--ghost { background: transparent; border-color: var(--hb-primary); color: var(--hb-primary); }
.hb .hb-button--ghost:hover, .hb a.hb-button--ghost:hover { background: var(--hb-soft); color: var(--hb-primary); }
.hb .hb-button--light, .hb a.hb-button--light { background: rgba(255, 255, 255, .95); border-color: transparent; color: #2b1f27; }
.hb .hb-button--light:hover, .hb a.hb-button--light:hover { background: #fff; color: #2b1f27; }
.hb-course-block[id] { scroll-margin-top: 90px; }

/* Hero */
.hb-course-hero {
	--hb-hero-radius: 80px;
	position: relative; display: flex; align-items: flex-end; min-height: clamp(380px, 64vh, 640px);
	background-color: #5b4452; background-position: center; background-size: cover; background-repeat: no-repeat;
	background-image: linear-gradient(180deg, rgba(0, 0, 0, calc(var(--hb-hero-overlay, .35) * .3)) 0%, rgba(0, 0, 0, calc(var(--hb-hero-overlay, .35) * .5)) 45%, rgba(0, 0, 0, var(--hb-hero-overlay, .35)) 100%), var(--hb-hero-image, none);
	border-radius: 0 0 var(--hb-hero-radius) 0; overflow: hidden; color: #fff;
}
.hb-course-hero--noimg { background-image: linear-gradient(135deg, var(--hb-primary), #3b1034); min-height: 320px; }
.hb-course-hero__inner { width: 100%; max-width: 1140px; margin: 0 auto; padding: 56px 16px 40px; }
.hb .hb-course-hero__title {
	color: #fff; margin: 0 0 12px; font-size: clamp(2.3rem, 1.3rem + 4.6vw, 4.6rem); line-height: 1.04; letter-spacing: -.02em;
	text-shadow: 0 2px 18px rgba(0, 0, 0, .28); overflow-wrap: anywhere; hyphens: auto;
}
.hb-course-hero__subtitle { margin: 0; max-width: 42ch; font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); line-height: 1.5; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .3); }
.hb-course-hero__eyebrow { margin: 0 0 14px; }
.hb-course-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 480px) { .hb-course-hero__actions .hb-button { flex: 1 1 100%; } }
@media (min-width: 900px) {
	.hb-course-hero { --hb-hero-radius: 180px; }
	.hb-course-hero__inner { padding: 96px 24px 72px; }
}

/* Intro */
.hb-course-intro { display: grid; gap: 28px; align-items: start; }
.hb-course-intro__media { margin: 0; }
.hb-course-intro__media img, .hb-course-intro .hb-course-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px 10px 10px 110px; }
.hb .hb-course-intro__heading { margin-top: 0; margin-bottom: 18px; }
.hb-course-reviews { margin-top: 16px; }
@media (min-width: 900px) {
	.hb-course-intro { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
	.hb-course-intro--noimg { grid-template-columns: 1fr; }
	.hb-course-intro__media img, .hb-course-intro .hb-course-img { aspect-ratio: 4 / 5; max-height: 600px; border-radius: 10px 10px 10px 200px; }
}

/* Boxes and facts */
.hb-course-box { background: var(--hb-surface); border: 1px solid var(--hb-border); border-radius: 20px; padding: 24px 20px; box-shadow: 0 1px 2px rgba(60, 20, 50, .04), 0 10px 30px rgba(60, 20, 50, .06); }
.hb-course-box--soft { background: var(--hb-soft); border-color: transparent; box-shadow: none; }
@media (min-width: 900px) { .hb-course-box { padding: 32px 36px; } }
.hb-facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin: 0; }
.hb-fact { margin: 0; padding-left: 12px; border-left: 3px solid var(--hb-accent); }
.hb-fact dt { margin: 0 0 2px; font-size: .88rem; color: var(--hb-muted); font-weight: 400; }
.hb-fact dd { margin: 0; font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
.hb-fact--next { grid-column: 1 / -1; }
.hb-fact--next .hb-avail { display: flex; margin-top: 2px; font-size: .95rem; }
.hb-course-facts__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
@media (max-width: 480px) { .hb-course-facts__actions .hb-button { flex: 1 1 100%; } }
@media (min-width: 700px) { .hb-facts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hb-fact--next { grid-column: auto; } }
@media (min-width: 1100px) { .hb-facts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Gallery – tiles of the same size; a click shows the whole image */
.hb-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hb-gallery li { margin: 0; }
.hb-gallery a { display: block; border-radius: 16px; overflow: hidden; }
.hb-gallery img { display: block; width: 100%; height: auto; aspect-ratio: var(--hb-gallery-ratio, 3 / 4); object-fit: cover; border-radius: 16px; transition: transform .25s ease; }
.hb-gallery a:hover img, .hb-gallery a:focus-visible img { transform: scale(1.03); }
@media (min-width: 900px) { .hb-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (prefers-reduced-motion: reduce) { .hb-gallery img { transition: none; } }

/* FAQ */
.hb-faq { border-top: 1px solid var(--hb-border); }
.hb-faq-item { border-bottom: 1px solid var(--hb-border); }
.hb-faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0; font-weight: 600; font-size: 1.05rem; }
.hb-faq-item summary::-webkit-details-marker { display: none; }
.hb-faq-item summary::after { content: "+"; font-size: 1.5em; line-height: 1; color: var(--hb-primary); flex: none; }
.hb-faq-item[open] summary::after { content: "–"; }
.hb-faq-answer { padding: 0 0 16px; }
.hb-faq-answer p { margin: 0 0 .8em; }

/* Course cards */
.hb-courses__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .hb-courses:not(.hb-courses--1) .hb-courses__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
	.hb-courses.hb-courses--3 .hb-courses__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hb-courses.hb-courses--4 .hb-courses__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.hb-course-card { margin: 0; }
.hb .hb-course-card__link {
	display: flex; flex-direction: column; height: 100%; overflow: hidden; color: inherit; text-decoration: none;
	background: var(--hb-surface); border: 1px solid var(--hb-border); border-radius: 20px;
	box-shadow: 0 1px 2px rgba(60, 20, 50, .04), 0 10px 30px rgba(60, 20, 50, .06); transition: transform .15s ease, box-shadow .15s ease;
}
.hb .hb-course-card__link:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(60, 20, 50, .06), 0 16px 40px rgba(60, 20, 50, .1); color: inherit; }
.hb-course-card__media { display: block; }
.hb .hb-course-card__link { position: relative; }
/* Diagonal ribbon top right with the duration ("2 aftener") */
.hb-course-card__ribbon {
	position: absolute; z-index: 2; top: 30px; right: -54px; width: 210px; padding: 7px 36px;
	transform: rotate(45deg); transform-origin: center;
	background: var(--hb-ribbon-bg, var(--hb-primary)); color: var(--hb-ribbon-color, #fff);
	font-size: .8rem; font-weight: 700; line-height: 1.2; letter-spacing: .04em; text-align: center; text-transform: uppercase;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	box-shadow: 0 3px 10px rgba(40, 10, 30, .25); pointer-events: none;
}
.hb-course-card__media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hb-course-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; }
.hb-course-card__title { font-family: var(--e-global-typography-primary-font-family, inherit); font-weight: var(--e-global-typography-primary-font-weight, 600); font-size: 1.3rem; line-height: 1.25; }
.hb-course-card__meta { color: var(--hb-muted); font-size: .95rem; }
.hb-course-card__type { color: var(--hb-primary); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hb-course-card__text { flex: 1; line-height: 1.55; }
.hb-course-card__next { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; padding-top: 4px; }
.hb-course-card__next::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.hb-next--ok { color: var(--hb-ok); }
.hb-next--low { color: var(--hb-warn); }
.hb-next--full { color: var(--hb-bad); }
.hb-next--none { color: var(--hb-muted); }
.hb .hb-course-card__button { margin-top: 8px; align-self: flex-start; }

/* Sticky "Se datoer og book" on phones */
.hb-mobilebar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, .97); box-shadow: 0 -6px 24px rgba(40, 10, 30, .14);
	transform: translateY(120%); transition: transform .25s ease;
}
.hb-mobilebar.is-visible { transform: none; }
@media (min-width: 900px) { .hb-mobilebar { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .hb-mobilebar { transition: none; } .hb .hb-course-card__link { transition: none; } }
.hb-editor-note { padding: 16px; border: 1px dashed var(--hb-border); border-radius: 12px; color: var(--hb-muted); }
/* Built-in course page: full-width main (Hello Elementor limits .site-main to 1140px). */
.hb-course-main { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
.hb-course-main > .hb { max-width: 1140px; margin: 16px auto 0; padding: 0 16px; }
.hb-course-main .hb-course-testnote { margin: 0; }

/* Kursist login (login link box above WooCommerce's login form) */
.hb-login-box { border: 1px solid var(--hb-border); border-radius: 14px; padding: 22px 22px 16px; margin: 0 0 28px; background: #fff; }
.hb-login-box h2 { margin: 0 0 8px; font-size: 1.35em; }
.hb-login-box p { margin: 0 0 14px; }
.hb-login-box__form { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.hb-login-box__form input[type="email"] { flex: 1 1 240px; min-height: 44px; padding: 8px 12px; font-size: 16px; }
.hb-login-box__form .hb-button { min-height: 44px; }
.hb-login-box__or { color: var(--hb-muted); font-size: .92em; }
.hb-login-box__msg { padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.hb-login-box__msg--ok { background: #e8f5ee; color: #1f5f3f; }
.hb-login-box__msg--warn { background: #fff4e5; color: #7a4800; }

/* Admin preview of a student's "Mine kurser" */
.hb-preview-banner { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; background: #fff4e5; border: 1px dashed #c98a2b; color: #5c3b00; font-size: .95em; }
.hb-preview-banner strong { font-size: 1.05em; }
.hb-preview-banner a { color: inherit; text-decoration: underline; }
.hb-my form[inert] { opacity: .6; }

/* Mine kurser: calendar actions */
.hb-cal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 16px; }
.hb-cal-actions .hb-button { min-height: 44px; }

/* WooCommerce "Min konto" (Mine kurser): calmer title and a styled account menu */
body.woocommerce-account .page-header h1.entry-title,
body.woocommerce-account main h1.entry-title,
body.hb-plain-title .page-header h1.entry-title,
body.hb-plain-title main h1.entry-title,
body.hb-plain-title .elementor-widget-theme-page-title .elementor-heading-title,
body.woocommerce-account .elementor-widget-theme-page-title .elementor-heading-title,
body.woocommerce-account .elementor-widget-theme-page-title h1 {
	font-size: clamp(26px, 3.2vw, 36px);
	line-height: 1.2;
	margin: 8px 0 20px;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 8px;
	display: grid;
	gap: 2px;
	background: #fff;
	border: 1px solid #e9dfe6;
	border-radius: 14px;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; }
body.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 14px;
	border-radius: 10px;
	color: #3b3036;
	text-decoration: none;
	font-size: 15px;
	transition: background-color .15s;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover,
body.woocommerce-account .woocommerce-MyAccount-navigation li a:focus-visible {
	background: var(--hb-color-accent, #F2CEED);
	color: #1f1a1d;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--hb-color-accent, #F2CEED);
	color: var(--hb-color-primary, #A02B93);
	font-weight: 700;
}
body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
	margin-top: 6px !important;
	padding-top: 6px !important;
	border-top: 1px solid #e9dfe6;
}
body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a { color: #6d6368; }
@media (max-width: 767px) {
	/* Phone: the menu becomes a row of chips that can be swiped sideways. */
	body.woocommerce-account .woocommerce-MyAccount-navigation { width: 100%; float: none; margin-bottom: 18px; }
	body.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: flex;
		gap: 6px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding: 6px;
	}
	body.woocommerce-account .woocommerce-MyAccount-navigation li a { white-space: nowrap; min-height: 40px; padding: 6px 12px; }
	body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout { margin: 0 !important; padding: 0 !important; border-top: 0; }
	body.woocommerce-account .woocommerce-MyAccount-content { width: 100%; float: none; }
}

/* Gift card balance inside "Min konto" */
.hb-gift-balance > p:first-child { margin: 0 0 16px; color: var(--hb-muted); }
.hb-gift-balance input[type="text"], .hb-gift-balance input:not([type]) { min-height: 44px; padding: 8px 12px; font-size: 16px; }
.hb-gift-balance button, .hb-gift-balance input[type="submit"] { min-height: 44px; }
