/* SearchEV Variant Manager - front end accordion */

.sev-vm-accordion {
	display: flex;
	flex-direction: column;
	font-family: inherit;
	scroll-margin-top: 180px;
	overflow-anchor: none;
}

.sev-vm-panel {
	border: 1px solid #ddd;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	color: #000;
	margin-bottom: 14px;
	overflow-anchor: none;
	scroll-margin-top: 180px;
}

.sev-vm-panel:last-child {
	margin-bottom: 0;
}

.sev-vm-panel-header {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	background: #fff;
	color: #000;
	border: none;
	cursor: pointer;
	text-align: left;
	font: inherit;
}

.sev-vm-panel-title-group {
	display: flex;
	align-items: baseline;
	gap: 8px;
	min-width: 0;
}

.sev-vm-panel-right {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
	flex-shrink: 0;
}

.sev-vm-panel-title {
	font-weight: 700;
	font-size: 16px;
	color: #000;
	white-space: nowrap;
}

.sev-vm-panel-subspecs {
	font-size: 13px;
	color: #000;
	white-space: nowrap;
}

.sev-vm-panel-price {
	font-weight: 700;
	font-size: 15px;
	color: #6b21ff;
	white-space: nowrap;
}

.sev-vm-panel-icon {
	font-size: 14px;
	transition: transform .2s ease;
	color: #000;
}

.sev-vm-panel.is-open .sev-vm-panel-icon {
	transform: rotate(180deg);
}

.sev-vm-panel-content {
	max-height: 0;
	overflow: hidden;
	overflow-anchor: none;
	padding: 0 20px;
	border-top: 0 solid #f0f0f0;
	transition: max-height .4s ease, padding .4s ease, border-top-width .2s ease;
}

.sev-vm-panel.is-open .sev-vm-panel-content {
	max-height: 1200px;
	padding: 0 20px 24px;
	border-top-width: 1px;
}

.sev-vm-row {
	padding-top: 20px;
}

.sev-vm-row-specs {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}

.sev-vm-specs-left {
	flex: 1 1 280px;
}

.sev-vm-specs-right {
	flex: 1 1 280px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.sev-vm-variant-image {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.sev-vm-specs-table {
	width: 100%;
	border-collapse: collapse;
}

.sev-vm-specs-table tr {
	border-bottom: 1px solid #f0f0f0;
}

.sev-vm-specs-table th,
.sev-vm-specs-table td {
	text-align: left;
	padding: 10px 0;
	font-size: 14px;
	font-weight: 400;
	color: #333;
}

.sev-vm-specs-table td {
	text-align: right;
	font-weight: 700;
}

.sev-vm-row h2 {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 12px;
}

.sev-vm-pill-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sev-vm-pill {
	background: #e6f9c8;
	color: #2c3d00;
	font-size: 13px;
	padding: 8px 14px;
	border-radius: 6px;
	white-space: nowrap;
}

.sev-vm-colours-list {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

.sev-vm-colour-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}

.sev-vm-swatch {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1.5px solid #222;
	display: inline-block;
	box-sizing: border-box;
}

.sev-vm-swatch-dual {
	background-image: linear-gradient(135deg, var(--sev-vm-c1) 50%, var(--sev-vm-c2) 50%);
}

.sev-vm-row-cta {
	padding-top: 20px;
}

.sev-vm-details-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
	background: #e3f2e6;
	border: 1px solid #bcd9c2;
	color: #10442e;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	padding: 14px 20px;
	border-radius: 6px;
	transition: background .15s ease;
}

.sev-vm-details-btn:hover,
.sev-vm-details-btn:focus {
	background: #d3ebd8;
	color: #10442e;
}

.sev-vm-details-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.sev-vm-extra-variant {
	max-height: 0;
	opacity: 0;
	margin-bottom: 0;
	overflow: hidden;
	overflow-anchor: none;
	border-width: 0;
	transition: max-height .45s ease, opacity .35s ease, margin-bottom .45s ease, border-width .2s ease;
}

.sev-vm-accordion.sev-vm-show-all .sev-vm-extra-variant {
	max-height: 1200px;
	opacity: 1;
	margin-bottom: 14px;
	border-width: 1px;
}

.sev-vm-accordion.sev-vm-show-all .sev-vm-extra-variant:last-child {
	margin-bottom: 0;
}

.sev-vm-toggle-variants {
	margin-top: 14px;
	cursor: pointer;
}

.sev-vm-toggle-icon svg {
	transition: transform .2s ease;
}

.sev-vm-toggle-variants.is-expanded .sev-vm-toggle-icon svg {
	transform: rotate(180deg);
}

@media (max-width: 600px) {
	.sev-vm-accordion,
	.sev-vm-panel {
		scroll-margin-top: 100px;
	}

	.sev-vm-panel-header {
		flex-wrap: wrap;
	}
	.sev-vm-panel-title {
		flex: 1 1 100%;
	}

	.sev-vm-specs-right {
		order: -1;
		flex-basis: 100%;
	}
	.sev-vm-specs-left {
		flex-basis: 100%;
	}
}
