/* =========================================================================
   B-TECH Booking — Min konto & statustidslinje
   Bruges sammen med child theme-skabelonerne i woocommerce/myaccount/.
   ========================================================================= */

:root {
	--btb-ink: #14212b;
	--btb-steel: #305668;
	--btb-steel-deep: #264655;
	--btb-surf: #6e97ab;
	--btb-mist: #dde8ed;
	--btb-paper: #f4f7f8;
	--btb-line: #cdd9df;
	--btb-muted: #51636f;
	--btb-white: #ffffff;
	--btb-ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Grundramme ---------- */

.btb-account {
	font-family: "Inter", system-ui, sans-serif;
	color: var(--btb-ink);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

.btb-account h1,
.btb-account h2,
.btb-account h3 {
	font-family: "Satoshi", "Inter", sans-serif;
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.1;
}

/* ---------- Hero: mørkt bånd med bølge ---------- */

/* Hero'en bryder ud af temaets container. overflow-x holder 100vw fra at give
   en vandret scrollbar, når browseren tæller scrollbaren med i vw. */
body.woocommerce-account { overflow-x: hidden; }

.btb-acc-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-top: calc(-1 * var(--btb-hero-pull, 0px));
	margin-bottom: clamp(30px, 4vw, 52px);
	padding: clamp(56px, 7vw, 96px) 0 clamp(52px, 7vw, 86px);
	background: linear-gradient(150deg, #1c3543, #0f1c25);
	color: #fff;
}

.btb-acc-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	color: var(--btb-surf);
	pointer-events: none;
}

.btb-acc-hero__gauge {
	position: absolute;
	height: auto;
	animation: btbAccDrift 18s var(--btb-ease) infinite alternate;
}

@keyframes btbAccDrift {
	from { transform: translateY(0) rotate(0deg); }
	to   { transform: translateY(-14px) rotate(3deg); }
}

@media (prefers-reduced-motion: reduce) {
	.btb-acc-hero__gauge { animation: none; }
}

.btb-acc-hero__inner {
	position: relative;
	z-index: 2;
	max-width: var(--btb-hero-wrap, 1280px);
	margin: 0 auto;
	padding: 0 clamp(20px, 5vw, 44px);
}

.btb-acc-hero__crumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: .78rem;
	color: rgba(255, 255, 255, .55);
	margin-bottom: 16px;
}

.btb-acc-hero__crumb a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.btb-acc-hero__crumb a:hover { color: #fff; }
.btb-acc-hero__crumb span:last-child { color: rgba(255, 255, 255, .9); }

.btb-acc-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: .74rem;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--btb-surf);
	margin: 0 0 10px;
}

.btb-acc-hero__eyebrow::before {
	content: "";
	width: 26px;
	height: 1px;
	background: var(--btb-surf);
	flex: none;
}

.btb-account .btb-acc-hero__title {
	font-size: clamp(1.9rem, 4vw, 3.1rem);
	color: #fff;
	max-width: 20ch;
	margin: 0;
}

.btb-acc-hero__sub {
	margin: 14px 0 0;
	max-width: 54ch;
	font-size: 1rem;
	color: rgba(255, 255, 255, .78);
}

/* Bølgen skal have samme farve som baggrunden under hero'en.
   Er sidens baggrund ikke hvid, sættes --btb-hero-wave i temaet. */
.btb-acc-hero__wave {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: clamp(36px, 4.5vw, 64px);
	line-height: 0;
	color: var(--btb-hero-wave, #ffffff);
	pointer-events: none;
	z-index: 2;
}

.btb-acc-hero__wave svg { width: 100%; height: 100%; display: block; }

/* Login-siden har centrerede kort — hero'en følger samme akse. */
.btb-acc-login .btb-acc-hero__inner { text-align: center; }
.btb-acc-login .btb-acc-hero__crumb { justify-content: center; }
.btb-acc-login .btb-acc-hero__title { max-width: none; }
.btb-acc-login .btb-acc-hero__sub { margin-left: auto; margin-right: auto; }

.btb-acc-head { margin-bottom: clamp(24px, 4vw, 40px); }

.btb-acc-head .btb-eyebrow {
	font-size: .74rem;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--btb-surf);
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 8px;
}

.btb-acc-head .btb-eyebrow::before {
	content: "";
	width: 26px;
	height: 1px;
	background: var(--btb-surf);
	flex: none;
}

.btb-acc-head h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0; }

/* ---------- Layout: navigation + indhold ---------- */

.btb-account .btb-acc-grid {
	display: grid;
	grid-template-columns: 250px 1fr;
	gap: clamp(24px, 3.5vw, 48px);
	align-items: start;
}

/* Navigation */

.btb-account .woocommerce-MyAccount-navigation {
	background: var(--btb-white);
	border: 1px solid var(--btb-line);
	border-radius: 16px;
	padding: 12px;
	position: sticky;
	top: 96px;
	float: none;
	width: auto;
}

.btb-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.btb-account .woocommerce-MyAccount-navigation li { margin: 0; }

.btb-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 11px 16px;
	border-radius: 10px;
	font-size: .92rem;
	font-weight: 500;
	color: var(--btb-muted);
	text-decoration: none;
	transition: background .25s var(--btb-ease), color .25s var(--btb-ease);
}

.btb-account .woocommerce-MyAccount-navigation a:hover {
	background: var(--btb-paper);
	color: var(--btb-ink);
}

.btb-account .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--btb-ink);
	color: #fff;
}

/* Indhold */

.btb-account .woocommerce-MyAccount-content {
	background: var(--btb-white);
	border: 1px solid var(--btb-line);
	border-radius: 18px;
	padding: clamp(22px, 3vw, 36px);
	float: none;
	width: auto;
}

.btb-account .woocommerce-MyAccount-content > h2,
.btb-account .woocommerce-MyAccount-content h2 {
	font-size: 1.3rem;
	margin: 0 0 16px;
}

.btb-account .woocommerce-MyAccount-content p { color: var(--btb-muted); }
.btb-account .woocommerce-MyAccount-content a { color: var(--btb-steel); }

/* ---------- Dashboard-kort ---------- */

.btb-acc-welcome { margin-bottom: 22px; }
.btb-acc-welcome strong { color: var(--btb-ink); }

.btb-acc-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
	margin-top: 8px;
}

.btb-acc-card {
	display: block;
	background: var(--btb-paper);
	border: 1px solid var(--btb-line);
	border-radius: 14px;
	padding: 20px;
	text-decoration: none !important;
	transition: transform .35s var(--btb-ease), border-color .3s var(--btb-ease), box-shadow .35s var(--btb-ease);
}

.btb-acc-card:hover {
	transform: translateY(-4px);
	border-color: var(--btb-surf);
	box-shadow: 0 20px 40px -30px rgba(20, 33, 43, .5);
}

.btb-acc-card .t {
	font-family: "Satoshi", "Inter", sans-serif;
	font-weight: 700;
	font-size: 1rem;
	color: var(--btb-ink);
	margin-bottom: 4px;
}

.btb-acc-card p { font-size: .84rem; margin: 0; }

/* ---------- Tabeller (ordrer m.m.) ---------- */

.btb-account table.shop_table {
	width: 100%;
	border-collapse: collapse;
	border: none;
	font-size: .92rem;
}

.btb-account table.shop_table th,
.btb-account table.shop_table td {
	border: none;
	border-bottom: 1px solid var(--btb-line);
	padding: 13px 12px;
	text-align: left;
	vertical-align: middle;
}

.btb-account table.shop_table thead th {
	font-family: "Inter", sans-serif;
	font-size: .68rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--btb-muted);
	font-weight: 500;
	background: transparent;
}

.btb-account table.shop_table tbody tr:hover td,
.btb-account table.shop_table tbody tr:hover th { background: var(--btb-paper); }

.btb-account .woocommerce-orders-table__cell-order-number a {
	font-family: "Satoshi", "Inter", sans-serif;
	font-weight: 700;
	color: var(--btb-ink);
	text-decoration: none;
}

/* Statusbadge i bookingkolonnen */

.btb-acc-badge {
	display: inline-block;
	font-size: .7rem;
	font-weight: 600;
	border-radius: 100px;
	padding: 3px 10px;
	white-space: nowrap;
	background: var(--btb-mist);
	color: var(--btb-steel-deep);
}

.btb-acc-badge.status-pending { background: #faf3e3; color: #8a6516; }
.btb-acc-badge.status-delivered { background: #e9f1f5; color: #305668; }
.btb-acc-badge.status-done { background: #e8f2ec; color: #2e5540; }
.btb-acc-badge.status-cancelled { background: #f8e9e6; color: #8c3a2c; }

.btb-acc-bookingdate {
	display: block;
	font-size: .76rem;
	color: var(--btb-muted);
	margin-top: 3px;
}

.btb-acc-muted { color: var(--btb-line); }

/* ---------- Knapper ---------- */

.btb-account .button,
.btb-account .woocommerce-button,
.btb-account button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 22px;
	font-family: "Satoshi", "Inter", sans-serif;
	font-weight: 700;
	font-size: .88rem;
	line-height: 1;
	color: #fff !important;
	background: var(--btb-ink);
	border: 1px solid transparent;
	border-radius: 100px;
	cursor: pointer;
	text-decoration: none !important;
	transition: background .3s var(--btb-ease);
}

.btb-account .button:hover,
.btb-account .woocommerce-button:hover,
.btb-account button[type="submit"]:hover { background: var(--btb-steel); color: #fff !important; }

.btb-account .woocommerce-orders-table .button {
	min-height: 34px;
	padding: 0 16px;
	font-size: .78rem;
	margin: 2px 4px 2px 0;
	background: transparent;
	border-color: var(--btb-line);
	color: var(--btb-ink) !important;
}

.btb-account .woocommerce-orders-table .button:hover {
	background: var(--btb-ink);
	border-color: var(--btb-ink);
	color: #fff !important;
}

/* ---------- Formularer ---------- */

.btb-account .woocommerce-form-row label,
.btb-account .form-row label {
	font-size: .84rem;
	font-weight: 600;
	color: var(--btb-ink);
	margin-bottom: 5px;
	display: block;
}

.btb-account input[type="text"],
.btb-account input[type="email"],
.btb-account input[type="password"],
.btb-account input[type="tel"],
.btb-account select,
.btb-account textarea {
	width: 100%;
	border: 1px solid var(--btb-line);
	border-radius: 11px;
	padding: 11px 14px;
	font-family: "Inter", system-ui, sans-serif;
	font-size: .94rem;
	color: var(--btb-ink);
	background: var(--btb-white);
	transition: border-color .25s var(--btb-ease);
}

.btb-account input:focus,
.btb-account select:focus,
.btb-account textarea:focus {
	outline: none;
	border-color: var(--btb-surf);
	box-shadow: 0 0 0 3px rgba(110, 151, 171, .18);
}

/* ---------- Login ---------- */

.btb-acc-login {
	max-width: 460px;
	margin: 0 auto;
}

.btb-acc-login .btb-acc-logincard {
	background: var(--btb-white);
	border: 1px solid var(--btb-line);
	border-radius: 18px;
	padding: clamp(24px, 4vw, 40px);
	box-shadow: 0 26px 50px -34px rgba(20, 33, 43, .35);
}

.btb-acc-login h2 { font-size: 1.35rem; margin: 0 0 18px; }

.btb-acc-login .woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0 14px;
	font-size: .88rem;
	color: var(--btb-muted);
}

.btb-acc-login .woocommerce-LostPassword {
	font-size: .84rem;
	margin: 14px 0 0;
	text-align: center;
}

.btb-acc-login button[type="submit"] { width: 100%; }

.btb-acc-login.has-register { max-width: 960px; }

/* To kolonner ved siden af hinanden. Selektorerne bruger #customer_login, så de
   slår temaets egne float-/bredde-regler på Woo-kolonnerne (samme ID-styrke). */
.btb-acc-login #customer_login,
.btb-acc-login .u-columns.col2-set {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 18px !important;
	align-items: stretch !important;
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	columns: auto !important;
}

.btb-acc-login #customer_login::before,
.btb-acc-login #customer_login::after {
	content: none !important;
	display: none !important;
}

.btb-acc-login #customer_login > .u-column1,
.btb-acc-login #customer_login > .u-column2,
.btb-acc-login .u-columns.col2-set > .col-1,
.btb-acc-login .u-columns.col2-set > .col-2 {
	display: block !important;
	float: none !important;
	clear: none !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.btb-acc-login #customer_login > div > .btb-acc-logincard { height: 100%; }

@media (max-width: 760px) {
	.btb-acc-login #customer_login,
	.btb-acc-login .u-columns.col2-set {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

/* Tilbage-link på ordresiden */

.btb-acc-back {
	display: inline-block;
	font-size: .84rem;
	font-weight: 500;
	color: var(--btb-steel) !important;
	text-decoration: none !important;
	margin-bottom: 6px;
}

.btb-acc-back:hover { color: var(--btb-ink) !important; }

/* ---------- Adressebokse ---------- */

.btb-account .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.btb-account .woocommerce-Address {
	background: var(--btb-paper);
	border: 1px solid var(--btb-line);
	border-radius: 14px;
	padding: 20px;
	width: auto !important;
	max-width: none !important;
	float: none !important;
}

.btb-account .woocommerce-Address address { font-style: normal; color: var(--btb-muted); }

/* =========================================================================
   Statustidslinje: Købt → Indleveret → Gennemført
   (vises på Min konto → Vis ordre og på "Tak for din ordre")
   ========================================================================= */

.btb-timeline {
	font-family: "Inter", system-ui, sans-serif;
	background: var(--btb-white);
	border: 1px solid var(--btb-line);
	border-radius: 18px;
	padding: clamp(20px, 3vw, 30px);
	margin: 0 0 28px;
	box-shadow: 0 22px 44px -34px rgba(20, 33, 43, .3);
}

.btb-timeline-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-bottom: 22px;
}

.btb-timeline-head h2 {
	font-family: "Satoshi", "Inter", sans-serif;
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: -.01em;
	margin: 0;
	color: var(--btb-ink);
}

.btb-timeline-head .pkg { font-size: .84rem; color: var(--btb-muted); margin: 0; }

.btb-tl {
	display: flex;
	align-items: flex-start;
}

.btb-tl-step {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
}

.btb-tl-step .dot {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	font-family: "Satoshi", "Inter", sans-serif;
	font-weight: 700;
	font-size: .86rem;
	background: var(--btb-paper);
	border: 2px solid var(--btb-line);
	color: var(--btb-muted);
	position: relative;
	transition: background .3s, border-color .3s, color .3s;
}

.btb-tl-step .dot svg { width: 17px; height: 17px; }

.btb-tl-step.is-done .dot {
	background: var(--btb-steel);
	border-color: var(--btb-steel);
	color: #fff;
}

.btb-tl-step.is-current .dot {
	border-color: var(--btb-steel);
	color: var(--btb-steel);
	background: #fff;
	animation: btbPulse 2.4s var(--btb-ease) infinite;
}

@keyframes btbPulse {
	0% { box-shadow: 0 0 0 0 rgba(48, 86, 104, .35); }
	60% { box-shadow: 0 0 0 12px rgba(48, 86, 104, 0); }
	100% { box-shadow: 0 0 0 0 rgba(48, 86, 104, 0); }
}

.btb-tl-step .t {
	font-family: "Satoshi", "Inter", sans-serif;
	font-weight: 700;
	font-size: .95rem;
	color: var(--btb-ink);
}

.btb-tl-step.is-todo .t { color: var(--btb-muted); }

.btb-tl-step .d {
	font-size: .76rem;
	color: var(--btb-muted);
	max-width: 20ch;
	line-height: 1.45;
}

.btb-tl-step .dt {
	font-size: .72rem;
	font-weight: 600;
	color: var(--btb-steel);
	background: var(--btb-mist);
	border-radius: 100px;
	padding: 2px 10px;
}

.btb-tl-bar {
	flex: 1;
	max-width: 110px;
	height: 2px;
	background: var(--btb-line);
	margin-top: 18px;
	border-radius: 2px;
	position: relative;
	overflow: hidden;
}

.btb-tl-bar.is-done::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--btb-steel);
}

.btb-timeline-cancelled {
	margin: 0;
	padding: 14px 18px;
	border-radius: 12px;
	background: #f8e9e6;
	color: #8c3a2c;
	font-size: .92rem;
}

/* ---------- Responsivt ---------- */

@media (max-width: 880px) {
	.btb-account .btb-acc-grid { grid-template-columns: 1fr; }
	.btb-account .woocommerce-MyAccount-navigation { position: static; }
	.btb-account .woocommerce-MyAccount-navigation ul {
		flex-direction: row;
		flex-wrap: wrap;
	}
	.btb-account .woocommerce-MyAccount-navigation a { padding: 9px 14px; font-size: .86rem; }
	.btb-account .woocommerce-Addresses { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	/* Tidslinjen bliver lodret på mobil */
	.btb-tl { flex-direction: column; align-items: stretch; gap: 0; }
	.btb-tl-step {
		flex-direction: row;
		text-align: left;
		align-items: flex-start;
		gap: 14px;
	}
	.btb-tl-step .txt { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; padding-bottom: 4px; }
	.btb-tl-step .d { max-width: none; }
	.btb-tl-bar {
		width: 2px;
		height: 26px;
		max-width: none;
		flex: none;
		margin: 4px 0 4px 18px;
	}

	/* Ordretabel som kort på mobil */
	.btb-account table.shop_table_responsive thead { display: none; }
	.btb-account table.shop_table_responsive tbody tr {
		display: block;
		border: 1px solid var(--btb-line);
		border-radius: 14px;
		padding: 8px 14px;
		margin-bottom: 12px;
	}
	.btb-account table.shop_table_responsive tbody th,
	.btb-account table.shop_table_responsive tbody td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		text-align: right;
		border-bottom: 1px solid var(--btb-paper);
		padding: 9px 0;
	}
	.btb-account table.shop_table_responsive tbody td:last-child { border-bottom: none; }
	.btb-account table.shop_table_responsive tbody td::before,
	.btb-account table.shop_table_responsive tbody th::before {
		content: attr(data-title);
		font-size: .68rem;
		letter-spacing: .1em;
		text-transform: uppercase;
		color: var(--btb-muted);
		font-weight: 500;
		text-align: left;
	}
	.btb-account table.shop_table_responsive tbody tr:hover td,
	.btb-account table.shop_table_responsive tbody tr:hover th { background: transparent; }
}
