/* Batriban Vehicle Battery Finder — frontend styles */
.bb-bf-widget {
	--bb-bf-color: #e53935;
	direction: rtl;
	font-family: inherit;
	max-width: 520px;
	margin: 0 auto;
	text-align: right;
}

.bb-bf-steps-indicator {
	display: flex;
	gap: 6px;
	justify-content: center;
	margin-bottom: 16px;
}
.bb-bf-step-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ddd;
	transition: background .2s;
}
.bb-bf-step-dot.active,
.bb-bf-step-dot.done {
	background: var(--bb-bf-color);
}

.bb-bf-step-title {
	font-size: 16px;
	margin: 0 0 14px;
	font-weight: 600;
}

.bb-bf-options-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}
@media (min-width: 480px) {
	.bb-bf-options-grid { grid-template-columns: repeat(3, 1fr); }
}

.bb-bf-option-btn {
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 10px;
	padding: 12px 8px;
	cursor: pointer;
	font-size: 14px;
	transition: border-color .15s, transform .1s;
	text-align: center;
}
.bb-bf-option-btn:hover {
	border-color: var(--bb-bf-color);
	transform: translateY(-1px);
}

.bb-bf-loading,
.bb-bf-empty {
	padding: 20px;
	text-align: center;
	color: #777;
	grid-column: 1 / -1;
}

.bb-bf-back-btn {
	margin-top: 16px;
	background: none;
	border: none;
	color: #777;
	cursor: pointer;
	font-size: 13px;
}

/* Result card */
.bb-bf-result-card {
	border: 1px solid #eee;
	border-radius: 14px;
	padding: 16px;
}
.bb-bf-result-vehicle {
	font-size: 15px;
	color: #555;
	margin-bottom: 10px;
}
.bb-bf-battery-box {
	background: #fafafa;
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 16px;
}
.bb-bf-battery-amp {
	font-size: 26px;
	font-weight: 800;
	color: var(--bb-bf-color);
}
.bb-bf-battery-specs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
	font-size: 13px;
	color: #555;
}
.bb-bf-battery-specs span {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	padding: 3px 8px;
}
.bb-bf-confidence-note {
	font-size: 12px;
	color: #a06a00;
	margin-top: 8px;
}

.bb-bf-product-card {
	display: flex;
	gap: 12px;
	align-items: center;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 10px;
	margin-bottom: 10px;
}
.bb-bf-product-card img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
}
.bb-bf-product-info { flex: 1; }
.bb-bf-product-name { font-size: 14px; font-weight: 600; }
.bb-bf-product-price { font-size: 13px; color: #555; margin-top: 2px; }
.bb-bf-buy-btn,
.bb-bf-cta-btn {
	display: inline-block;
	background: var(--bb-bf-color);
	color: #fff !important;
	border: none;
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 13px;
	cursor: pointer;
	text-decoration: none;
}

.bb-bf-cta-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 14px;
}
.bb-bf-cta-row .bb-bf-cta-secondary {
	background: #fff;
	color: var(--bb-bf-color) !important;
	border: 1px solid var(--bb-bf-color);
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
}

.bb-bf-related-list {
	margin-top: 16px;
	font-size: 13px;
}
.bb-bf-related-list a { display: block; margin-top: 4px; }

.bb-bf-lead-form {
	margin-top: 18px;
	border-top: 1px dashed #ddd;
	padding-top: 14px;
}
.bb-bf-lead-form input,
.bb-bf-lead-form select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ddd;
	border-radius: 8px;
	margin-bottom: 8px;
	box-sizing: border-box;
}

/* Floating CTA */
#bb-bf-floating-cta {
	position: fixed;
	bottom: 18px;
	inset-inline-end: 18px;
	z-index: 99998;
	background: var(--bb-bf-color, #e53935);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 12px 18px;
	display: flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 6px 18px rgba(0,0,0,.18);
	cursor: pointer;
	font-size: 14px;
	direction: rtl;
}
.bb-bf-cta-icon { font-size: 18px; }

@media (max-width: 480px) {
	#bb-bf-floating-cta .bb-bf-cta-text { display: none; }
	#bb-bf-floating-cta { padding: 14px; }
}

.bb-bf-modal-root { position: fixed; inset: 0; z-index: 99999; }
.bb-bf-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.bb-bf-modal-panel {
	position: absolute;
	bottom: 0;
	inset-inline: 0;
	max-width: 560px;
	margin: 0 auto;
	background: #fff;
	border-radius: 16px 16px 0 0;
	padding: 20px;
	max-height: 88vh;
	overflow-y: auto;
}
@media (min-width: 640px) {
	.bb-bf-modal-panel {
		bottom: 5vh;
		top: 5vh;
		border-radius: 16px;
	}
}
.bb-bf-modal-close {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
	color: #999;
}
