.bsi-booking-widget {
	max-width: 640px;
	margin: 0 auto;
	font-family: inherit;
}

.bsi-class-header h3 {
	margin: 0 0 6px;
}

.bsi-class-meta {
	display: flex;
	gap: 16px;
	font-size: 14px;
	color: #555;
	margin-bottom: 16px;
}

.bsi-class-meta i {
	font-style: normal;
	color: #888;
}

.bsi-legend {
	display: flex;
	gap: 16px;
	font-size: 13px;
	margin-bottom: 16px;
	color: #444;
}

.bsi-legend-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.bsi-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
}

.bsi-dot-available { background: #2e9e5b; }
.bsi-dot-occupied,
.bsi-dot-confirmed { background: #c0392b; }
.bsi-dot-held,
.bsi-dot-pending_payment,
.bsi-dot-awaiting_review { background: #b7935a; }

.bsi-selection-banner {
	display: none;
	align-items: center;
	gap: 10px;
	background: #eaf1ff;
	border: 1px solid #b9cdfa;
	color: #1d3f9c;
	border-radius: 8px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 16px;
}

.bsi-room {
	background: #f7f7f8;
	border-radius: 10px;
	padding: 24px 16px;
	margin-bottom: 20px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	text-align: center;
}

.bsi-room-locked {
	pointer-events: none;
	opacity: .6;
}

/* O "frame" tem largura shrink-to-fit (baseada na fileira mais larga) e é
   centralizado dentro de .bsi-room via text-align:center do pai. Isso permite
   que a sala inteira role horizontalmente em telas pequenas SEM que nenhuma
   fileira quebre linha, e serve de referência de posição para a marcação da
   porta (sempre relativa ao tamanho real da sala, não ao viewport visível). */
.bsi-room-frame {
	position: relative;
	display: inline-block;
	min-width: 100%;
	text-align: left;
	padding: 4px 26px;
}

.bsi-door-front-left,
.bsi-door-front-center,
.bsi-door-front-right {
	padding-top: 34px;
}

.bsi-door-back-left,
.bsi-door-back-center,
.bsi-door-back-right {
	padding-bottom: 34px;
}

.bsi-instructor-badge {
	width: fit-content;
	margin: 0 auto 20px;
	background: #1d2327;
	color: #fff;
	padding: 8px 22px;
	border-radius: 4px;
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
	font-weight: 600;
	white-space: nowrap;
}

.bsi-door-marker {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #fff7ed;
	border: 2px dashed #c98a2c;
	color: #8a5a10;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 4px 10px;
	border-radius: 6px;
	white-space: nowrap;
	z-index: 2;
}

.bsi-door-front-left .bsi-door-marker   { top: 0; left: 0; }
.bsi-door-front-center .bsi-door-marker { top: 0; left: 50%; transform: translateX(-50%); }
.bsi-door-front-right .bsi-door-marker  { top: 0; right: 0; }
.bsi-door-left .bsi-door-marker         { top: 50%; left: 0; transform: translateY(-50%); }
.bsi-door-right .bsi-door-marker        { top: 50%; right: 0; transform: translateY(-50%); }
.bsi-door-back-left .bsi-door-marker    { bottom: 0; left: 0; }
.bsi-door-back-center .bsi-door-marker  { bottom: 0; left: 50%; transform: translateX(-50%); }
.bsi-door-back-right .bsi-door-marker   { bottom: 0; right: 0; }

.bsi-map-row {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 10px;
}

.bsi-seat {
	width: 42px;
	height: 42px;
	flex-shrink: 0;
	border-radius: 8px;
	border: none;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	color: #fff;
	transition: transform .12s ease;
}

.bsi-seat:hover:not([disabled]) {
	transform: scale(1.08);
}

.bsi-seat-available {
	background: #2e9e5b;
}

.bsi-seat-occupied,
.bsi-seat-confirmed {
	background: #c0392b;
	cursor: not-allowed;
	opacity: .85;
}

.bsi-seat-held,
.bsi-seat-pending_payment,
.bsi-seat-awaiting_review {
	background: #b7935a;
	cursor: not-allowed;
	opacity: .85;
}

.bsi-seat-selected {
	background: #2d4bd6;
	box-shadow: 0 0 0 3px rgba(45, 75, 214, .25);
	animation: bsi-pulse 1.4s ease-in-out infinite;
}

@keyframes bsi-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(45, 75, 214, .35); }
	50% { box-shadow: 0 0 0 7px rgba(45, 75, 214, 0); }
}

.bsi-panel-bike {
	font-size: 15px;
}

.bsi-btn-link {
	background: transparent;
	border: none;
	color: #666;
	text-decoration: underline;
	padding: 4px 0;
	font-weight: 500;
	font-size: 13px;
}

.bsi-panel-box {
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	padding: 20px;
	background: #fff;
}

.bsi-panel-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	font-size: 15px;
}

.bsi-timer-wrap {
	font-size: 13px;
	color: #b7935a;
}

.bsi-timer {
	font-weight: 700;
}

.bsi-price {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 16px;
}

.bsi-customer-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bsi-customer-form label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	color: #444;
}

.bsi-customer-form input {
	height: 40px;
	border: 1px solid #d5d5d5;
	border-radius: 6px;
	padding: 0 12px;
	font-size: 14px;
}

.bsi-btn {
	display: inline-block;
	text-decoration: none;
	border-radius: 6px;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid #ccc;
	background: #fff;
	color: #1d2327;
}

.bsi-btn-primary {
	background: #1d2327;
	color: #fff;
	border-color: #1d2327;
}

.bsi-btn-primary[disabled] {
	opacity: .6;
	cursor: not-allowed;
}

.bsi-form-error {
	color: #c0392b;
	font-size: 13px;
}

.bsi-error {
	color: #c0392b;
}

.bsi-agenda-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bsi-agenda-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 14px 18px;
}

.bsi-agenda-price {
	font-weight: 700;
}

/* Transferência bancária / envio de comprovante */
.bsi-transfer-box {
	background: #f7f7f8;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 14px 16px;
	font-size: 14px;
	white-space: pre-line;
	color: #333;
	margin-bottom: 16px;
}

.bsi-transfer-help {
	font-size: 13px;
	color: #666;
	margin-bottom: 14px;
}

.bsi-file-input-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
}

.bsi-file-input-wrap label {
	font-size: 13px;
	color: #444;
}

.bsi-file-input-wrap input[type="file"] {
	border: 1px dashed #cfcfcf;
	border-radius: 6px;
	padding: 10px;
	font-size: 13px;
	background: #fafafa;
}

.bsi-proof-success {
	background: #edfaef;
	border: 1px solid #bfe6c9;
	color: #1a7a2e;
	border-radius: 8px;
	padding: 16px;
	font-size: 14px;
}

.bsi-proof-success strong {
	display: block;
	margin-bottom: 4px;
	font-size: 15px;
}

.bsi-proof-auto {
	background: #eaf6ec;
	border-color: #9bd6a8;
}

/* Telas pequenas: assentos um pouco menores para precisar rolar menos.
   As fileiras NUNCA quebram linha (ver .bsi-map-row) - em vez disso a
   sala inteira rola horizontalmente (.bsi-room { overflow-x: auto }). */
@media (max-width: 480px) {
	.bsi-map-row {
		gap: 7px;
	}
	.bsi-seat {
		width: 36px;
		height: 36px;
		font-size: 12px;
	}
}
