.rydeo-listing-driver-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: 8px;
	padding: 5px 10px;
	border-radius: 999px;
	background: #b50917;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.rydeo-hire-checkout {
	margin: 32px 0 12px;
	border: 1px solid #e4e7ec;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(16, 24, 40, .06);
	overflow: hidden;
}

.rydeo-hire-toggle-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px;
	background: linear-gradient(135deg, #fff 0%, #fff7f7 100%);
}

.rydeo-hire-eyebrow {
	display: block;
	margin-bottom: 5px;
	color: #b50917;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
}

.rydeo-hire-toggle-row h3 { margin: 0 0 6px; font-size: 21px; }
.rydeo-hire-toggle-row p { margin: 0; color: #667085; }

.rydeo-hire-toggle { position: relative; flex: 0 0 52px; width: 52px; height: 30px; }
.rydeo-hire-toggle input { position: absolute; opacity: 0; }
.rydeo-hire-toggle span { position: absolute; inset: 0; border-radius: 999px; background: #d0d5dd; cursor: pointer; transition: .2s; }
.rydeo-hire-toggle span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s; }
.rydeo-hire-toggle input:checked + span { background: #b50917; }
.rydeo-hire-toggle input:checked + span::after { transform: translateX(22px); }
.rydeo-hire-toggle input:disabled + span { opacity: .45; cursor: not-allowed; }

.rydeo-hire-options { padding: 22px 24px 24px; border-top: 1px solid #f0f1f3; }
.rydeo-hire-options[hidden] { display: none !important; }

.rydeo-hire-mode-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 16px; padding: 14px 16px; border: 1px solid #e4e7ec; border-radius: 10px; background: #f8fafc; }
.rydeo-hire-mode-label { font-size: 13px; font-weight: 700; color: #344054; }
.rydeo-hire-mode-options { display: flex; gap: 16px; }
.rydeo-hire-mode-option { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #344054; font-weight: 600; cursor: pointer; }
.rydeo-hire-mode-option input { margin: 0; accent-color: #b50917; }
.rydeo-hire-hours-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rydeo-hire-hours-field[hidden] { display: none !important; }
.rydeo-hire-hours-field label { font-size: 13px; color: #344054; font-weight: 600; }
.rydeo-hire-hours-field input[type="number"] { width: 72px; margin: 0; padding: 6px 8px; border-radius: 8px; border: 1px solid #d0d5dd; }
.rydeo-hire-hours-field small { flex-basis: 100%; color: #667085; font-size: 11px; }

.rydeo-hire-driver-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.rydeo-hire-driver-count { color: #667085; font-size: 13px; font-weight: 600; }
.rydeo-hire-driver-toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.rydeo-hire-driver-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #344054; font-weight: 700; }
.rydeo-hire-driver-sort select { margin: 0; padding: 7px 10px; border-radius: 8px; }
.rydeo-hire-compare-hint { margin: 0 0 12px; color: #98a2b3; font-size: 12px; }

.rydeo-hire-compare-trigger { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 8px 14px; border: 1px solid #b50917; border-radius: 8px; background: #fff; color: #b50917; font-size: 13px; font-weight: 700; cursor: pointer; transition: .15s; }
.rydeo-hire-compare-trigger:hover:not(:disabled) { background: #b50917; color: #fff; }
.rydeo-hire-compare-trigger:disabled { border-color: #d0d5dd; color: #98a2b3; cursor: not-allowed; }
.rydeo-hire-compare-trigger .rydeo-hire-compare-count { opacity: .85; }

/* Name search above the driver grid */
.rydeo-hire-driver-search-row { position: relative; margin-bottom: 14px; }
.rydeo-hire-driver-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #98a2b3; font-size: 13px; pointer-events: none; }
.rydeo-hire-driver-search { width: 100%; box-sizing: border-box; margin: 0; padding: 10px 14px 10px 36px; border: 1px solid #e4e7ec; border-radius: 8px; font-size: 14px; background: #fff; }
.rydeo-hire-driver-search:focus { outline: none; border-color: #b50917; box-shadow: 0 0 0 3px rgba(181,9,23,.1); }
.rydeo-hire-no-results { margin: 0 0 12px; padding: 14px; border-radius: 10px; background: #f8fafc; color: #667085; text-align: center; font-size: 13px; }
.rydeo-hire-no-results[hidden] { display: none !important; }

.rydeo-hire-driver-grid { display: grid; gap: 12px; }
.rydeo-hire-driver-card { position: relative; display: grid; grid-template-columns: 22px 54px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid #e4e7ec; border-radius: 12px; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.rydeo-hire-driver-card:hover { border-color: #c8ccd3; box-shadow: 0 7px 18px rgba(16,24,40,.08); transform: translateY(-1px); }
.rydeo-hire-driver-card.is-selected { border-color: #b50917; box-shadow: 0 0 0 2px rgba(181,9,23,.09); background: #fff7f7; }
.rydeo-hire-driver-card.is-preferred { background: #fffafa; }
.rydeo-hire-driver-card.is-unavailable,
.rydeo-hire-driver-card.rydeo-hire-driver-capped,
.rydeo-hire-driver-card.rydeo-hire-driver-no-match { display: none; }
.rydeo-hire-driver-card > input { margin: 0; }

/* "Selected" ribbon — absolutely positioned so it never disturbs the card's
 * 5-column grid layout (radio / photo / copy / price / compare). */
.rydeo-hire-driver-selected-badge { display: none; position: absolute; top: -10px; right: 14px; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: #b50917; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.4; box-shadow: 0 2px 6px rgba(181,9,23,.35); }
.rydeo-hire-driver-card.is-selected .rydeo-hire-driver-selected-badge { display: inline-flex; }

/* "Added by default" note — full-width row under the card content so it never
 * disturbs the 5-column grid layout (radio / photo / copy / price / compare). */
.rydeo-hire-driver-default-note { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; padding: 8px 12px; border-radius: 8px; background: #fff1f1; color: #8a1116; font-size: 12px; line-height: 1.4; }
.rydeo-hire-driver-default-note i { color: #b50917; }
.rydeo-hire-driver-remove-default { margin-left: auto; padding: 4px 10px; border: 1px solid #b50917; border-radius: 999px; background: #fff; color: #b50917; font-size: 11px; font-weight: 700; cursor: pointer; transition: .15s; }
.rydeo-hire-driver-remove-default:hover { background: #b50917; color: #fff; }

/* "View All Drivers" — shown once more than 3 drivers match and an admin has
 * configured the [rydeo_driver_directory] page to send customers to. */
.rydeo-hire-view-all { display: flex; justify-content: center; margin-top: 14px; }
.rydeo-hire-view-all-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 1px solid #b50917; border-radius: 999px; background: #fff; color: #b50917; font-size: 13px; font-weight: 700; text-decoration: none; transition: .15s; }
.rydeo-hire-view-all-btn:hover { background: #b50917; color: #fff; }
.rydeo-hire-driver-photo { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; overflow: hidden; background: #f2f4f7; color: #667085; }
.rydeo-hire-driver-photo img { width: 100%; height: 100%; object-fit: cover; }
.rydeo-hire-driver-copy { display: flex; min-width: 0; flex-direction: column; }
.rydeo-hire-driver-copy strong { color: #101828; font-size: 16px; }
.rydeo-hire-driver-copy small { color: #16803c; font-style: normal; }
.rydeo-hire-driver-copy em { margin-top: 3px; color: #667085; font-size: 12px; font-style: normal; }
.rydeo-hire-driver-price { text-align: right; color: #101828; font-size: 16px; font-weight: 800; white-space: nowrap; }
.rydeo-hire-driver-price small { display: block; color: #667085; font-size: 11px; font-weight: 500; line-height: 1.4; }

.rydeo-hire-quote { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 13px 15px; border-radius: 10px; background: #101828; color: #fff; }
.rydeo-hire-quote strong { margin-left: auto; font-size: 18px; }
.rydeo-hire-quote small { color: #d0d5dd; }
.rydeo-hire-empty { padding: 18px; border-radius: 10px; background: #f8fafc; color: #667085; text-align: center; }
#booking-confirmation-summary .rydeo-vehicle-fee-line,
#booking-confirmation-summary .rydeo-driver-fee-line { font-weight: 600; }

/* Compare checkbox on each driver card */
.rydeo-hire-driver-compare-pick { display: flex; flex-direction: column; align-items: center; gap: 3px; padding-left: 10px; border-left: 1px solid #f0f1f3; font-size: 11px; color: #667085; font-weight: 600; white-space: nowrap; }
.rydeo-hire-driver-compare-pick input { margin: 0; accent-color: #b50917; }

/* Compare modal */
.rydeo-compare-modal[hidden] { display: none !important; }
.rydeo-compare-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.rydeo-compare-modal__overlay { position: absolute; inset: 0; background: rgba(16, 24, 40, .55); }
.rydeo-compare-modal__panel { position: relative; z-index: 1; width: 100%; max-width: 780px; max-height: 86vh; overflow: hidden; display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(16,24,40,.25); }
.rydeo-compare-modal__header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #f0f1f3; }
.rydeo-compare-modal__header h4 { margin: 0; font-size: 18px; color: #101828; }
.rydeo-compare-modal__close { border: 0; background: transparent; font-size: 26px; line-height: 1; color: #667085; cursor: pointer; padding: 0 4px; }
.rydeo-compare-modal__body { overflow: auto; padding: 18px 22px 22px; }

.rydeo-compare-table { width: 100%; border-collapse: collapse; }
.rydeo-compare-table th, .rydeo-compare-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #f0f1f3; vertical-align: top; font-size: 13px; color: #344054; }
.rydeo-compare-table th { width: 130px; color: #98a2b3; font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }
.rydeo-compare-driver { display: flex; align-items: center; gap: 10px; }
.rydeo-compare-driver-photo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #f2f4f7; flex: 0 0 auto; }
.rydeo-compare-driver-photo img { width: 100%; height: 100%; object-fit: cover; }
.rydeo-compare-badge { display: block; margin-top: 2px; color: #b50917; font-weight: 700; }
.rydeo-compare-table__pick td { border-bottom: none; padding-top: 16px; }
.rydeo-compare-select { width: 100%; padding: 9px 12px; border: 0; border-radius: 8px; background: #b50917; color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.rydeo-compare-select:hover { background: #93060f; }
body.rydeo-compare-modal-open { overflow: hidden; }

@media (max-width: 767px) {
	.rydeo-hire-toggle-row { align-items: flex-start; padding: 20px; }
	.rydeo-hire-options { padding: 18px; }
	.rydeo-hire-trip-fields { grid-template-columns: 1fr; }
	.rydeo-hire-driver-card { grid-template-columns: 20px 46px minmax(0, 1fr); }
	.rydeo-hire-driver-photo { width: 46px; height: 46px; }
	.rydeo-hire-driver-price { grid-column: 2 / -1; text-align: left; }
	.rydeo-hire-driver-compare-pick { grid-column: 2 / -1; flex-direction: row; justify-content: flex-start; border-left: 0; padding-left: 0; }
	.rydeo-hire-quote { align-items: flex-start; flex-wrap: wrap; }
	.rydeo-hire-quote strong { margin-left: 0; }
	.rydeo-hire-driver-toolbar-actions { width: 100%; justify-content: space-between; }
	.rydeo-compare-table th { width: 96px; }
	.rydeo-hire-driver-selected-badge { top: -8px; right: 8px; font-size: 10px; padding: 3px 8px; }
	.rydeo-hire-view-all-btn { width: 100%; justify-content: center; }
}
