/* Roadlink Rental Booking
 * Colours follow the ST Car Rental theme navy (#161921) and the brand colour setting (--rl-brand).
 * The WhatsApp green is darkened so white text stays readable (5.4:1).
 */
:root {
	--rl-ink: #161921;
	--rl-muted: #5b6170;
	--rl-line: #e3e6ec;
	--rl-line-strong: #c4c9d3;
	--rl-surface: #f5f6f8;
	--rl-wa: #0e7a3d;
	--rl-wa-hover: #0b6331;
	--rl-focus: var(--rl-brand, #a41717);
}

/* ---------- Shop / home page cards ---------- */

.rl-shop {
	padding-bottom: 3rem;
}

/* Rates list replaces the "AED 150 – AED 3,000" range. */
.rl-rates {
	display: block;
	margin: 0.6rem 0 0.1rem;
	border-top: 1px solid var(--rl-line);
	font-size: 1rem;
	line-height: 1.3;
	color: var(--rl-ink);
}

.rl-rate {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.45rem 0;
	border-bottom: 1px solid var(--rl-line);
}

.rl-rate__label {
	font-size: 0.875rem;
	color: var(--rl-muted);
}

.rl-rate__amount {
	font-size: 1rem;
	font-weight: 700;
	white-space: nowrap;
}

.rl-rate__amount del {
	margin-right: 0.25rem;
	font-size: 0.85em;
	font-weight: 400;
}

.rl-card-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.25rem;
	margin-top: 0.85rem;
}

.rl-card-actions a.rl-details-link,
.rl-card-actions a.rl-details-link:visited,
.woocommerce ul.products li.product .rl-card-actions a.rl-details-link {
	align-self: center;
	padding: 0.4rem 0.5rem;
	color: var(--rl-ink);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rl-card-actions a.rl-details-link:hover {
	color: var(--rl-wa);
}

.rl-card-actions a.rl-details-link:focus-visible {
	outline: 3px solid var(--rl-focus);
	outline-offset: 2px;
}

/* One car per row on phones, so photos and buttons have room. */
@media (max-width: 560px) {
	.woocommerce ul.products[class*="columns-"] li.product,
	.woocommerce-page ul.products[class*="columns-"] li.product {
		width: 100%;
		float: none;
	}
}

/* ---------- WhatsApp button ---------- */

a.rl-wa-btn,
a.rl-wa-btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	box-sizing: border-box;
	min-height: 44px;
	padding: 0.6rem 1rem;
	border: 0;
	border-radius: 8px;
	background: var(--rl-wa);
	color: #fff !important;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	transition: background-color 0.15s ease;
}

a.rl-wa-btn:hover,
a.rl-wa-btn:focus {
	background: var(--rl-wa-hover);
	color: #fff !important;
}

a.rl-wa-btn:focus-visible {
	outline: 3px solid var(--rl-focus);
	outline-offset: 2px;
}

.rl-wa-btn__icon {
	flex: none;
	width: 1.2em;
	height: 1.2em;
}

a.rl-wa-btn--block {
	width: 100%;
	min-height: 52px;
	font-size: 1rem;
}

/* ---------- Product page ---------- */

.rl-from {
	color: var(--rl-ink);
	font-weight: 600;
}

.rl-per {
	font-size: 0.85em;
	font-weight: 400;
	color: var(--rl-muted);
	white-space: nowrap;
}

/* Customers don't need the stock code on a rental page. */
.single-product .product_meta .sku_wrapper {
	display: none;
}

/* Period dropdown is replaced by the buttons below (booking.js). */
.rl-select-hidden {
	display: none !important;
}

.rl-has-periods table.variations,
.rl-has-periods table.variations tbody,
.rl-has-periods table.variations tr,
.rl-has-periods table.variations th,
.rl-has-periods table.variations td {
	display: block;
	width: 100%;
}

.rl-has-periods table.variations th,
.rl-has-periods table.variations td,
.rl-has-periods table.variations tr:hover > th,
.rl-has-periods table.variations tr:hover > td {
	background: transparent;
}

.rl-has-periods table.variations th {
	padding: 0 0 0.4rem;
}

.rl-has-periods table.variations td {
	padding: 0;
}

/* The chosen button already shows the price, and every choice is valid. */
.rl-has-periods .woocommerce-variation-price,
.rl-has-periods .reset_variations {
	display: none !important;
}

.rl-periods {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 0.5rem;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.rl-periods[hidden] {
	display: none;
}

.woocommerce div.product form.cart .variations label.rl-period,
.rl-period {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.7rem 0.8rem;
	border: 1.5px solid var(--rl-line-strong);
	border-radius: 10px;
	background: #fff;
	color: var(--rl-ink);
	font-weight: 400;
	line-height: 1.25;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.rl-period:hover {
	border-color: var(--rl-ink);
}

.rl-period__input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.rl-period__label {
	font-size: 0.85rem;
	font-weight: 600;
}

.rl-period__price {
	font-size: 1rem;
	font-weight: 700;
}

.rl-period__price .woocommerce-Price-amount {
	white-space: nowrap;
}

.rl-period__price .rl-per {
	color: inherit;
	opacity: 0.75;
}

.woocommerce div.product form.cart .variations label.rl-period.is-checked,
.rl-period.is-checked {
	border-color: var(--rl-ink);
	background: var(--rl-ink);
	color: #fff;
}

.rl-period:has(.rl-period__input:focus-visible) {
	outline: 3px solid var(--rl-focus);
	outline-offset: 2px;
}

.rl-booking {
	display: grid;
	gap: 0.85rem;
	margin-top: 1.1rem;
}

.rl-booking__fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: 0.75rem;
}

.rl-field__label {
	display: block;
	margin-bottom: 0.3rem;
	color: var(--rl-ink);
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.3;
}

.rl-booking .rl-field__input {
	box-sizing: border-box;
	width: 100%;
	min-height: 46px;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--rl-line-strong);
	border-radius: 8px;
	background: #fff;
	color: var(--rl-ink);
	font: inherit;
	line-height: 1.3;
}

.rl-booking .rl-field__input:focus {
	border-color: var(--rl-ink);
	outline: 2px solid var(--rl-ink);
	outline-offset: 1px;
}

.rl-booking .rl-field__input:disabled {
	background: var(--rl-surface);
	color: var(--rl-muted);
}

.rl-duration {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.rl-booking .rl-duration .rl-duration__input {
	flex: none;
	width: 5.5rem;
}

.rl-duration__unit {
	color: var(--rl-muted);
}

.rl-booking__note {
	margin: 0;
	color: var(--rl-muted);
	font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
	a.rl-wa-btn,
	.rl-period {
		transition: none;
	}
}

/* ---------- Rate board: [roadlink_rate_board] ---------- */

.rl-board {
	padding: 1.25rem 1.4rem 1.1rem;
	border-top: 4px solid var(--rl-focus);
	border-radius: 14px;
	background: #1d212a;
	color: #fff;
}

.rl-board__title {
	margin: 0 0 0.6rem;
	color: #c9ced8;
	font-size: 0.9rem;
	font-weight: 600;
}

.rl-board__rows {
	margin: 0;
	padding: 0;
}

.rl-board__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.65rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rl-board__row:last-child {
	border-bottom: 0;
}

.rl-board__row dt {
	margin: 0;
	color: #e3e6ec;
	font-size: 1rem;
	font-weight: 500;
}

.rl-board__row dd {
	margin: 0;
	text-align: right;
	white-space: nowrap;
}

.rl-board__price {
	color: #fff;
	font-size: 1.45rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
}

.rl-board__per {
	color: #c9ced8;
	font-size: 0.9rem;
}

.rl-board__note {
	margin: 0.5rem 0 0;
	color: #aeb5c2;
	font-size: 0.8rem;
}

/* ---------- ST Car Rental theme: no full-screen loading logo ---------- */

#st-car-rental-loader-container {
	display: none !important;
}

/* ---------- Footer: [roadlink_footer] in Footer Widget Area 1 ---------- */

.rl-footer {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr);
	gap: 2rem 2.75rem;
}

.footer-area .rl-footer .rl-footer__name {
	margin: 0 0 0.7rem;
	color: #fff;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
}

.footer-area .rl-footer .rl-footer__text {
	max-width: 22rem;
	margin: 0 0 1.1rem;
}

.footer-area .rl-footer .rl-footer__line {
	margin: 0 0 0.9rem;
	line-height: 1.5;
}

.footer-area .rl-footer .rl-footer__label {
	display: block;
	margin-bottom: 0.1rem;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
}

.footer-area .rl-footer .rl-footer__line a {
	overflow-wrap: anywhere;
}

/* The footer uses Footer Widget Area 1 only: give it the full width and hide the empty areas. */
.footer-widget .footer-area:has(.rl-footer) {
	flex: 0 0 100%;
	max-width: 100%;
}

.footer-widget .footer-area:not(:has(*)) {
	display: none;
}

@media (max-width: 991px) {
	.rl-footer {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.rl-footer {
		grid-template-columns: 1fr;
	}
}
