/**
 * Kundenportal Styles – Clean Minimal (shadcn-inspired)
 *
 * BEM-Block: achtbit-portal
 * max-width: 1400px, helle Sidebar, subtile Borders, moderne Typografie.
 *
 * @package Achtbit\Bookings
 */

/* ── Hide theme header on portal pages ────────────── */
body:has(.achtbit-portal) > header,
body:has(.achtbit-portal-login) > header {
	display: none;
}

/* ── Portal Login ──────────────────────────────────── */

.achtbit-portal-login {
	max-width: 480px;
	margin: 150px auto 60px;
	padding: 0 1rem;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.achtbit-portal-login__card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	border: 1px solid #e5e7eb;
	padding: 2rem;
}

.achtbit-portal-login__title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #18181b;
	margin: 0 0 0.25rem;
	letter-spacing: -0.025em;
}

.achtbit-portal-login__subtitle {
	font-size: 0.9rem;
	color: #71717a;
	margin: 0 0 1.5rem;
}

.achtbit-portal-login__tabs {
	display: flex;
	gap: 0;
	margin-bottom: 1.5rem;
	border-bottom: 2px solid #e5e7eb;
}

.achtbit-portal-login__tab {
	flex: 1;
	padding: 0.75rem 1rem;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	font-size: 0.95rem;
	font-weight: 600;
	color: #71717a;
	cursor: pointer;
	transition: color 0.15s, border-color 0.15s;
}

.achtbit-portal-login__tab:hover {
	color: #18181b;
}

.achtbit-portal-login__tab--active {
	color: #18181b;
	border-bottom-color: #18181b;
}

.achtbit-portal-login__error {
	padding: 0.75rem 1rem;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	color: #991b1b;
	font-size: 0.875rem;
	margin-bottom: 1rem;
}

.achtbit-portal-login__field {
	margin-bottom: 1rem;
}

.achtbit-portal-login__field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.achtbit-portal-login__field label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: #3f3f46;
	margin-bottom: 0.375rem;
}

.achtbit-portal-login__input {
	width: 100%;
	padding: 0.625rem 0.75rem;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-size: 0.95rem;
	color: #18181b;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
	box-sizing: border-box;
}

.achtbit-portal-login__input:focus {
	outline: none;
	border-color: #18181b;
	box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.08);
}

.achtbit-portal-login__hint {
	display: block;
	font-size: 0.8rem;
	color: #a1a1aa;
	margin-top: 0.25rem;
}

.achtbit-portal-login__btn {
	display: block;
	width: 100%;
	padding: 0.75rem;
	background: #1d71b8;
	color: #fff;
	border: 2px solid #1d71b8;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-top: 0.5rem;
	box-sizing: border-box;
}

.achtbit-portal-login__btn:hover {
	background: #36a9e1;
	border-color: #36a9e1;
	transform: translateY(-2px);
}

.achtbit-portal-login__btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Theme overrides for portal login */
.content .achtbit-portal-login h2 {
	margin-top: 0;
}

.content .achtbit-portal-login a {
	color: #18181b;
}

@media (max-width: 480px) {
	.achtbit-portal-login__field-row {
		grid-template-columns: 1fr;
	}
}

/* ── Layout ─────────────────────────────────────── */

.achtbit-portal {
	max-width: 100%;
	margin: 90px 0 0;
	display: flex;
	min-height: calc(100vh - 357px);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: #18181b;
	background: transparent;
	border: none;
	border-radius: 0;
	overflow: hidden;
}

/* Hide theme sponsors section on portal page */
.sponsors-section {
	display: none !important;
}

/* Remove all gaps between portal and navbar/footer */
body:has(.achtbit-portal) .wrapper {
	margin: 0 !important;
	padding: 0 !important;
}

body:has(.achtbit-portal) .content-wrapper {
	margin: 0 !important;
	padding: 0 !important;
}

body:has(.achtbit-portal) .content-wrapper article {
	margin: 0 !important;
	padding: 0 !important;
}

body:has(.achtbit-portal) .content {
	margin: 0 !important;
	padding: 0 !important;
}

/* Ensure sticky positioning works on mobile – no overflow clipping on ancestors */
@media (max-width: 768px) {
	body:has(.achtbit-portal),
	body:has(.achtbit-portal) .wrapper,
	body:has(.achtbit-portal) .content-wrapper,
	body:has(.achtbit-portal) .content-wrapper article,
	body:has(.achtbit-portal) .content {
		overflow: visible !important;
	}
}

body:has(.achtbit-portal) .content > p,
body:has(.achtbit-portal) .content > strong {
	display: none !important;
}

/*
 * Neutralise inline wrappers (e.g. <strong>, <em>, <span>) that the
 * WordPress editor may inject around shortcode output. `display: contents`
 * makes the element invisible to the flex layout so sidebar + main
 * remain direct flex children of .achtbit-portal.
 */
.achtbit-portal > :not(nav):not(main):not(.achtbit-portal__sidebar):not(.achtbit-portal__content) {
	display: contents;
}

/* ── Sidebar ────────────────────────────────────── */

.achtbit-portal__sidebar {
	width: 40%;
	flex-shrink: 0;
	align-self: stretch;
	background: #36a9e1;
	border-right: none;
	padding: 80px 0 24px;
	display: flex;
	flex-direction: column;
}

.achtbit-portal__sidebar-header {
	padding: 0 24px 24px max(24px, calc(100% - 340px));
	border-bottom: none;
	margin-bottom: 8px;
}

.achtbit-portal__sidebar-name {
	font-weight: 600;
	font-size: 20px;
	color: #fff;
}

.achtbit-portal__sidebar-email {
	font-size: 15px;
	font-weight: 400;
	color: #fff;
	margin-top: 2px;
	word-break: break-all;
	padding-bottom: 24px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	display: inline-block;
}

/* Legacy title – hidden in new design, kept for backwards compat */
.achtbit-portal__sidebar-title {
	display: none;
}

.achtbit-portal__sidebar-nav {
	padding: 8px 12px;
	flex: 1;
	position: relative;
}

.achtbit-portal__nav-indicator {
	position: absolute;
	width: 3px;
	height: 18px;
	background: #fff;
	border-radius: 2px;
	transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
}

.achtbit-portal__nav-item {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 400 !important;
	padding: 10px 12px 10px max(24px, calc(100% - 345px));
	border-radius: 8px;
	font-size: 16px;
	font-weight: 450;
	color: #fff !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 0.1s, color 0.1s;
	margin-bottom: 2px;
	border: none;
	background: none;
	width: 100%;
	text-align: left;
}

.achtbit-portal__nav-item:hover,
.content .achtbit-portal .achtbit-portal__nav-item:hover {
	color: #fff;
}

.achtbit-portal__nav-item--active,
.content .achtbit-portal .achtbit-portal__nav-item--active {
	color: #fff !important;
	font-weight: 600 !important;
	position: relative;
}

.achtbit-portal__nav-item::before {
	content: '';
	width: 3px;
	height: 18px;
	background: transparent;
	border-radius: 2px;
	flex-shrink: 0;
}

.achtbit-portal__nav-item--disabled {
	color: rgba(255, 255, 255, 0.4);
	cursor: not-allowed;
}

.achtbit-portal__nav-item--disabled:hover {
	background: transparent;
	color: rgba(255, 255, 255, 0.4);
}

.achtbit-portal__nav-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	fill: currentColor;
}

.achtbit-portal__sidebar-footer {
	padding: 8px 12px;
	margin-top: auto;
}

.achtbit-portal__nav-item--logout {
	color: rgba(255, 255, 255, 0.7);
}

.achtbit-portal__nav-item--logout:hover {
	background: none;
	color: #fff;
}

/* Override theme .content styles inside portal */
.content .achtbit-portal h1,
.content .achtbit-portal h2,
.content .achtbit-portal h3 {
	margin-top: 0;
}

.content .achtbit-portal a {
	color: inherit;
}

.content .achtbit-portal .achtbit-portal__sidebar a {
	color: #fff !important;
}

.content .achtbit-portal a.achtbit-portal__btn-primary,
.content .achtbit-portal a.achtbit-portal__btn-primary:hover {
	color: #fff;
}

.content .achtbit-portal a.achtbit-portal__btn-secondary {
	color: #1d71b8;
}

.content .achtbit-portal a.achtbit-portal__btn-secondary:hover {
	color: #fff;
}

/* ── Content ────────────────────────────────────── */

.achtbit-portal__content {
	flex: 1;
	padding: 80px 48px 32px;
	min-width: 0;
	background: #fff;
	display: flex;
	flex-direction: column;
	position: relative;
	z-index: 1;
}

.achtbit-portal__view {
	max-width: 800px;
}

.achtbit-portal__view[hidden] {
	display: none;
}

.achtbit-portal__view[data-view-content="bookings"]:not([hidden]) {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.achtbit-portal__heading {
	font-size: 24px;
	font-weight: 700;
	color: #18181b;
	margin: 0;
	outline: none;
	letter-spacing: -0.025em;
}

.achtbit-portal__subheading {
	color: #71717a;
	font-size: 14px;
	margin: 0 0 28px;
}

/* ── Loading & Error ────────────────────────────── */

.achtbit-portal__loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	color: #71717a;
}

.achtbit-portal__loading[hidden] {
	display: none;
}

.achtbit-portal__loading-spinner {
	width: 32px;
	height: 32px;
	border: 3px solid #e5e7eb;
	border-top-color: #18181b;
	border-radius: 50%;
	animation: achtbit-portal-spin 0.8s linear infinite;
	margin-bottom: 12px;
}

@keyframes achtbit-portal-spin {
	to { transform: rotate(360deg); }
}

.achtbit-portal__error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 12px;
	padding: 16px 20px;
	color: #991b1b;
}

.achtbit-portal__error[hidden] {
	display: none;
}

.achtbit-portal__error a {
	color: #991b1b;
	font-weight: 500;
}

/* ── Dashboard ──────────────────────────────────── */

.achtbit-portal__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	margin-bottom: 32px;
}

.achtbit-portal__stat-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px;
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.achtbit-portal__stat-card:hover {
	border-color: #d4d4d8;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.achtbit-portal__stat-number {
	display: block;
	font-size: 32px;
	font-weight: 700;
	letter-spacing: -0.025em;
	color: #18181b;
}

.achtbit-portal__stat-number--primary { color: #18181b; }
.achtbit-portal__stat-number--success { color: #18181b; }

.achtbit-portal__stat-label {
	font-size: 13px;
	color: #71717a;
	font-weight: 500;
	margin-top: 4px;
}

.achtbit-portal__quick-actions {
	display: flex;
	gap: 12px;
	margin-top: 24px;
}

.achtbit-portal__empty {
	text-align: center;
	padding: 48px 24px;
	color: #71717a;
}

.achtbit-portal__empty[hidden] {
	display: none;
}

/* ── Booking Card (next + list) ─────────────────── */

.achtbit-portal__next-label {
	font-size: 13px;
	font-weight: 600;
	color: #71717a;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 12px;
}

.achtbit-portal__next-booking-label {
	font-size: 16px;
	font-weight: 600;
	color: #18181b;
	margin-top: 28px;
	margin-bottom: 12px;
}

.achtbit-portal__booking-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px 24px;
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s;
	margin-bottom: 12px;
}

.achtbit-portal__booking-card:hover {
	border-color: #d4d4d8;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}


.achtbit-portal__booking-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.achtbit-portal__booking-card-title {
	font-weight: 600;
	font-size: 15px;
	color: #18181b;
}

.achtbit-portal__booking-card-meta {
	font-size: 13px;
	color: #71717a;
	margin-top: 3px;
}

.achtbit-portal__booking-card-separator {
	margin: 0 6px;
	color: #d4d4d8;
}

/* ── Status Badges ──────────────────────────────── */

.achtbit-portal__badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
}

.achtbit-portal__badge--confirmed { background: #f0fdf4; color: #16a34a; }
.achtbit-portal__badge--pending   { background: #fffbeb; color: #d97706; }
.achtbit-portal__badge--cancelled { background: #fef2f2; color: #dc2626; }
.achtbit-portal__badge--waitlist  { background: #eff6ff; color: #2563eb; }

.achtbit-portal__badge--lg {
	padding: 5px 14px;
	font-size: 13px;
}

/* ── Filter Bar ─────────────────────────────────── */

.achtbit-portal__filter-bar {
	display: flex;
	gap: 4px;
	margin-bottom: 16px;
}

.achtbit-portal__filter-btn {
	padding: 8px 18px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	cursor: pointer;
	border: 2px solid #1d71b8;
	background: #fff;
	color: #1d71b8;
	transition: all 0.3s ease;
}

.achtbit-portal__filter-btn:hover,
.content .achtbit-portal .achtbit-portal__filter-btn:hover {
	background: #1d71b8 !important;
	color: #fff !important;
	border-color: #1d71b8 !important;
	transform: translateY(-2px);
}

.achtbit-portal__filter-btn--active,
.content .achtbit-portal .achtbit-portal__filter-btn--active {
	background: #1d71b8 !important;
	color: #fff !important;
	border-color: #1d71b8 !important;
}

.achtbit-portal__filter-btn--active:hover,
.content .achtbit-portal .achtbit-portal__filter-btn--active:hover {
	background: #36a9e1 !important;
	border-color: #36a9e1 !important;
}

/* ── Booking Detail ─────────────────────────────── */

.achtbit-portal__back-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #71717a;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	margin-bottom: 20px;
	transition: color 0.15s;
}

.achtbit-portal__back-link:hover {
	color: #18181b;
}

.achtbit-portal__detail-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.achtbit-portal__detail-title {
	font-size: 20px;
	font-weight: 700;
	color: #18181b;
	margin: 0;
	letter-spacing: -0.025em;
}

.achtbit-portal__detail-ref {
	font-size: 13px;
	color: #71717a;
	margin-top: 2px;
}

.achtbit-portal__detail-info {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px 24px;
	margin-bottom: 20px;
}

.achtbit-portal__detail-info-item {
	display: flex;
	gap: 8px;
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 8px;
}

.achtbit-portal__detail-info-item:last-child {
	margin-bottom: 0;
}

.achtbit-portal__detail-info-label {
	color: #71717a;
	font-weight: 500;
	min-width: 120px;
	flex-shrink: 0;
}

.achtbit-portal__detail-info-label::after {
	content: ':';
}

.achtbit-portal__detail-info-value {
	color: #18181b;
}

.achtbit-portal__detail-info-item--full {
	flex-direction: column;
	gap: 6px;
}

.achtbit-portal__detail-info-item--full .achtbit-portal__detail-info-label {
	min-width: 0;
}

.achtbit-portal__detail-series-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.achtbit-portal__detail-series-list li {
	color: #18181b;
}

.achtbit-portal__detail-row {
	font-size: 14px;
	margin-bottom: 8px;
}

.achtbit-portal__detail-row:last-child {
	margin-bottom: 0;
}

.achtbit-portal__detail-label {
	display: inline-block;
	width: 80px;
	color: #71717a;
	font-weight: 500;
}

.achtbit-portal__detail-value {
	color: #18181b;
}

.achtbit-portal__detail-participants-title {
	font-size: 14px;
	font-weight: 600;
	color: #18181b;
	margin-bottom: 12px;
}

.achtbit-portal__participant-cards {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.achtbit-portal__participant-card {
	flex: 1;
	min-width: 200px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 16px;
}

.achtbit-portal__participant-name {
	font-weight: 600;
	font-size: 14px;
	color: #18181b;
}

.achtbit-portal__participant-primary {
	color: #3b82f6;
	font-size: 12px;
}

.achtbit-portal__participant-dob {
	font-size: 13px;
	color: #71717a;
	margin-top: 2px;
}

.achtbit-portal__detail-actions {
	border-top: 1px solid #e5e7eb;
	padding-top: 20px;
	display: flex;
	gap: 12px;
	align-items: center;
}

.achtbit-portal__cancel-hint {
	font-size: 13px;
	color: #71717a;
}

/* ── Buttons ────────────────────────────────────── */

.achtbit-portal__btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #1d71b8;
	color: #fff;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	border: 2px solid #1d71b8;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.achtbit-portal__btn-primary:hover {
	background: #36a9e1;
	border-color: #36a9e1;
	color: #fff;
	transform: translateY(-2px);
}

.achtbit-portal__btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #fff;
	color: #1d71b8;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	border: 2px solid #1d71b8;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.achtbit-portal__btn-secondary:hover {
	background: #1d71b8;
	color: #fff;
	transform: translateY(-2px);
}

.achtbit-portal__btn-danger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #dc2626;
	color: #fff;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	border: 2px solid #dc2626;
	cursor: pointer;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.achtbit-portal__btn-danger:hover {
	background: #b91c1c;
	border-color: #b91c1c;
	transform: translateY(-2px);
}

.achtbit-portal__btn-disabled {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	color: #a1a1aa;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 14px;
	border: 1px solid #e5e7eb;
	cursor: not-allowed;
}

.achtbit-portal__btn-loading {
	opacity: 0.7;
	pointer-events: none;
}

/* ── Card & Form ────────────────────────────────── */

.achtbit-portal__card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
}

.achtbit-portal__card-title {
	font-size: 16px;
	font-weight: 600;
	color: #18181b;
	margin: 0 0 20px;
	letter-spacing: -0.01em;
}

.achtbit-portal__section-title {
	font-size: 16px;
	font-weight: 600;
	color: #18181b;
	margin: 0 0 12px;
	letter-spacing: -0.01em;
}

.achtbit-portal__section-desc {
	font-size: 14px;
	color: #71717a;
	margin: 0 0 16px;
}

.achtbit-portal__form-row {
	display: flex;
	gap: 16px;
}

.achtbit-portal__form-group {
	flex: 1;
	margin-bottom: 16px;
}

.achtbit-portal__label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #3f3f46;
	margin-bottom: 6px;
}

.achtbit-portal__input {
	display: block;
	width: 100%;
	padding: 10px 12px;
	font-size: 14px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	color: #18181b;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.achtbit-portal__input:focus {
	border-color: #18181b;
	outline: none;
	box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.08);
}

.achtbit-portal__input--error {
	border-color: #dc2626;
}

.achtbit-portal__field-error {
	font-size: 13px;
	color: #dc2626;
	margin-top: 4px;
}

.achtbit-portal__form-feedback {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	margin-top: 12px;
	margin-bottom: 16px;
}

.achtbit-portal__form-feedback[hidden] {
	display: none;
}

.achtbit-portal__form-feedback--success {
	background: #f0fdf4;
	color: #16a34a;
}

.achtbit-portal__form-feedback--error {
	background: #fef2f2;
	color: #dc2626;
}

/* ── Saved Participants Grid ────────────────────── */

.achtbit-portal__participants-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.achtbit-portal__saved-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 16px;
}

.achtbit-portal__saved-card-name {
	font-weight: 600;
	font-size: 14px;
	color: #18181b;
}

.achtbit-portal__saved-card-dob {
	font-size: 13px;
	color: #71717a;
	margin-top: 2px;
}

.achtbit-portal__saved-card-actions {
	display: flex;
	gap: 12px;
	margin-top: 12px;
}

.achtbit-portal__saved-card-actions a {
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
	font-weight: 500;
}

.achtbit-portal__link-edit { color: #3b82f6; }
.achtbit-portal__link-delete { color: #dc2626; }

.achtbit-portal__add-card {
	border: 2px dashed #d4d4d8;
	border-radius: 12px;
	padding: 16px;
	text-align: center;
	cursor: pointer;
	color: #71717a;
	transition: all 0.15s;
}

.achtbit-portal__add-card:hover {
	border-color: #18181b;
	color: #18181b;
}

.achtbit-portal__add-card-plus {
	font-size: 24px;
	display: block;
	margin-bottom: 4px;
}

.achtbit-portal__limit-hint {
	grid-column: 1 / -1;
	font-size: 13px;
	color: #71717a;
	text-align: center;
	padding: 8px;
}

/* ── Cancel Form ──────────────────────────────────── */

.achtbit-portal__cancel-form {
	display: none;
	margin-top: 20px;
	padding: 24px;
	background: #fff;
	border: 1px solid #fecaca;
	border-radius: 12px;
}

.achtbit-portal__cancel-form.is-visible {
	display: block;
}

.achtbit-portal__cancel-form-title {
	font-size: 16px;
	font-weight: 600;
	color: #18181b;
	margin: 0 0 16px;
}

.achtbit-portal__cancel-form-label {
	font-size: 14px;
	font-weight: 500;
	color: #3f3f46;
	display: block;
	margin-bottom: 6px;
}

.achtbit-portal__cancel-form select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-size: 14px;
	color: #18181b;
	background: #fff;
	margin-bottom: 16px;
	appearance: auto;
}

.achtbit-portal__cancel-form select:invalid,
.achtbit-portal__cancel-form select option[value=""] {
	color: #a1a1aa;
}

.achtbit-portal__cancel-form-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.achtbit-portal__cancel-form .achtbit-portal__btn-danger {
	flex-shrink: 0;
}

.achtbit-portal__cancel-form .achtbit-portal__btn-danger:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.achtbit-portal__cancel-form-abort {
	color: #71717a;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
}

.achtbit-portal__cancel-form-abort:hover {
	color: #18181b;
}

/* ── Participant Card Separator ──────────────────── */

.achtbit-portal__detail-participant-card + .achtbit-portal__detail-participant-card {
	border-top: 1px solid #f4f4f5;
	padding-top: 12px;
	margin-top: 12px;
}

/* ── Participant Actions ──────────────────────────── */

.achtbit-portal__participant-actions {
	display: flex;
	gap: 16px;
	margin-top: 12px;
}

/* Higher specificity to override theme link styles */
.content .achtbit-portal .achtbit-portal__participant-actions a,
.achtbit-portal__participant-actions a {
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #3b82f6 !important;
	text-decoration: none !important;
	cursor: pointer;
	padding: 2px 0;
}

.content .achtbit-portal .achtbit-portal__participant-actions a:hover,
.achtbit-portal__participant-actions a:hover {
	color: #2563eb !important;
	text-decoration: underline !important;
}

.achtbit-portal__participant-actions .is-disabled {
	font-size: 13px;
	color: #a1a1aa;
	cursor: not-allowed;
}

/* ── Participant Inline Form ──────────────────────── */

.achtbit-portal__participant-form {
	padding: 20px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
}

.achtbit-portal__participant-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 20px;
}

.achtbit-portal__participant-form-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.achtbit-portal__participant-form-field--full {
	grid-column: 1 / -1;
}

.achtbit-portal__participant-form-field label {
	font-size: 14px;
	font-weight: 500;
	color: #3f3f46;
}

.achtbit-portal__participant-form-field input {
	padding: 10px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-size: 14px;
	color: #18181b;
}

.achtbit-portal__participant-form-field input:focus {
	border-color: #18181b;
	outline: none;
	box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.08);
}

.achtbit-portal__participant-form-field input.is-invalid {
	border-color: #dc2626;
}

.achtbit-portal__participant-form-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.achtbit-portal__participant-form-cancel {
	color: #71717a;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
}

.achtbit-portal__participant-form-cancel:hover {
	color: #18181b;
}

/* ── Saved Participant Card Actions ───────────────── */

.achtbit-portal__participant-card-actions {
	display: flex;
	gap: 16px;
	margin-top: 8px;
}

.content .achtbit-portal .achtbit-portal__participant-card-actions a,
.achtbit-portal__participant-card-actions a {
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #1d71b8 !important;
	text-decoration: none !important;
	cursor: pointer;
}

.content .achtbit-portal .achtbit-portal__participant-card-actions a:hover,
.achtbit-portal__participant-card-actions a:hover {
	color: #155a96 !important;
	text-decoration: underline !important;
}

/* ── Add Participant Button ───────────────────────── */

.achtbit-portal__add-participant {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	margin-bottom: 24px;
	padding: 10px 20px;
	background: #fff;
	border: 2px dashed #d4d4d8;
	border-radius: 8px;
	color: #3f3f46;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s;
}

.achtbit-portal__add-participant:hover {
	border-color: #18181b;
	color: #18181b;
}

.achtbit-portal__participant-card--add {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: #fff;
	border: 2px dashed #d4d4d8;
	border-radius: 8px;
	color: #3f3f46;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s;
}

.achtbit-portal__participant-card--add:hover {
	border-color: #18181b;
	color: #18181b;
}

#achtbit-portal-bookings-list {
	flex: 1;
}

/* ── Pagination ───────────────────────────────────── */

.achtbit-portal__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin-top: auto;
	padding-top: 24px;
}

.achtbit-portal__pagination-btn {
	min-width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	color: #3f3f46;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s;
}

.achtbit-portal__pagination-btn:hover:not(:disabled) {
	border-color: #1d71b8;
	color: #1d71b8;
}

.achtbit-portal__pagination-btn--active {
	background: #1d71b8;
	border-color: #1d71b8;
	color: #fff;
}

.achtbit-portal__pagination-btn--active:hover {
	background: #36a9e1;
	border-color: #36a9e1;
	color: #fff;
}

.achtbit-portal__pagination-btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

/* ── Profile Select Dropdown ──────────────────────── */

.achtbit-portal__profile-select {
	margin-bottom: 16px;
}

.achtbit-portal__profile-select select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-size: 14px;
	color: #18181b;
	background: #fff;
}

/* ── Edit Hint ────────────────────────────────────── */

.achtbit-portal__edit-hint {
	font-size: 13px;
	color: #71717a;
	font-style: italic;
	margin-top: 8px;
}

/* ── Rebook Button ────────────────────────────────── */

a.achtbit-portal__btn-primary {
	display: inline-flex;
	text-decoration: none;
}

/* ── Settings: Toggle Switch ──────────────────────── */

.achtbit-portal__toggle {
	display: flex;
	align-items: center;
	gap: 14px;
	cursor: pointer;
	font-size: 14px;
	color: #18181b;
}

.achtbit-portal__toggle input[type="checkbox"] {
	display: none;
}

.achtbit-portal__toggle-slider {
	position: relative;
	width: 44px;
	height: 24px;
	background: #d4d4d8;
	border-radius: 12px;
	flex-shrink: 0;
	transition: background-color 0.2s;
}

.achtbit-portal__toggle-slider::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s;
	box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.achtbit-portal__toggle input:checked + .achtbit-portal__toggle-slider {
	background: #18181b;
}

.achtbit-portal__toggle input:checked + .achtbit-portal__toggle-slider::after {
	transform: translateX(20px);
}

.achtbit-portal__toggle-label {
	line-height: 1.4;
}

/* ── Settings: Danger Card ───────────────────────── */

.achtbit-portal__card--danger {
	border-color: #fecaca;
}

.achtbit-portal__card--danger .achtbit-portal__card-title {
	color: #dc2626;
}

.achtbit-portal__delete-confirm {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
}

.achtbit-portal__delete-confirm[hidden] {
	display: none;
}

.achtbit-portal__delete-confirm-text {
	font-size: 14px;
	color: #dc2626;
	font-weight: 500;
	margin: 0 0 16px;
}

/* ── Tablet / Small Desktop ─────────────────────── */

@media (max-width: 999px) and (min-width: 769px) {
	.achtbit-portal__sidebar-header {
		padding-left: 54px !important;
	}

	.achtbit-portal__nav-item {
		padding-left: 24px !important;
	}
}

/* ── Mobile ─────────────────────────────────────── */

@media (max-width: 768px) {
	.achtbit-portal {
		flex-direction: column;
		margin: 0;
		border-radius: 0;
		overflow: visible;
	}

	.achtbit-portal__sidebar {
		width: 100vw;
		margin-left: calc(-50vw + 50%);
		display: flex;
		flex-direction: row;
		overflow-x: auto;
		border-right: none;
		border-bottom: none;
		padding: 0;
		height: 52px;
		align-items: stretch;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		position: sticky;
		top: var(--achtbit-navbar-height, 0px);
		z-index: 100;
	}

	.achtbit-portal__sidebar::-webkit-scrollbar {
		display: none;
	}

	.achtbit-portal__sidebar::after {
		content: '';
		position: sticky;
		right: 0;
		top: 0;
		height: 100%;
		width: 24px;
		pointer-events: none;
		background: linear-gradient(to left, #36a9e1 0%, transparent 100%);
		flex-shrink: 0;
	}

	.achtbit-portal__sidebar-header {
		display: none;
	}

	.achtbit-portal__sidebar-title {
		display: none;
	}

	.achtbit-portal__sidebar-nav {
		display: flex;
		padding: 0;
		flex: none;
	}

	.achtbit-portal__sidebar-footer {
		display: flex;
		padding: 0;
		border: none;
		margin: 0;
	}

	.achtbit-portal__nav-item {
		white-space: nowrap;
		border-bottom: 3px solid transparent;
		border-radius: 0;
		padding: 14px 16px;
		display: flex;
		align-items: center;
		font-size: 13px;
		gap: 8px;
		margin-bottom: 0;
	}

	.achtbit-portal__nav-item::before {
		display: none;
	}

	.achtbit-portal__nav-indicator {
		display: none;
	}

	.achtbit-portal__nav-item--active {
		background: rgba(255, 255, 255, 0.2);
		border-bottom-color: #fff;
	}

	.achtbit-portal__nav-item--disabled {
		display: none;
	}

	.achtbit-portal__nav-icon {
		width: 16px;
		height: 16px;
	}

	.achtbit-portal__content {
		padding: 20px 16px;
		border-radius: 0;
	}

	.achtbit-portal__heading {
		font-size: 20px;
	}

	.achtbit-portal__stats {
		grid-template-columns: 1fr;
	}

	.achtbit-portal__form-row {
		flex-direction: column;
		gap: 0;
	}

	.achtbit-portal__participants-grid {
		grid-template-columns: 1fr;
	}

	.achtbit-portal__participant-cards {
		flex-direction: column;
	}

	.achtbit-portal__detail-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.achtbit-portal__detail-actions {
		flex-direction: column;
		align-items: flex-start;
	}

	.achtbit-portal__quick-actions {
		flex-direction: column;
	}

	.achtbit-portal__quick-actions .achtbit-portal__btn-primary,
	.achtbit-portal__quick-actions .achtbit-portal__btn-secondary {
		text-align: center;
		justify-content: center;
	}

	.achtbit-portal__participant-form-grid {
		grid-template-columns: 1fr;
	}

	.achtbit-portal__cancel-form-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.achtbit-portal__cancel-form-abort {
		text-align: center;
	}
}
