/* Belegungsplan – Frontend Wizard */

.bp-wrap {
	/* MBG Halver – warmes Gold/Braun */
	--bp-accent: #9a7848;
	--bp-accent-dark: #7c6038;
	--bp-accent-light: #c4a574;
	--bp-text: #3a3228;
	--bp-muted: #756a5c;
	--bp-border: #e0d6c8;
	--bp-bg-card: #ffffff;
	--bp-surface: #faf7f2;
	--bp-surface-alt: #f3ebe0;
	--bp-surface-bd: #ddd0bd;
	--bp-radius: 12px;
	--bp-focus-ring: rgba(154, 120, 72, 0.22);

	--bp-free-bg: #e7f6ea;
	--bp-free-bd: #6fbf7a;
	--bp-free-tx: #1f6b2d;
	--bp-pending-bg: #fff3cc;
	--bp-pending-bd: #e0b000;
	--bp-pending-tx: #7a5a00;
	--bp-partial-bg: #ffe2b8;
	--bp-partial-bd: #e08a2a;
	--bp-partial-tx: #8a4500;
	--bp-confirmed-bg: #f5cfc9;
	--bp-confirmed-bd: #c75a52;
	--bp-confirmed-tx: #8b2a24;
	--bp-blocked-bg: #e4e2df;
	--bp-blocked-bd: #9e9890;
	--bp-blocked-tx: #5c564e;

	--bp-success-bg: #f4f0e8;
	--bp-success-bd: #c9baa4;
	--bp-success-tx: #5c4a2e;

	max-width: 940px;
	width: 100%;
	margin: 0 auto 2.5rem;
	padding-inline: 1rem;
	font-family: inherit;
	color: var(--bp-text);
	line-height: 1.55;
	overflow-x: clip;
}

.bp-wrap *,
.bp-wrap *::before,
.bp-wrap *::after {
	box-sizing: border-box;
}

.bp-wrap [hidden] {
	display: none !important;
}

.bp-action-page {
	margin: 0;
	background: var(--bp-surface-alt, #f3ebe0);
}

.bp-action-shell {
	max-width: 720px;
	margin: 2rem auto;
	padding: 0 1rem 2rem;
}

.bp-action-panel {
	background: var(--bp-bg-card, #fff);
	border: 1px solid var(--bp-border, #e0d6c8);
	border-radius: var(--bp-radius, 12px);
	padding: 1.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bp-action-panel .bp-card-title {
	margin: 0 0 1rem;
	font-size: 1.35rem;
	color: var(--bp-text, #3a3228);
}

/* Wizard layout – theme heading reset + klare Hierarchie */
.bp-wrap h1.bp-page-title,
.bp-wrap h2.bp-panel-title {
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	overflow-wrap: break-word;
}

.bp-page-header {
	margin-bottom: 1.25rem;
}

.bp-wrap h1.bp-page-title {
	margin: 0;
	font-size: clamp(1.35rem, 3.2vw, 1.55rem);
	font-weight: 700;
	line-height: 1.25;
	color: var(--bp-text);
}

.bp-wrap h2.bp-panel-title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.35rem, 3.2vw, 1.55rem);
	font-weight: 700;
	line-height: 1.25;
	color: var(--bp-text);
}

.bp-wizard {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
	width: 100%;
	min-width: 0;
}

/* Sidebar */
.bp-sidebar {
	background: var(--bp-bg-card);
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius);
	padding: 1.25rem 1rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	position: sticky;
	top: 1.5rem;
}

.bp-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: none;
}

.bp-step-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.65rem 0.5rem;
	border-radius: 8px;
	cursor: pointer;
	position: relative;
	transition: background 0.15s;
}

.bp-step-item:hover {
	background: var(--bp-surface);
}

/* connector line */
.bp-step-item:not(:last-child)::before {
	content: "";
	position: absolute;
	left: calc(0.5rem + 0.95rem);
	top: 2.5rem;
	bottom: -0.3rem;
	width: 2px;
	background: var(--bp-border);
}

.bp-step-item.bp-done:not(:last-child)::before {
	background: var(--bp-accent);
}

.bp-step-marker {
	flex: 0 0 auto;
	width: 1.9rem;
	height: 1.9rem;
	border-radius: 50%;
	background: var(--bp-surface-alt);
	color: var(--bp-muted);
	border: 2px solid var(--bp-border);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.9rem;
	z-index: 1;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.bp-step-text {
	display: flex;
	flex-direction: column;
	padding-top: 0.05rem;
}

.bp-step-label {
	font-weight: 600;
	font-size: 0.925rem;
	line-height: 1.2;
}

.bp-step-desc {
	font-size: 0.8rem;
	color: var(--bp-muted);
}

.bp-sidebar-link {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	width: 100%;
	margin-top: 0.75rem;
	padding: 0.65rem 0.5rem;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background 0.15s;
}

.bp-sidebar-link:hover {
	background: var(--bp-surface);
}

.bp-sidebar-link.bp-active {
	background: var(--bp-surface-alt);
}

.bp-sidebar-link-marker {
	flex: 0 0 auto;
	width: 1.9rem;
	height: 1.9rem;
	border-radius: 50%;
	background: var(--bp-surface-alt);
	color: var(--bp-muted);
	border: 2px solid var(--bp-border);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.95rem;
	line-height: 1;
}

.bp-sidebar-link.bp-active .bp-sidebar-link-marker {
	background: var(--bp-accent);
	border-color: var(--bp-accent);
	color: #fff;
}

.bp-sidebar-link-text {
	display: flex;
	flex-direction: column;
	padding-top: 0.05rem;
}

.bp-sidebar-link-label {
	font-weight: 600;
	font-size: 0.925rem;
	line-height: 1.2;
}

.bp-sidebar-link-desc {
	font-size: 0.8rem;
	color: var(--bp-muted);
	margin-top: 0.1rem;
}

.bp-directions-view .bp-directions {
	margin-top: 0;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.bp-directions-view .bp-panel-title {
	margin-top: 0;
}

.bp-step-item.bp-active .bp-step-marker {
	background: var(--bp-accent);
	border-color: var(--bp-accent);
	color: #fff;
}

.bp-step-item.bp-active .bp-step-label {
	color: var(--bp-accent-dark);
}

.bp-step-item.bp-done .bp-step-marker {
	background: var(--bp-accent);
	border-color: var(--bp-accent);
	color: #fff;
}

.bp-step-item.bp-done .bp-step-marker::after {
	content: "\2713";
	font-size: 1rem;
}

.bp-step-item.bp-done .bp-step-marker {
	font-size: 0;
}

/* Content */
.bp-content {
	background: var(--bp-bg-card);
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius);
	padding: 1.75rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	min-width: 0;
}

.bp-panel-lead {
	margin: 0 0 1.1rem;
	color: var(--bp-muted);
	font-size: 0.92rem;
}

/* Calendar */
.bp-calendar-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
}

.bp-calendar-title {
	margin: 0;
	flex: 1;
	text-align: center;
	font-size: 0.95rem;
	font-weight: 600;
	text-transform: capitalize;
}

.bp-nav-btn {
	flex: 0 0 auto;
	width: 2rem;
	height: 2rem;
	border: 1px solid var(--bp-border);
	background: #fff;
	color: var(--bp-text);
	border-radius: 6px;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, border-color 0.15s;
}

.bp-nav-btn:hover {
	background: #f3f4f6;
	border-color: #c7c7c7;
}

.bp-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 6px;
	width: 100%;
	max-width: 100%;
	transition: opacity 0.15s;
}

.bp-calendar-grid.bp-loading {
	opacity: 0.45;
	pointer-events: none;
}

.bp-cal-head {
	text-align: center;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: var(--bp-muted);
	padding: 0.3rem 0;
	text-transform: uppercase;
	min-width: 0;
}

.bp-cal-empty {
	min-height: 3.4rem;
	min-width: 0;
}

/* Day cells with status text */
.bp-cal-day {
	appearance: none;
	-webkit-appearance: none;
	min-height: 3.75rem;
	min-width: 0;
	margin: 0;
	padding: 0.3rem 0.15rem;
	border: 1px solid var(--bp-border);
	border-radius: 9px;
	background: #fff;
	color: var(--bp-text);
	font: inherit;
	text-decoration: none;
	text-shadow: none;
	box-shadow: none;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	transition: transform 0.05s, box-shadow 0.12s, filter 0.12s;
}

.bp-cal-num {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	color: inherit;
}

.bp-cal-status {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: none !important;
	letter-spacing: 0;
	line-height: 1.15;
	max-width: 100%;
	text-align: center;
	white-space: nowrap;
	overflow: visible;
	text-overflow: clip;
	color: inherit;
}

.bp-cal-status-stack {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	line-height: 1.1;
	white-space: normal;
	overflow: visible;
	text-overflow: unset;
}

.bp-cal-status-main {
	display: block;
	font-size: 0.62rem;
	font-weight: 700;
}

.bp-cal-status-sub {
	display: block;
	font-size: 0.62rem;
	font-weight: 700;
	opacity: 1;
}

/* status colors – kräftig, Theme-sicher */
.bp-wrap .bp-cal-day.bp-day-free {
	background: #c8efd0 !important;
	border: 2px solid #2f9e45 !important;
	color: #145224 !important;
}

.bp-wrap .bp-cal-day.bp-day-pending {
	background: repeating-linear-gradient(
		-45deg,
		#ffe9a8,
		#ffe9a8 5px,
		#fff6d0 5px,
		#fff6d0 10px
	) !important;
	border: 2px solid #d4a017 !important;
	color: #6b4e00 !important;
}

.bp-wrap .bp-cal-day.bp-day-partial {
	background: #ffd09a !important;
	border: 2px solid #d97706 !important;
	color: #7a3500 !important;
	box-shadow: none;
}

.bp-wrap .bp-cal-day.bp-day-confirmed {
	background: #f2b4ad !important;
	border: 2px solid #c0392b !important;
	color: #6e1a14 !important;
}

.bp-wrap .bp-cal-day.bp-day-blocked {
	background: #bdbdbd !important;
	border: 2px solid #757575 !important;
	color: #333333 !important;
}

.bp-cal-day.bp-selected .bp-cal-status,
.bp-cal-day.bp-in-range .bp-cal-status {
	display: none;
}

.bp-cal-day:hover:not(:disabled) {
	box-shadow: 0 0 0 2px var(--bp-accent);
	z-index: 1;
}

.bp-cal-day:active:not(:disabled) {
	transform: scale(0.96);
}

.bp-cal-day:focus-visible {
	outline: 3px solid var(--bp-accent);
	outline-offset: 1px;
}

.bp-cal-day.bp-today {
	box-shadow: inset 0 0 0 2px var(--bp-accent);
}

.bp-cal-day.bp-disabled {
	cursor: not-allowed;
	filter: none;
	opacity: 0.72;
}

.bp-day-free.bp-disabled {
	background: #f0f0f0;
	border-color: #ddd;
	color: #aaa;
	opacity: 1;
}

.bp-day-partial.bp-disabled {
	opacity: 0.8;
}

/* selection */
.bp-wrap .bp-cal-day.bp-in-range {
	background: #f3ebe0 !important;
	border: 2px solid #c4a574 !important;
	color: #7c6038 !important;
}

.bp-wrap .bp-cal-day.bp-selected {
	background: #9a7848 !important;
	border: 2px solid #7c6038 !important;
	color: #fff !important;
}

/* Legend */
.bp-legend {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 1.1rem 0 0;
	padding: 0;
	font-size: 0.88rem;
	color: var(--bp-muted);
}

.bp-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.bp-swatch {
	width: 1rem;
	height: 1rem;
	border-radius: 4px;
	border: 1px solid var(--bp-border);
	flex: 0 0 auto;
}

.bp-sw-free { background: #c8efd0; border-color: #2f9e45; }
.bp-sw-pending {
	background: repeating-linear-gradient(
		-45deg,
		#ffe9a8,
		#ffe9a8 3px,
		#fff6d0 3px,
		#fff6d0 6px
	);
	border-color: #d4a017;
}
.bp-sw-partial { background: #ffd09a; border-color: #d97706; }
.bp-sw-confirmed { background: #f2b4ad; border-color: #c0392b; }
.bp-sw-blocked {
	background: #bdbdbd;
	border-color: #757575;
}

/* selection summary */
.bp-selection {
	margin-top: 1.25rem;
	padding: 1rem 1.1rem;
	background: var(--bp-surface);
	border: 1px solid var(--bp-surface-bd);
	border-radius: 8px;
}

.bp-selection-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 0.2rem 0;
}

.bp-selection-nights {
	border-top: 1px dashed var(--bp-surface-bd);
	margin-top: 0.35rem;
	padding-top: 0.5rem;
}

.bp-selection-label {
	color: var(--bp-muted);
	font-size: 0.92rem;
}

.bp-wrap a.bp-link-btn,
.bp-wrap button.bp-link-btn {
	display: inline-block;
	width: auto;
	min-height: 0;
	margin-top: 0.35rem;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--bp-muted);
	cursor: pointer;
	font-family: inherit;
	font-size: 0.72rem !important;
	font-weight: 400 !important;
	line-height: 1.3;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-transform: none;
	letter-spacing: normal;
	-webkit-appearance: none;
	appearance: none;
}

.bp-wrap a.bp-link-btn:hover,
.bp-wrap a.bp-link-btn:focus,
.bp-wrap button.bp-link-btn:hover,
.bp-wrap button.bp-link-btn:focus {
	color: var(--bp-accent);
	background: none !important;
}

.bp-hint {
	margin: 0.85rem 0 0;
	font-size: 0.9rem;
	color: var(--bp-muted);
}

/* Form */
.bp-form-row {
	margin-bottom: 1.1rem;
}

.bp-form-row-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.bp-field {
	margin-bottom: 1.1rem;
}

.bp-form-row .bp-field {
	margin-bottom: 0;
}

.bp-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
	font-size: 0.92rem;
}

.bp-req { color: var(--bp-confirmed-tx); }

.bp-field input,
.bp-field textarea,
.bp-field select {
	width: 100%;
	max-width: 100%;
	padding: 0.6rem 0.7rem;
	border: 1px solid #cfcfcf;
	border-radius: 8px;
	font: inherit;
	color: var(--bp-text);
	background: #fff;
}

.bp-field select {
	appearance: auto;
	cursor: pointer;
}

.bp-field select.bp-time-select {
	max-width: 16rem;
	color: var(--bp-text);
	-webkit-text-fill-color: var(--bp-text);
}

.bp-time-picker {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	max-width: 14rem;
}

.bp-time-picker-sep {
	font-size: 1rem;
	font-weight: 600;
	color: var(--bp-muted);
	line-height: 1;
	flex: 0 0 auto;
}

.bp-time-picker-select {
	flex: 1 1 0;
	min-width: 0;
	width: 100%;
	padding: 0.6rem 0.7rem;
	border: 1px solid #cfcfcf;
	border-radius: 8px;
	background: #fff;
	color: var(--bp-text);
	font: inherit;
	font-size: inherit;
	line-height: 1.4;
	appearance: auto;
	cursor: pointer;
}

.bp-time-picker-select[data-bp-time-part="minute"] {
	flex: 0 0 5.5rem;
}

.bp-time-picker-select.bp-input-error {
	border-color: var(--bp-confirmed-tx);
	box-shadow: 0 0 0 3px rgba(156, 61, 56, 0.15);
}

.bp-field input.bp-time-input,
.bp-field input[type="time"] {
	color: var(--bp-text);
	-webkit-text-fill-color: var(--bp-text);
	color-scheme: light;
}

.bp-field input[type="time"]::-webkit-datetime-edit,
.bp-field input[type="time"]::-webkit-datetime-edit-fields-wrapper,
.bp-field input[type="time"]::-webkit-datetime-edit-text,
.bp-field input[type="time"]::-webkit-datetime-edit-hour-field,
.bp-field input[type="time"]::-webkit-datetime-edit-minute-field,
.bp-field input[type="time"]::-webkit-datetime-edit-ampm-field {
	color: var(--bp-text);
	-webkit-text-fill-color: var(--bp-text);
}

.bp-field input:focus,
.bp-field textarea:focus,
.bp-field select:focus {
	outline: none;
	border-color: var(--bp-accent);
	box-shadow: 0 0 0 3px var(--bp-focus-ring);
}

.bp-field input.bp-input-error,
.bp-field textarea.bp-input-error,
.bp-field select.bp-input-error {
	border-color: var(--bp-confirmed-tx);
	box-shadow: 0 0 0 3px rgba(156, 61, 56, 0.15);
}

.bp-field-error-msg {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.82rem;
	color: var(--bp-confirmed-tx);
	font-weight: 600;
}

.bp-field-hint {
	display: block;
	margin-top: 0.3rem;
	font-size: 0.82rem;
	color: var(--bp-muted);
}

.bp-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Directions (Anfahrt panel) */
.bp-directions {
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.bp-directions .bp-panel-title {
	margin-top: 0;
}

.bp-directions .bp-panel-lead {
	margin-bottom: 1.1rem;
}

.bp-directions-map-wrap {
	margin-bottom: 1rem;
	border: 1px solid var(--bp-border);
	border-radius: 8px;
	background: var(--bp-surface);
	overflow: hidden;
}

.bp-directions-map-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.85rem 1rem;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	list-style: none;
	color: inherit;
}

.bp-directions-map-toggle::-webkit-details-marker {
	display: none;
}

.bp-directions-map-toggle::after {
	content: '+';
	font-size: 1.2rem;
	line-height: 1;
	color: var(--bp-muted, #666);
}

.bp-directions-map-wrap[open] .bp-directions-map-toggle::after {
	content: '−';
}

.bp-directions-map-wrap[open] .bp-directions-map-toggle {
	border-bottom: 1px solid var(--bp-border);
}

.bp-directions-map {
	width: 100%;
	height: 320px;
	border: 0;
	border-radius: 0;
	margin-bottom: 0;
	overflow: hidden;
	background: var(--bp-surface);
}

.bp-map-marker {
	background: transparent;
	border: 0;
}

.bp-map-marker-dot {
	display: block;
	width: 18px;
	height: 18px;
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.bp-location-legend {
	list-style: none;
	margin: 0 0 1.1rem;
	padding: 0;
	display: grid;
	gap: 0.65rem;
}

.bp-location-legend-item {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.75rem 0.9rem;
	background: var(--bp-surface);
	border: 1px solid var(--bp-surface-bd);
	border-radius: 8px;
}

.bp-location-legend-item strong {
	font-size: 0.95rem;
}

.bp-location-legend-item span {
	color: var(--bp-muted, #666);
	font-size: 0.92rem;
}

.bp-location-legend-office strong::before,
.bp-location-legend-apartment strong::before {
	content: '';
	display: inline-block;
	width: 0.65rem;
	height: 0.65rem;
	border-radius: 50%;
	margin-right: 0.45rem;
	vertical-align: middle;
}

.bp-location-legend-office strong::before {
	background: #2563eb;
}

.bp-location-legend-apartment strong::before {
	background: #16a34a;
}

.bp-directions-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.bp-btn-quiet {
	background: transparent;
	border-color: var(--bp-border);
}

/* Address */
.bp-address-card {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 1rem 1.1rem;
	background: var(--bp-surface);
	border: 1px solid var(--bp-surface-bd);
	border-radius: 8px;
	margin-bottom: 0.85rem;
}

.bp-address-icon {
	font-size: 1.5rem;
	line-height: 1;
}

.bp-location-label {
	margin: 0 0 0.2rem;
	font-size: 0.82rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--bp-muted, #666);
}

.bp-location-address {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
}

/* Overview */
.bp-summary {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.55rem 1.25rem;
	margin: 0 0 1.4rem;
	padding: 1.1rem 1.2rem;
	background: var(--bp-surface);
	border: 1px solid var(--bp-border);
	border-radius: 8px;
}

.bp-summary dt {
	font-weight: 600;
	color: var(--bp-muted);
}

.bp-summary dd {
	margin: 0;
	font-weight: 600;
	overflow-wrap: anywhere;
}

/* Buttons & nav */
.bp-wizard-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--bp-border);
}

.bp-btn {
	display: inline-block;
	padding: 0.45rem 1rem;
	border: 1px solid var(--bp-accent);
	background: var(--bp-accent);
	color: #fff;
	border-radius: 6px;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s;
	white-space: nowrap;
}

.bp-btn:hover {
	background: var(--bp-accent-dark);
	border-color: var(--bp-accent-dark);
	color: #fff;
}

.bp-btn:disabled {
	opacity: 0.65;
	cursor: progress;
}

.bp-btn-primary {
	margin-left: auto;
}

.bp-btn-secondary {
	background: #fff;
	color: var(--bp-accent);
}

.bp-btn-secondary:hover {
	background: var(--bp-surface);
	color: var(--bp-accent-dark);
}

.bp-btn-danger {
	background: var(--bp-confirmed-tx);
	border-color: var(--bp-confirmed-tx);
}

.bp-btn-danger:hover {
	background: #9c2f2a;
	border-color: #9c2f2a;
}

.bp-form-note {
	margin: 0.9rem 0 0;
	font-size: 0.84rem;
	color: var(--bp-muted);
}

/* Extra guests checkbox + dialog */
.bp-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	margin-top: 0.75rem;
	font-size: 0.92rem;
	line-height: 1.35;
	cursor: pointer;
	color: var(--bp-text);
}

.bp-checkbox input {
	margin-top: 0.2rem;
	flex: 0 0 auto;
}

.bp-extra-guests-toggle {
	font-weight: 500;
}

#bp-extra-guests-sent {
	color: var(--bp-success-tx, #5c4a2e);
	font-weight: 600;
}

.bp-dialog {
	border: 1px solid var(--bp-border, #e0d6c8);
	border-radius: 12px;
	padding: 0;
	max-width: min(520px, calc(100vw - 2rem));
	width: 100%;
	color: var(--bp-text, #3a3228);
	background: #fff;
	box-shadow: 0 16px 40px rgba(58, 50, 40, 0.18);
}

.bp-dialog::backdrop {
	background: rgba(58, 50, 40, 0.45);
}

.bp-dialog-form {
	display: flex;
	flex-direction: column;
	max-height: min(90vh, 720px);
}

.bp-dialog-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1.1rem 1.25rem 0.75rem;
	border-bottom: 1px solid var(--bp-border, #e0d6c8);
}

.bp-dialog-title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
}

.bp-dialog-close {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--bp-muted, #756a5c);
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 0.15rem;
}

.bp-dialog-body {
	padding: 1rem 1.25rem;
	overflow-y: auto;
}

.bp-dialog-lead {
	margin: 0 0 1rem;
	color: var(--bp-muted, #756a5c);
	font-size: 0.92rem;
}

.bp-dialog-period {
	margin: 0 0 1rem;
	padding: 0.65rem 0.8rem;
	border-radius: 8px;
	background: var(--bp-surface, #faf7f2);
	border: 1px solid var(--bp-border, #e0d6c8);
	font-size: 0.9rem;
	font-weight: 600;
}

.bp-dialog-error {
	margin: 0.75rem 0 0;
	padding: 0.65rem 0.8rem;
	border-radius: 8px;
	background: #f8e8e6;
	color: #9c3d38;
	font-size: 0.88rem;
	font-weight: 600;
}

.bp-dialog-footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem;
	padding: 0.85rem 1.25rem 1.15rem;
	border-top: 1px solid var(--bp-border, #e0d6c8);
}

/* Messages */
.bp-form-messages {
	margin-top: 0.5rem;
}

.bp-form-error,
.bp-form-success {
	margin: 0;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.92rem;
}

.bp-form-error {
	background: #fdecea;
	border: 1px solid #f5b9b3;
	color: #a3231d;
}

.bp-form-success {
	background: var(--bp-success-bg);
	border: 1px solid var(--bp-success-bd);
	color: var(--bp-success-tx);
}

/* Action panels (token actions) */
.bp-action-panel {
	background: var(--bp-bg-card);
	border: 1px solid var(--bp-border);
	border-radius: var(--bp-radius);
	padding: 1.75rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bp-action-panel .bp-card-title,
.bp-action-panel .bp-panel-title {
	font-size: 1.05rem;
	font-weight: 600;
}

.bp-action-panel .bp-form {
	margin-top: 1rem;
}

.bp-notice {
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	border-radius: var(--bp-radius);
	border: 1px solid;
}

.bp-notice-success {
	background: var(--bp-success-bg);
	border-color: var(--bp-success-bd);
	color: var(--bp-success-tx);
}

.bp-notice-error {
	background: #fdecea;
	border-color: #f5b9b3;
	color: #a3231d;
}

.bp-notice p { margin: 0; }

.bp-recaptcha-wrap { margin: 1rem 0; }
.bp-recaptcha-v3-notice {
	margin: 1rem 0 0;
	font-size: 0.8125rem;
	color: var(--bp-muted, #666);
	line-height: 1.5;
}
.bp-recaptcha-v3-notice a { color: inherit; }

/* Responsive */
@media (max-width: 782px) {
	.bp-wrap {
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
		padding-inline: 0.85rem;
		padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
	}

	.bp-wizard {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.85rem;
	}

	.bp-sidebar {
		position: static;
		padding: 0.85rem 0.65rem;
	}

	.bp-steps {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0.35rem;
		width: 100%;
	}

	.bp-step-item {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 0.35rem;
		padding: 0.35rem 0.15rem;
		min-width: 0;
	}

	.bp-step-item:not(:last-child)::before {
		display: none;
	}

	.bp-step-text {
		align-items: center;
		width: 100%;
		min-width: 0;
	}

	.bp-step-desc {
		display: none;
	}

	.bp-step-label {
		display: block;
		font-size: 0.68rem;
		line-height: 1.15;
		font-weight: 600;
		hyphens: auto;
		overflow-wrap: anywhere;
	}

	.bp-step-marker {
		width: 2.15rem;
		height: 2.15rem;
		font-size: 0.95rem;
	}

	.bp-step-item.bp-done .bp-step-marker::after {
		font-size: 1.05rem;
	}

	.bp-sidebar-link {
		margin-top: 0.65rem;
		padding: 0.5rem 0.35rem;
	}

	.bp-sidebar-link-desc {
		display: none;
	}

	.bp-sidebar-link-label {
		font-size: 0.68rem;
	}

	.bp-content {
		padding: 1.25rem 1rem;
	}
}

@media (max-width: 560px) {
	.bp-wrap {
		padding-inline: 0.65rem;
	}

	.bp-content {
		padding: 1.1rem 0.75rem;
	}

	.bp-wrap h1.bp-page-title,
	.bp-wrap h2.bp-panel-title {
		font-size: 1.3rem;
	}

	.bp-panel-lead {
		font-size: 0.88rem;
	}

	.bp-calendar-toolbar {
		gap: 0.35rem;
		margin-bottom: 0.65rem;
	}

	.bp-calendar-title {
		font-size: 0.88rem;
	}

	.bp-nav-btn {
		width: 1.85rem;
		height: 1.85rem;
		font-size: 1.05rem;
	}

	.bp-cal-head {
		font-size: 0.68rem;
		padding: 0.2rem 0;
	}

	.bp-cal-day {
		min-height: 3.55rem;
		padding: 0.22rem 0.08rem;
		border-radius: 7px;
		gap: 2px;
	}

	.bp-cal-num {
		font-size: 0.88rem;
	}

	.bp-cal-status {
		font-size: 0.6rem;
		text-transform: none !important;
		letter-spacing: 0;
		line-height: 1.15;
	}

	.bp-cal-status-main,
	.bp-cal-status-sub {
		font-size: 0.56rem;
	}

	.bp-cal-empty {
		min-height: 3.55rem;
	}

	.bp-calendar-grid {
		gap: 3px;
	}

	.bp-legend {
		gap: 0.4rem 0.75rem;
		font-size: 0.8rem;
		margin-top: 0.85rem;
	}

	.bp-form-row-2 {
		grid-template-columns: 1fr;
		gap: 1.1rem;
	}

	.bp-step-label {
		font-size: 0.62rem;
	}

	.bp-step-marker {
		width: 2rem;
		height: 2rem;
		font-size: 0.9rem;
	}

	.bp-wrap h1.bp-page-title,
	.bp-wrap h2.bp-panel-title {
		font-size: 1.25rem;
	}

	.bp-wizard-nav {
		flex-direction: column;
		align-items: stretch;
	}

	.bp-btn-primary {
		margin-left: 0;
		width: 100%;
		text-align: center;
	}
}
