/* Booking form — intentionally theme-neutral so it blends with Divi/Storefront. */
.wccr-booking-form {
	max-width: 520px;
	padding: 1.25rem;
	border: 1px solid rgba( 0, 0, 0, 0.08 );
	border-radius: 10px;
	background: rgba( 0, 0, 0, 0.015 );
}

.wccr-rates {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin-bottom: 1rem;
	font-size: 0.95rem;
}
.wccr-rates .wccr-rate strong { font-size: 1.15rem; }

.wccr-field { display: flex; flex-direction: column; margin: 0 0 0.85rem; }
.wccr-field label { font-weight: 600; margin-bottom: 0.3rem; }
.wccr-field input[type="date"],
.wccr-field select {
	padding: 0.55rem 0.65rem;
	border: 1px solid rgba( 0, 0, 0, 0.2 );
	border-radius: 8px;
	font-size: 1rem;
}

.wccr-dates { display: flex; gap: 1rem; }
.wccr-dates .wccr-field { flex: 1; }

.wccr-driver label { flex-direction: row; align-items: center; gap: 0.5rem; font-weight: 500; }
.wccr-driver input { width: auto; }

.wccr-tiers-note {
	font-size: 0.85rem;
	color: #6b7280;
	margin: 0.25rem 0 1rem;
}

.wccr-estimate-box {
	border-top: 1px dashed rgba( 0, 0, 0, 0.15 );
	margin-top: 0.5rem;
	padding-top: 0.75rem;
}
.wccr-est-line { display: flex; justify-content: space-between; padding: 0.2rem 0; }
.wccr-est-disc { color: #15803d; }
.wccr-est-total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid rgba( 0, 0, 0, 0.1 ); margin-top: 0.35rem; padding-top: 0.5rem; }

.wccr-booking-form .single_add_to_cart_button { margin-top: 1rem; width: 100%; }

@media ( max-width: 480px ) {
	.wccr-dates { flex-direction: column; gap: 0; }
}

/* ---- Shortcode grid: [wccr_cars] / [wccr_branches] ---- */
.wccr-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(3, 1fr);
	margin: 1.5rem 0;
}
.wccr-cols-1 { grid-template-columns: 1fr; }
.wccr-cols-2 { grid-template-columns: repeat(2, 1fr); }
.wccr-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media ( max-width: 900px ) { .wccr-grid { grid-template-columns: repeat(2, 1fr); } }
@media ( max-width: 560px ) { .wccr-grid { grid-template-columns: 1fr; } }

.wccr-card {
	display: flex;
	flex-direction: column;
	border: 1px solid rgba( 0, 0, 0, 0.1 );
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.06 );
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.wccr-card:hover { box-shadow: 0 6px 18px rgba( 0, 0, 0, 0.12 ); transform: translateY( -2px ); }
.wccr-card-media img { display: block; width: 100%; height: 180px; object-fit: cover; }
.wccr-card-body { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem; flex: 1; }
.wccr-card-title { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.wccr-card-title a { text-decoration: none; }
.wccr-card-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; font-size: 0.9rem; color: #555; }
.wccr-card-price { margin-top: auto; font-size: 1.05rem; }
.wccr-card-price strong { font-size: 1.3rem; color: #15803d; }
.wccr-card-btn { text-align: center; margin-top: 0.35rem; }

.wccr-branch-card .wccr-loc-list { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.wccr-branch-card .wccr-loc-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; border-top: 1px dashed rgba( 0, 0, 0, 0.1 ); }

/* Brand line + EV badge on cards */
.wccr-card-brand { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: #6b7280; }
.wccr-card-media { position: relative; display: block; }
.wccr-badge {
	position: absolute;
	top: 0.6rem;
	left: 0.6rem;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.4;
	color: #fff;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.2 );
}
.wccr-badge-ev { background: #15803d; }

/* ---- Search form: [wccr_search] ---- */
.wccr-search-form {
	padding: 1.25rem;
	border: 1px solid rgba( 0, 0, 0, 0.1 );
	border-radius: 12px;
	background: rgba( 0, 0, 0, 0.02 );
	margin: 1.5rem 0;
}
.wccr-search-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 0.85rem 1rem;
	align-items: end;
}
.wccr-search-field { display: flex; flex-direction: column; }
.wccr-search-field label { font-weight: 600; margin-bottom: 0.3rem; font-size: 0.9rem; }
.wccr-search-field input[type="date"],
.wccr-search-field select {
	padding: 0.5rem 0.6rem;
	border: 1px solid rgba( 0, 0, 0, 0.2 );
	border-radius: 8px;
	font-size: 0.95rem;
	width: 100%;
}
.wccr-search-ev { justify-content: flex-end; }
.wccr-search-ev label { flex-direction: row; align-items: center; gap: 0.4rem; font-weight: 500; }
.wccr-search-ev input { width: auto; }
.wccr-search-actions { margin-top: 1rem; }
.wccr-search-btn { font-size: 1rem; padding: 0.6rem 1.6rem; }
.wccr-search-count { font-weight: 600; margin: 1.25rem 0 0.25rem; }
.wccr-search-empty {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	border: 1px dashed rgba( 0, 0, 0, 0.2 );
	border-radius: 10px;
	background: rgba( 0, 0, 0, 0.02 );
	color: #555;
}

/* Bank instructions block on thank-you / emails */
.wccr-bank-instructions {
	border: 1px solid rgba( 0, 0, 0, 0.1 );
	border-radius: 10px;
	padding: 1rem 1.25rem;
	margin: 1.5rem 0;
	background: rgba( 0, 0, 0, 0.02 );
}
.wccr-bank-instructions ul { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.wccr-bank-instructions li { padding: 0.15rem 0; }
