/* ==========================================================
   Bus Rental Calculator — Frontend Styles v1.1
   ========================================================== */

.brc-calculator {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 600px;
	font-family: inherit;
	color: #111827;
	line-height: 1.5;
	overflow: hidden;
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Crect x='1' y='10' width='30' height='15' rx='3' fill='%230f0f0f'/%3E%3Crect x='3' y='7' width='22' height='5' rx='2.5' fill='%230f0f0f'/%3E%3Crect x='4' y='12' width='6' height='5' rx='1.2' fill='%23a8d4f5' opacity='.92'/%3E%3Crect x='13' y='12' width='6' height='5' rx='1.2' fill='%23a8d4f5' opacity='.92'/%3E%3Crect x='22' y='12' width='4' height='5' rx='1.2' fill='%23a8d4f5' opacity='.92'/%3E%3Crect x='27' y='10' width='4' height='12' rx='1.5' fill='%231c1c1c'/%3E%3Crect x='29.5' y='12' width='1.5' height='3.5' rx='.5' fill='%23ffd000'/%3E%3Crect x='1' y='18' width='1.5' height='4' rx='.5' fill='%23e03030'/%3E%3Crect x='4' y='23' width='21' height='1.5' rx='.5' fill='%23252525'/%3E%3Ccircle cx='9' cy='27' r='3.8' fill='%230f0f0f'/%3E%3Ccircle cx='9' cy='27' r='1.6' fill='%235a5a5a'/%3E%3Ccircle cx='24' cy='27' r='3.8' fill='%230f0f0f'/%3E%3Ccircle cx='24' cy='27' r='1.6' fill='%235a5a5a'/%3E%3C/svg%3E") 31 14, auto;
}

/* ── Panel boczny (lewy overlay) ─────────────────────────────────────────── */

#brc-panel {
	position: absolute;
	top: 0;
	left: 0;
	width: 660px;
	max-width: 100%;
	max-height: 100%;
	z-index: 20;
	background: #ffffff;
	box-shadow: 4px 0 32px rgba(0, 0, 0, 0.18);
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: thin;
	scrollbar-color: #d1d5db transparent;
	border-radius: 0 0 14px 0;
	box-sizing: border-box;
	padding: 16px;
}

#brc-panel.brc-panel-expanded {
	height: 100%;
	border-radius: 0;
}

/* ── Sekcje ──────────────────────────────────────────────────────────────── */

.brc-section {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 20px 24px;
	margin-bottom: 16px;
}

.brc-section h3 {
	margin: 0 0 4px;
	font-size: 1.15rem;
	font-weight: 600;
	color: #1f2937;
}

.brc-section-desc {
	margin: 0 0 16px;
	font-size: 0.95rem;
	color: #6b7280;
}

.brc-section-contact {
	border-color: #bfdbfe;
	background: #eff6ff;
}

.brc-section-contact h3 {
	color: #1e40af;
}

/* ── Pola ────────────────────────────────────────────────────────────────── */

.brc-field {
	margin-bottom: 14px;
}

.brc-field:last-child { margin-bottom: 0; }

.brc-field label {
	display: block;
	margin-bottom: 5px;
	font-size: 1rem;
	font-weight: 500;
	color: #374151;
}

/* ── Wycieczka kilkudniowa ───────────────────────────────────────────────── */

.brc-mode-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 6px;
}

.brc-mode-card {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	padding: 14px;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.brc-mode-card:has(input:checked) {
	border-color: #2563eb;
	background: #eff6ff;
}

.brc-mode-card input[type="radio"] {
	margin-top: 2px;
	flex-shrink: 0;
}

.brc-mode-inner strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #111827;
	margin-bottom: 3px;
}

.brc-mode-inner small {
	font-size: 12px;
	color: #6b7280;
	line-height: 1.4;
}

/* Karty dzienne */
#brc-days-container {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.brc-day-card {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: visible; /* pozwala liście autouzupełniania wyjść poza kartę (v1.11.1) */
}

.brc-day-card:last-child {
	border-color: #a78bfa;
}

.brc-day-header {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #f5f3ff;
	padding: 10px 16px;
	border-bottom: 1px solid #e5e7eb;
	border-radius: 8px 8px 0 0; /* zaokrąglenie po zdjęciu overflow:hidden z karty (v1.11.1) */
}

.brc-day-card:last-child .brc-day-header {
	background: #ede9fe;
}

.brc-day-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #7c3aed;
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	flex-shrink: 0;
}

.brc-day-title {
	font-weight: 600;
	font-size: 1rem;
	color: #374151;
}

.brc-day-badge-return {
	margin-left: auto;
	background: #7c3aed;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 10px;
}

.brc-day-body {
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.brc-day-start {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 0.95rem;
}

.brc-day-start-label {
	color: #6b7280;
	white-space: nowrap;
	font-weight: 500;
}

.brc-day-start-text {
	color: #374151;
	font-style: italic;
}

.brc-day-start-text.brc-ds-filled {
	font-style: normal;
	font-weight: 500;
	color: #111827;
}

.brc-day-waypoints {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.brc-dwp-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.brc-dwp-row .brc-autocomplete-wrap {
	flex: 1;
}

/* Odstęp wierszy przystanków dnia sterowany gapem kontenera (.brc-day-waypoints) — bez podwójnego marginesu z .brc-wp-row (v1.58.0, G1a) */
.brc-day-waypoints .brc-wp-row {
	margin-bottom: 0;
}

/* Nota w wynikach dla wycieczki kilkudniowej */
.brc-multiday-result-note {
	background: #f5f3ff;
	border: 1px solid #a78bfa;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 14px;
	color: #5b21b6;
	text-align: center;
	margin-bottom: 16px;
}

@media (max-width: 500px) {
	.brc-mode-grid {
		grid-template-columns: 1fr;
	}
}

/* Honeypot — niewidoczne dla użytkowników, wypełniane przez boty */
.brc-hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.brc-field-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	align-items: flex-end;
}

.brc-field-row > div {
	flex: 1;
	min-width: 130px;
}

.brc-field input[type="text"],
.brc-field input[type="number"],
.brc-field input[type="time"],
.brc-field input[type="date"],
.brc-field input[type="tel"],
.brc-field input[type="email"],
.brc-address-input {
	width: 100%;
	box-sizing: border-box;
	padding: 9px 12px;
	border: 1px solid #d1d5db;
	border-radius: 7px;
	font-size: 1rem;
	color: #111827;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
}

.brc-field input:focus,
.brc-address-input:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.brc-field input[type="number"] { max-width: 120px; }

.brc-required { color: #ef4444; margin-left: 2px; }

/* Etykieta docelowa — tekst + gwiazdka zawsze w jednej linii (v1.21.6) */
label[for="brc-destination"] { white-space: nowrap; }

.brc-hint {
	margin: 5px 0 0;
	font-size: 0.875rem;
	color: #6b7280;
}

.brc-hint-inline {
	font-size: 0.875rem;
	color: #6b7280;
	font-weight: 400;
}

/* Checkbox */
.brc-field-check label {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	cursor: pointer;
	font-size: 1rem;
}

/* Checkbox w jednej linii z etykietą (Nocleg / „Dodaj trasę powrotną") — v1.11.3/v1.11.4 */
.brc-check-inline label {
	align-items: center;
	flex-wrap: nowrap;
	line-height: 1.2;
}

/* Wyższa specyficzność niż `.brc-field-check input[type="checkbox"]{margin-top:2px}` — checkbox równo z tekstem.
   v1.21.3: reset WSZYSTKICH marginesów (UA daje checkboxowi ~3px dół/lewo) → idealne wyśrodkowanie w pionie. */
.brc-field-check.brc-check-inline input[type="checkbox"] {
	margin: 0;
	align-self: center;
}

.brc-field-check input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin-top: 2px;
	flex-shrink: 0;
	cursor: pointer;
	accent-color: #2563eb;
}

/* RODO */
.brc-gdpr-field label {
	align-items: flex-start;
	font-size: 0.95rem;
	color: #4b5563;
	line-height: 1.5;
}

/* ── Autocomplete ────────────────────────────────────────────────────────── */

.brc-autocomplete-wrap { position: relative; }

.brc-ac-list {
	display: none;
	position: absolute;
	top: 100%; left: 0; right: 0;
	margin: 0; padding: 0; list-style: none;
	background: #fff;
	border: 1px solid #d1d5db;
	border-top: none;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 6px 16px rgba(0,0,0,.1);
	z-index: 9999;
	max-height: 230px;
	overflow-y: auto;
}

.brc-ac-item, .brc-ac-empty {
	padding: 10px 12px;
	font-size: 1rem;
	color: #374151;
	border-bottom: 1px solid #f3f4f6;
	cursor: pointer;
}

.brc-ac-item:last-child, .brc-ac-empty:last-child { border-bottom: none; }
.brc-ac-item:hover, .brc-ac-item:focus { background: #eff6ff; color: #1d4ed8; }
.brc-ac-empty { color: #9ca3af; cursor: default; font-style: italic; }

/* ── Przystanki ──────────────────────────────────────────────────────────── */

.brc-wp-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 8px;
}

.brc-wp-row .brc-autocomplete-wrap { flex: 1; }

/* ── Przyciski ───────────────────────────────────────────────────────────── */

.brc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 10px 22px;
	border: none;
	border-radius: 7px;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: background .15s, transform .1s;
	white-space: nowrap;
}

.brc-btn:active { transform: scale(.97); }

.brc-btn-primary {
	background: #2563eb;
	color: #fff;
	font-size: 1rem;
	padding: 12px 28px;
}
.brc-btn-primary:hover { background: #1d4ed8; }
.brc-btn-primary:disabled { background: #93c5fd; cursor: not-allowed; transform: none; }
.brc-btn-primary.brc-loading::after {
	content: '';
	width: 14px; height: 14px;
	border: 2px solid rgba(255,255,255,.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: brc-spin .7s linear infinite;
	margin-left: 8px;
}

.brc-btn-secondary {
	background: #f3f4f6;
	color: #374151;
	border: 1px solid #d1d5db;
}
.brc-btn-secondary:hover { background: #e5e7eb; }

.brc-btn-icon {
	padding: 7px 10px;
	background: #fee2e2;
	color: #b91c1c;
	border: 1px solid #fecaca;
	border-radius: 7px;
	font-size: 0.85rem;
	cursor: pointer;
	flex-shrink: 0;
}
.brc-btn-icon:hover { background: #fecaca; }

.brc-btn-sm { padding: 8px 14px; font-size: 0.9rem; margin-top: 4px; }

/* Przyciski „Dodaj przystanek" — pełna szerokość, tekst wyśrodkowany (v1.11.3; +40% v1.19.1) */
.brc-add-wp {
	width: 100%;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 11px 16px;
	font-size: 1.26rem;
	line-height: 1;
}

.brc-add-wp:disabled {
	opacity: .5;
	cursor: not-allowed;
}

/* ── Akcje ───────────────────────────────────────────────────────────────── */

.brc-actions { margin: 8px 0 0; display: flex; }
.brc-actions .brc-btn-primary { width: 100%; }

/* CTA „Wyślij zapytanie" — większa czcionka, wyśrodkowanie pion/poziom (v1.11.3/v1.11.4) */
#brc-submit-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 1.61rem;
	font-weight: 600;
	padding: 14px 22px;
	line-height: 1;
}

/* ── Błąd ────────────────────────────────────────────────────────────────── */

.brc-error {
	background: #fee2e2;
	color: #b91c1c;
	border: 1px solid #fecaca;
	border-radius: 7px;
	padding: 10px 14px;
	font-size: 1rem;
	margin-bottom: 12px;
}

/* ── Mapa ────────────────────────────────────────────────────────────────── */

#brc-map {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	margin: 0;
	border-radius: 0;
	border: none;
}

.brc-map-marker {
	width: 28px; height: 28px;
	border-radius: 50%;
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid rgba(255,255,255,.9);
	box-shadow: 0 2px 8px rgba(0,0,0,.3);
	user-select: none;
}

/* ── Wyniki / potwierdzenie ──────────────────────────────────────────────── */

#brc-results {
	background: #f0fdf4;
	border: 2px solid #16a34a;
	border-radius: 10px;
	padding: 24px 20px;
	text-align: center;
	margin-top: 8px;
}

.brc-success-icon {
	width: 56px; height: 56px;
	background: #16a34a;
	color: #fff;
	border-radius: 50%;
	font-size: 26px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
	box-shadow: 0 4px 14px rgba(22,163,74,.35);
}

.brc-results-title {
	margin: 0 0 8px;
	font-size: 1.3rem;
	font-weight: 700;
	color: #15803d;
}

.brc-results-subtitle {
	margin: 0 0 24px;
	font-size: 0.95rem;
	color: #374151;
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
}

/* Siatka danych (km / czas / autobusy / kierowcy) */
.brc-summary-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-bottom: 24px;
}

.brc-stat {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 14px 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.brc-stat-icon { font-size: 1.3rem; }

.brc-stat-label {
	font-size: 0.85rem;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: .05em;
	font-weight: 500;
	text-align: center;
}

.brc-stat-value {
	font-size: 1.15rem;
	font-weight: 700;
	color: #111827;
}

/* Informacja o zużyciu paliwa (jednodniowa / kilkudniowa) */
.brc-fuel-note {
	background: #fefce8;
	border: 1px solid #fde68a;
	border-radius: 8px;
	padding: 11px 16px;
	font-size: 0.875rem;
	color: #78350f;
	font-weight: 500;
	margin-bottom: 16px;
	text-align: center;
}

/* Notatka końcowa */
.brc-contact-note {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 8px;
	padding: 14px 20px;
	font-size: 0.9rem;
	color: #15803d;
	font-weight: 500;
}

/* ── Spinner ─────────────────────────────────────────────────────────────── */

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

/* ── Typ wynajmu — pływające okno (nad mapą, wyśrodkowane) ──────────────── */

#brc-type-selector {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 30;
	background: rgba(255, 255, 255, 0.97);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-radius: 26px;
	padding: 34px 34px 29px;
	box-shadow:
		0 32px 72px rgba(0, 0, 0, 0.22),
		0 8px 28px rgba(0, 0, 0, 0.13),
		0 0 0 1px rgba(255, 255, 255, 0.85) inset;
	max-width: 1080px;
	width: calc(100% - 32px);
	max-height: 90vh;
	overflow-y: auto;
	box-sizing: border-box;
	animation: brc-float-in 0.38s cubic-bezier(0.34, 1.46, 0.64, 1) both;
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Crect x='1' y='10' width='30' height='15' rx='3' fill='%230f0f0f'/%3E%3Crect x='3' y='7' width='22' height='5' rx='2.5' fill='%230f0f0f'/%3E%3Crect x='4' y='12' width='6' height='5' rx='1.2' fill='%23a8d4f5' opacity='.92'/%3E%3Crect x='13' y='12' width='6' height='5' rx='1.2' fill='%23a8d4f5' opacity='.92'/%3E%3Crect x='22' y='12' width='4' height='5' rx='1.2' fill='%23a8d4f5' opacity='.92'/%3E%3Crect x='27' y='10' width='4' height='12' rx='1.5' fill='%231c1c1c'/%3E%3Crect x='29.5' y='12' width='1.5' height='3.5' rx='.5' fill='%23ffd000'/%3E%3Crect x='1' y='18' width='1.5' height='4' rx='.5' fill='%23e03030'/%3E%3Crect x='4' y='23' width='21' height='1.5' rx='.5' fill='%23252525'/%3E%3Ccircle cx='9' cy='27' r='3.8' fill='%230f0f0f'/%3E%3Ccircle cx='9' cy='27' r='1.6' fill='%235a5a5a'/%3E%3Ccircle cx='24' cy='27' r='3.8' fill='%230f0f0f'/%3E%3Ccircle cx='24' cy='27' r='1.6' fill='%235a5a5a'/%3E%3C/svg%3E") 31 14, grab;
	user-select: none;
}

#brc-type-selector.brc-dragging {
	cursor: grabbing;
	animation: none;
}

@keyframes brc-float-in {
	from {
		opacity: 0;
		transform: translate(-50%, calc(-50% + 24px)) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

/* Logo wyśrodkowane nad kartami */
.brc-type-logo {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 26px;
}

.brc-logo-img {
	height: 67px;
	width: auto;
	max-width: 100%;
	display: block;
}

.brc-type-grid {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 14px;
	align-items: stretch;
}

.brc-type-card {
	flex: 1 1 0% !important;
	min-width: 0 !important;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 24px 14px;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	background: #f9fafb;
	cursor: pointer;
	transition: border-color .15s, background .15s, transform .1s;
	text-align: center;
}

.brc-type-card:hover {
	border-color: #2563eb;
	background: #eff6ff;
	transform: translateY( -2px );
}

.brc-type-icon {
	font-size: 2.9rem;
	line-height: 1;
}

.brc-type-card strong {
	display: block;
	font-size: 1.3rem;
	font-weight: 600;
	color: #111827;
}

.brc-type-card small {
	display: block;
	font-size: 1rem;
	color: #6b7280;
	line-height: 1.5;
}

/* Pasek wybranego typu — sticky w panelu */
#brc-type-bar {
	position: sticky;
	top: -16px;      /* kompensuje padding panelu */
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	background: #eff6ff;
	border-bottom: 2px solid #bfdbfe;
	border-radius: 0;
	padding: 12px 16px;
	margin: -16px -16px 16px;   /* wylewa się do krawędzi panelu */
	font-weight: 600;
	color: #1e40af;
}

/* Tytuł typu — powiększony (v1.11.1; +40% v1.19.1) */
#brc-type-bar-label {
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1.2;
}

/* Przycisk powrotu — okrągła strzałka wstecz (v1.11.1) */
.brc-back-btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: auto;
	height: auto;
	padding: 8px 18px;
	border-radius: 999px;
	border: 1px solid #bfdbfe;
	background: #ffffff;
	color: #1d4ed8;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(30, 64, 175, 0.12);
	transition: background .15s, transform .1s, box-shadow .15s;
}

.brc-back-btn:hover {
	background: #1d4ed8;
	color: #ffffff;
	box-shadow: 0 3px 8px rgba(30, 64, 175, 0.25);
}

.brc-back-btn:active { transform: scale(.93); }

/* ── Wynajem weselny — segmenty ──────────────────────────────────────────── */

.brc-section-wedding-header {
	border-color: #f0abfc;
	background: #fdf4ff;
}

.brc-section-wedding-header h3 {
	color: #86198f;
}

.brc-wedding-segment {
	border-left: 4px solid #e879f9;
}

.brc-seg-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.brc-seg-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #86198f;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 700;
	flex-shrink: 0;
}

.brc-seg-header h4 {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: #86198f;
}

/* Wesele: +10% czcionki w segmentach (v1.21.6) */
.brc-wedding-segment .brc-seg-header h4 { font-size: 1.05rem; }
.brc-wedding-segment .brc-field label   { font-size: 1.1rem; }
.brc-wedding-segment .brc-field input   { font-size: 1.1rem; }

/* ── Wyniki: weselne ─────────────────────────────────────────────────────── */

.brc-wedding-result-grid {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 16px;
}

.brc-wedding-seg-card {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fdf4ff;
	border: 1px solid #f0abfc;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 0.88rem;
}

.brc-wedding-seg-label {
	font-weight: 600;
	color: #86198f;
	min-width: 120px;
}

.brc-wedding-seg-detail {
	flex: 1;
	color: #6b7280;
}

.brc-wedding-seg-cost {
	font-weight: 700;
	color: #111827;
}

.brc-wedding-total-box {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 16px;
}

.brc-wedding-total-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 5px 0;
	font-size: 0.9rem;
	color: #374151;
}

.brc-wedding-total-main {
	border-top: 2px solid #86efac;
	margin-top: 6px;
	padding-top: 10px;
	font-size: 1rem;
	font-weight: 700;
	color: #15803d;
}

.brc-wedding-total-main strong {
	font-size: 1.15rem;
}

/* ── Utility ─────────────────────────────────────────────────────────────── */

.brc-hidden { display: none !important; }

/* ── Responsywność ───────────────────────────────────────────────────────── */

@media (max-width: 640px) {
	.brc-section { padding: 16px; }

	/* Na mobile — panel pełna szerokość u góry */
	#brc-panel {
		width: 100%;
		max-height: 55vh;
		border-radius: 0 0 14px 14px;
	}

	#brc-panel.brc-panel-expanded {
		max-height: 60vh;
		height: 60vh;
		border-radius: 0 0 14px 14px;
	}

	/* Floating selektor na mobile */
	#brc-type-selector {
		top: 50%;
		left: 50%;
		width: calc(100% - 24px);
		padding: 26px 19px 24px;
		border-radius: 22px;
	}

	.brc-logo-img {
		height: 53px;
	}

	.brc-type-grid {
		flex-wrap: wrap !important;
	}

	.brc-type-card {
		flex: 0 0 100% !important;
	}

	.brc-summary-grid {
		grid-template-columns: 1fr 1fr;
	}

	.brc-wedding-seg-card {
		flex-wrap: wrap;
	}

	.brc-wedding-seg-label {
		min-width: unset;
	}
}

@media (max-width: 380px) {
	.brc-summary-grid {
		grid-template-columns: 1fr 1fr;
	}

	.brc-stat-value { font-size: 1rem; }
}

/* ── Pasek zalogowanego użytkownika (prawy dolny róg kalkulatora) ────────── */

.brc-user-badge {
	position: absolute;
	bottom: 20px;
	right: 20px;
	z-index: 900;
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 50px;
	padding: 8px 16px 8px 12px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	font-size: 13px;
	line-height: 1;
	white-space: nowrap;
	max-width: calc(100% - 40px);
}

.brc-user-badge__name {
	color: #374151;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 200px;
}

.brc-user-badge__logout {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	line-height: 1;
	background: #ef4444;
	color: #fff !important;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 50px;
	text-decoration: none !important;
	transition: background 0.15s;
	white-space: nowrap;
	flex-shrink: 0;
}

.brc-user-badge__logout:hover {
	background: #dc2626 !important;
	color: #fff !important;
	text-decoration: none !important;
}

@media (max-width: 480px) {
	.brc-user-badge {
		bottom: 12px;
		right: 12px;
		padding: 6px 12px 6px 10px;
		font-size: 12px;
	}

	.brc-user-badge__name {
		max-width: 120px;
	}
}

