/* Protection & Extras — Europcar-style */
.vrm-protection-extras {
	--vrm-pe-accent: var(--vrm-booking-step-active, #00802f);
	--vrm-pe-cta: #f5b800;
	--vrm-booking-steps-offset: 0px;
	--vrm-booking-steps-height: 7.5rem;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 1rem 2.5rem;
	font-family: inherit;
}

.vrm-protection-extras .vrm-booking-steps {
	margin-bottom: 1rem;
}

/* Step card summaries on this page */
.vrm-booking-steps__vehicle-summary .vrm-booking-steps__vehicle-name,
.vrm-booking-steps__vehicle-summary .vrm-booking-steps__vehicle-price {
	display: block;
}

.vrm-booking-steps__vehicle-name {
	font-size: 0.78rem;
	font-weight: 800;
	color: #1a2332;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vrm-booking-steps__vehicle-price {
	font-size: 0.72rem;
	color: #6b7785;
	margin-top: 0.1rem;
}

.vrm-booking-steps__pe-line {
	display: block;
	font-size: 0.72rem;
	color: #6b7785;
	line-height: 1.35;
}

.vrm-booking-steps__review-label {
	display: block;
	font-size: 0.62rem;
	font-weight: 700;
	text-transform: uppercase;
	color: #8a96a3;
}

.vrm-booking-steps__review-amount {
	display: block;
	font-size: 0.82rem;
	font-weight: 800;
	color: #1a2332;
	margin-top: 0.1rem;
}

/* Sticky toolbar */
.vrm-pe__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.25rem;
	padding: 0.85rem 0;
}

.vrm-pe__toolbar--sticky {
	position: sticky;
	top: calc(var(--vrm-booking-steps-offset, 0px) + var(--vrm-booking-steps-height, 7.5rem) + 0.5rem);
	z-index: 205;
	background: #f4f7fa;
	margin-left: -1rem;
	margin-right: -1rem;
	padding: 0.85rem 1rem;
	border-bottom: 1px solid #dde3ea;
}

.admin-bar .vrm-pe__toolbar--sticky {
	top: calc(var(--vrm-booking-steps-offset, 32px) + var(--vrm-booking-steps-height, 7.5rem) + 0.5rem);
}

.vrm-pe__page-title {
	margin: 0;
	font-size: clamp(1.1rem, 2.5vw, 1.45rem);
	font-weight: 800;
	color: #1a2332;
	flex: 1 1 16rem;
	min-width: 0;
}

.vrm-pe__toolbar-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-shrink: 0;
}

.vrm-pe__total-inline {
	text-align: right;
}

.vrm-pe__total-inline-label {
	display: block;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6b7785;
}

.vrm-pe__total-inline-amount {
	display: block;
	font-size: 1.15rem;
	font-weight: 800;
	color: #1a2332;
}

.vrm-pe__continue {
	min-width: 12rem;
	padding: 0.85rem 1.5rem;
	font-size: 0.95rem;
	font-weight: 800;
	background: var(--vrm-pe-cta);
	color: #1a2332;
	border: none;
	border-radius: 4px;
	white-space: nowrap;
}

.vrm-pe__continue:hover:not(:disabled) {
	background: #e5a800;
}

.vrm-pe__continue:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.vrm-pe__error {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	background: #fcf0f1;
	border: 1px solid #d63638;
	border-radius: 4px;
	color: #8a2424;
}

.vrm-pe__loading {
	margin: 0 0 1rem;
	color: #6b7785;
}

.vrm-pe__loading[hidden] {
	display: none !important;
}

.vrm-pe__empty {
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	border-radius: 8px;
	background: #f4f7fa;
	color: #4a5568;
	font-size: 0.95rem;
}

.vrm-pe__empty[hidden] {
	display: none !important;
}

.vrm-pe__section {
	margin-bottom: 1.75rem;
}

.vrm-pe__section-title {
	margin: 0 0 1rem;
	font-size: 1rem;
	font-weight: 800;
	color: #1a2332;
}

/* Protection cards */
.vrm-pe__protection-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1rem;
}

.vrm-pe__protection-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 16rem;
	padding: 1.15rem 1.25rem 1rem;
	background: #fff;
	border: 1px solid #dde3ea;
	border-radius: 4px;
	box-shadow: 0 2px 12px rgba(15, 23, 32, 0.06);
}

.vrm-pe__protection-card.is-selected {
	border-color: var(--vrm-pe-accent);
	box-shadow: inset 0 0 0 1px var(--vrm-pe-accent);
}

.vrm-pe__badge-selected {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.2rem 0.45rem;
	font-size: 0.58rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: var(--vrm-pe-accent);
	color: #fff;
	border-radius: 2px;
}

.vrm-pe__protection-title {
	margin: 1.5rem 0 0.35rem;
	font-size: 1.05rem;
	font-weight: 800;
	color: #1a2332;
}

.vrm-pe__protection-excess {
	margin: 0 0 0.35rem;
	font-size: 0.78rem;
	color: #6b7785;
}

.vrm-pe__protection-price {
	margin: 0 0 0.75rem;
	font-size: 1.35rem;
	font-weight: 800;
	color: #1a2332;
}

.vrm-pe__protection-features {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
}

.vrm-pe__protection-features li {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	margin-bottom: 0.35rem;
	font-size: 0.82rem;
	color: #2c3338;
	line-height: 1.4;
}

.vrm-pe__check {
	color: var(--vrm-pe-accent);
	font-weight: 800;
	flex-shrink: 0;
}

.vrm-pe__protection-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 0.85rem;
	padding-top: 0.85rem;
	border-top: 1px solid #eef1f4;
}

.vrm-pe__more-details {
	border: none;
	background: transparent;
	padding: 0;
	font-size: 0.82rem;
	font-weight: 700;
	color: #1a2332;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.vrm-pe__select-btn {
	min-width: 6.5rem;
	padding: 0.55rem 1rem;
	font-size: 0.85rem;
	font-weight: 800;
	border-radius: 4px;
	border: none;
	cursor: pointer;
	background: var(--vrm-pe-cta);
	color: #1a2332;
}

.vrm-pe__select-btn.is-active {
	background: #eef1f4;
	color: #6b7785;
	cursor: default;
}

/* Extras grid */
.vrm-pe__extras-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.vrm-pe__extra-card {
	display: flex;
	flex-direction: column;
	padding: 1rem;
	background: #fff;
	border: 1px solid #dde3ea;
	border-radius: 4px;
	box-shadow: 0 2px 10px rgba(15, 23, 32, 0.05);
}

.vrm-pe__extra-card.is-added {
	border-color: var(--vrm-pe-accent);
}

.vrm-pe__extra-media {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 5.5rem;
	margin-bottom: 0.75rem;
	background: #f8fafb;
	border-radius: 4px;
	overflow: hidden;
}

.vrm-pe__extra-media img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.vrm-pe__extra-placeholder {
	display: block;
	width: 3rem;
	height: 3rem;
	background: #dde3ea;
	border-radius: 4px;
}

.vrm-pe__extra-title {
	margin: 0 0 0.35rem;
	font-size: 0.88rem;
	font-weight: 800;
	color: #1a2332;
	line-height: 1.3;
}

.vrm-pe__extra-desc {
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	color: #6b7785;
	line-height: 1.45;
	flex: 1;
}

.vrm-pe__read-more {
	border: none;
	background: transparent;
	padding: 0;
	font-size: inherit;
	font-weight: 700;
	color: #1a2332;
	cursor: pointer;
	text-decoration: underline;
}

.vrm-pe__extra-price {
	margin: 0 0 0.75rem;
	font-size: 0.88rem;
	font-weight: 800;
	color: #1a2332;
}

.vrm-pe__extra-price span {
	font-weight: 600;
	color: #6b7785;
}

.vrm-pe__extra-actions {
	display: flex;
	justify-content: flex-end;
}

.vrm-pe__qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid #dde3ea;
	border-radius: 4px;
	overflow: hidden;
}

.vrm-pe__qty-btn {
	width: 2rem;
	height: 2rem;
	border: none;
	background: #fff;
	font-size: 1.1rem;
	font-weight: 700;
	color: #1a2332;
	cursor: pointer;
}

.vrm-pe__qty-btn:hover {
	background: #f4f7fa;
}

.vrm-pe__qty-val {
	min-width: 1.75rem;
	text-align: center;
	font-size: 0.9rem;
	font-weight: 800;
}

.vrm-pe-notice {
	padding: 1rem;
	background: #fff8e5;
	border: 1px solid #f0d58c;
	border-radius: 8px;
}

@media (max-width: 1024px) {
	.vrm-pe__extras-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	.admin-bar .vrm-pe__toolbar--sticky {
		top: calc(46px + var(--vrm-booking-steps-height, 6.5rem) + 0.5rem);
	}
}

@media (max-width: 768px) {
	.vrm-pe__toolbar--sticky {
		flex-direction: column;
		align-items: stretch;
	}

	.vrm-pe__toolbar-actions {
		width: 100%;
		justify-content: space-between;
	}

	.vrm-pe__continue {
		flex: 1 1 auto;
		min-width: 0;
	}

	.vrm-pe__protection-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.vrm-pe__extras-grid {
		grid-template-columns: 1fr;
	}

	.vrm-pe__toolbar-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.vrm-pe__total-inline {
		text-align: left;
	}

	.vrm-pe__continue {
		width: 100%;
	}
}
