/*
 * Options & extras on ERP vehicle pages.
 * Theme colours: primary #ffa633, text #201F1D, muted #6b6b6b, line #ececec.
 */

/* ── Booking form: option cards ─────────────────────────────────────────── */

.rx-extras {
	margin: 6px 0 18px;
}

.rx-extras h6 {
	margin-bottom: 2px !important;
}

.rx-hint {
	margin: 0 0 12px;
	color: #6b6b6b;
	font-size: 13px;
	line-height: 1.45;
}

.rx-extras .dsrent_resource {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.rx-option {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid #ececec;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	user-select: none;
	transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.rx-option:hover {
	border-color: #ffd29a;
	background: #fffcf7;
}

/* The real checkbox stays in the form (and in the tab order), just invisible. */
.rx-option .rx-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.rx-option .rx-input:focus-visible ~ .rx-box {
	box-shadow: 0 0 0 3px rgba(255, 166, 51, .35);
}

.rx-box {
	flex: 0 0 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border: 1.5px solid #cfcfcf;
	border-radius: 6px;
	background: #fff;
	color: transparent;
	font-size: 13px;
	transition: all .15s ease;
}

.rx-icon {
	flex: 0 0 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 9px;
	background: #f6f6f6;
	color: #201f1d;
	font-size: 16px;
}

.rx-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}

.rx-name {
	color: #201f1d;
	font-size: 14px;
	font-weight: 600;
}

.rx-meta {
	color: #8a8a8a;
	font-size: 12px;
}

.rx-price {
	flex: 0 0 auto;
	color: #201f1d;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.rx-option.is-selected {
	border-color: #ffa633;
	background: #fff8ef;
	box-shadow: 0 0 0 1px #ffa633 inset;
}

.rx-option.is-selected .rx-box {
	border-color: #ffa633;
	background: #ffa633;
	color: #fff;
}

.rx-option.is-selected .rx-icon {
	background: #ffe7c7;
}

/* Live summary under the list. */
.rx-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 10px;
	padding: 10px 14px;
	border-radius: 10px;
	background: #201f1d;
	color: #fff;
	font-size: 13px;
	transition: background-color .15s ease;
}

.rx-summary-total {
	font-weight: 700;
	white-space: nowrap;
}

.rx-summary.is-empty {
	background: #f6f6f6;
	color: #8a8a8a;
}

/* ── Page body: option tiles ────────────────────────────────────────────── */

.rx-section .rx-hint {
	margin-top: -4px;
}

.rx-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 12px;
}

/* Icon + text on the first row, the button full width underneath: names and
   prices stay on one line instead of being squeezed by an inline button. */
.rx-tile {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border: 1px solid #ececec;
	border-radius: 12px;
	background: #fff;
	transition: border-color .15s ease, background-color .15s ease;
}

.rx-tile-icon {
	flex: 0 0 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: #fff4e6;
	color: #ffa633;
	font-size: 18px;
}

.rx-tile-body {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}

.rx-tile-name,
.rx-tile-price {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rx-tile-name {
	color: #201f1d;
	font-size: 15px;
	font-weight: 600;
}

.rx-tile-price {
	color: #6b6b6b;
	font-size: 13px;
}

.rx-tile-btn {
	flex: 1 0 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 12px;
	border: 1px solid #201f1d;
	border-radius: 8px;
	background: #fff;
	color: #201f1d;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: all .15s ease;
}

/* The theme styles every button's text colour; win explicitly, including the
   inner label and icon, or the hover state reads dark-on-dark. */
.rx-section .rx-tile-btn:hover,
.rx-section .rx-tile-btn:hover span,
.rx-section .rx-tile-btn:hover i {
	background-color: #201f1d;
	color: #fff !important;
}

.rx-section .rx-tile.is-selected .rx-tile-btn:hover,
.rx-section .rx-tile.is-selected .rx-tile-btn:hover span,
.rx-section .rx-tile.is-selected .rx-tile-btn:hover i {
	background-color: #f29418;
	color: #fff !important;
}

.rx-section .rx-tile-btn span,
.rx-section .rx-tile-btn i {
	color: inherit !important;
	background: transparent !important;
}

.rx-tile-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 166, 51, .45);
}

.rx-tile.is-selected {
	border-color: #ffa633;
	background: #fff8ef;
}

.rx-tile.is-selected .rx-tile-btn {
	border-color: #ffa633;
	background: #ffa633;
	color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	.rx-option, .rx-box, .rx-summary, .rx-tile, .rx-tile-btn {
		transition: none;
	}
}
