/*
 * Seat-cover product page (templates/single-product-ao-ghe.html).
 * Blocks: vipauto/seat-cover (top), vipauto/seat-sections (lower part), vipauto/quick-order (dialog).
 * Every selector sits under .vap-seat-main or a vap-seat* / vap-order* class (the .vap-btn buttons included), so nothing leaks to other pages.
 * Spacing scale 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64, type 12 / 13 / 14 / 15 / 16 / 18 px.
 */

.vap-seat-main {
	--vap-seat-wrap: min(1240px, calc(100% - 48px));
	--vap-seat-pad: 64px;
	--vap-seat-ink: var(--vap-warm-gray);
	--vap-seat-soft: color-mix(in srgb, var(--vap-gold) 12%, var(--vap-ivory));
}

/* Core's flow layout adds a gap between the blocks; the sections own their spacing. */
.vap-seat-main > * {
	margin-block: 0;
}

.vap-seat [hidden],
.vap-seat-sections [hidden],
.vap-order [hidden] {
	display: none !important;
}

/* Buttons ---------------------------------------------------------------- */
.vap-seat-main .vap-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	height: 49px;
	padding: 0 22px;
	border: 1px solid transparent;
	border-radius: 8px;
	font: 600 13px/1.2 var(--vap-font);
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
}
.vap-seat-main .vap-btn svg {
	width: 18px;
	height: 18px;
	flex: none;
}
.vap-seat-main .vap-btn--primary {
	background: linear-gradient(112deg, var(--vap-fold-deep) 0%, var(--vap-crimson) calc(100% - 52px), var(--vap-orange) calc(100% - 13px), var(--vap-gold) 100%);
	color: var(--vap-white);
}
.vap-seat-main .vap-btn--outline {
	border-color: var(--vap-hairline);
	background: var(--vap-white);
	color: var(--vap-warm-gray);
}
.vap-seat-main .vap-btn--outline:hover {
	border-color: var(--vap-crimson);
	color: var(--vap-crimson);
}
.vap-seat-main .vap-btn:focus-visible,
.vap-seat__chip:focus-visible,
.vap-seat__line:focus-visible,
.vap-seat__contact a:focus-visible,
.vap-order__close:focus-visible {
	outline: 3px solid var(--vap-crimson);
	outline-offset: 2px;
}
.vap-seat-main .vap-btn[disabled] {
	opacity: 0.6;
	cursor: wait;
}

/* Top of the page --------------------------------------------------------- */
.vap-seat__crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	box-sizing: border-box;
	width: var(--vap-seat-wrap);
	margin: 0 auto;
	padding-block: 16px;
	font-size: 14px;
	color: var(--vap-muted);
}
.vap-seat__crumbs a {
	color: inherit;
	text-decoration: none;
}
.vap-seat__crumbs a:hover {
	color: var(--vap-crimson);
}

.vap-seat__hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 64px;
	align-items: start;
	width: var(--vap-seat-wrap);
	margin: 0 auto;
	padding-bottom: 48px;
}

.vap-seat__image {
	position: relative;
	width: 100%;
	max-width: 580px;
	aspect-ratio: 1 / 1;
	margin-inline: auto;
	overflow: hidden;
	isolation: isolate;
	border-radius: var(--vap-radius);
	background: var(--vap-ivory);
}
/* .vap-seat prefix: WooCommerce's ".woocommerce img { height: auto }" is more specific than a lone class. */
.vap-seat .vap-seat__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	object-fit: contain;
	border-radius: inherit;
}
.vap-seat__image--full-bleed .vap-seat__img {
	object-fit: cover;
}
.vap-seat__badge {
	position: absolute;
	z-index: 2;
	top: 16px;
	left: 16px;
	max-width: calc(100% - 100px);
	padding: 4px 8px;
	border: 1px solid var(--vap-hairline);
	border-radius: 4px;
	background: var(--vap-white);
	color: var(--vap-fold-deep);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.5;
}
.vap-seat__tag {
	position: absolute;
	z-index: 2;
	top: 12px;
	right: 16px;
	background: var(--vap-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-family: var(--vap-serif);
	font-size: 30px;
	font-weight: 600;
	font-variant-numeric: lining-nums;
	line-height: 1.3;
}

.vap-seat__copy {
	min-width: 0;
}
.vap-seat__eyebrow {
	margin: 0 0 12px;
	color: var(--vap-crimson);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.5;
}
.vap-seat__title {
	margin: 0 0 16px;
	font-size: 39px;
	font-weight: 500;
	letter-spacing: -1px;
	line-height: 1.25;
}
.vap-seat__title em {
	display: block;
	margin-top: 8px;
	color: var(--vap-crimson);
	font-family: var(--vap-serif);
	font-size: 47px;
	font-weight: 500;
}
.vap-seat__title--long {
	font-size: 28px;
	letter-spacing: -0.5px;
}
.vap-seat__intro {
	max-width: 460px;
	margin: 0;
	color: var(--vap-muted);
	font-size: 15px;
	line-height: 1.65;
}
.vap-seat__features {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 24px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	line-height: 1.5;
}
.vap-seat__features li {
	display: flex;
	align-items: center;
	gap: 8px;
}
.vap-seat__features svg {
	width: 16px;
	height: 16px;
	flex: none;
	color: var(--vap-crimson);
}

.vap-seat__price {
	margin-top: 24px;
	padding-block: 16px;
	border-block: 1px solid var(--vap-border);
}
.vap-seat__price-label {
	display: block;
	color: var(--vap-muted);
	font-size: 14px;
	line-height: 1.5;
}
.vap-seat__price-line {
	display: flex;
	align-items: baseline;
	gap: 12px;
	min-height: 42px;
	margin: 4px 0 0;
}
.vap-seat__price-now {
	color: var(--vap-crimson);
	font-size: 32px;
	font-weight: 600;
	line-height: 1.3;
}
.vap-seat__price-now.is-quote,
.vap-seat__sticky-price .is-quote {
	background: var(--vap-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.vap-seat__price-now.is-quote {
	font-size: 26px;
}
.vap-seat__price-old {
	color: var(--vap-muted);
	font-size: 18px;
}
.vap-seat__price-note {
	margin: 4px 0 0;
	color: var(--vap-muted);
	font-size: 14px;
	line-height: 1.5;
}

.vap-seat__picker {
	margin-top: 24px;
}
.vap-seat__picker h2 {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: normal;
	line-height: 1.5;
}
.vap-seat__picker h2 span {
	margin-left: 8px;
	color: var(--vap-muted);
	font-size: 14px;
	font-weight: 400;
}
.vap-seat__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}
.vap-seat__chip {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	box-sizing: border-box;
	width: 58px;
	min-height: 78px;
	padding: 4px 4px 3px;
	border: 1px solid var(--vap-border);
	border-radius: 10px;
	background: var(--vap-white);
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.vap-seat__chip-photo {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 6px;
	background: var(--vap-ivory);
}
.vap-seat__chip .vap-seat__chip-photo img {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	object-fit: cover;
}
.vap-seat__chip b {
	margin-block: auto;
	font-size: 13px;
	letter-spacing: 0.02em;
	line-height: 1.3;
}
.vap-seat__chip.is-selected {
	border-color: var(--vap-crimson);
	box-shadow: 0 0 0 1px var(--vap-crimson);
	background: color-mix(in srgb, var(--vap-gold) 10%, var(--vap-white));
}
.vap-seat__chip.is-unavailable {
	opacity: 0.45;
	cursor: not-allowed;
}
.vap-seat__chip.is-unavailable img {
	filter: grayscale(1);
}
.vap-seat__chip.is-unavailable b {
	text-decoration: line-through;
}

.vap-seat__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 24px 0 0;
}
.vap-seat__contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 24px;
	margin: 16px 0 0;
	font-size: 14px;
	line-height: 1.5;
}
.vap-seat__contact a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--vap-warm-gray);
	font-weight: 600;
	text-decoration: none;
}
.vap-seat__contact a:hover {
	color: var(--vap-crimson);
}
.vap-seat__contact svg {
	width: 16px;
	height: 16px;
}
.vap-seat__copied {
	color: var(--vap-muted);
}
.vap-seat__checks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-top: 24px;
	color: var(--vap-muted);
	font-size: 14px;
	line-height: 1.5;
}
.vap-seat__checks span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.vap-seat__checks svg {
	width: 17px;
	height: 17px;
	color: color-mix(in srgb, var(--vap-gold) 55%, var(--vap-fold-deep));
}

/* Lower part -------------------------------------------------------------- */
.vap-seat__section,
.vap-seat__band {
	scroll-margin-top: 64px;
}
.vap-seat__head {
	margin-bottom: 32px;
}
.vap-seat__head .vap-seat__eyebrow {
	margin-bottom: 8px;
}
.vap-seat__head h2 {
	margin: 0;
}
.vap-seat__muted {
	margin: 8px 0 0;
	color: var(--vap-muted);
	font-size: 15px;
	line-height: 1.65;
}
.vap-seat__prose {
	max-width: 760px;
	font-size: 15px;
	line-height: 1.7;
}

.vap-seat__band {
	background: var(--vap-seat-soft);
}
.vap-seat__specs {
	display: grid;
	box-sizing: border-box;
	width: var(--vap-seat-wrap);
	margin: 0 auto;
	padding-block: var(--vap-seat-pad);
}
.vap-seat__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}
.vap-seat__table caption {
	margin-bottom: 12px;
	color: var(--vap-muted);
	font-size: 14px;
	text-align: left;
}
.vap-seat__table th,
.vap-seat__table td {
	padding: 12px 8px;
	border-bottom: 1px solid color-mix(in srgb, var(--vap-gold) 30%, var(--vap-border));
	line-height: 1.5;
	text-align: left;
	vertical-align: top;
}
.vap-seat__table th {
	width: 40%;
	font-weight: 500;
}
.vap-seat__table td {
	color: var(--vap-muted);
}

.vap-seat__lines {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
}
.vap-seat__line {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 10px 16px 10px 10px;
	border: 1px solid var(--vap-border);
	border-radius: var(--vap-radius);
	background: var(--vap-white);
	color: inherit;
	text-decoration: none;
}
.vap-seat__line-photo {
	display: block;
	flex: none;
	width: 64px;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 10px;
	background: color-mix(in srgb, var(--vap-gold) 12%, var(--vap-ivory));
}
.vap-seat-sections .vap-seat__line-photo img {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	object-fit: cover;
}
.vap-seat__line-text {
	flex: 1;
	min-width: 0;
}
.vap-seat__line-text small {
	display: block;
	color: var(--vap-crimson);
	font-size: 13px;
	letter-spacing: 0.12em;
	line-height: 1.5;
}
.vap-seat__line-text b {
	font-size: 15px;
	line-height: 1.5;
}
.vap-seat__line > svg {
	width: 18px;
	height: 18px;
	flex: none;
	color: var(--vap-crimson);
}

.vap-seat__consult {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	box-sizing: border-box;
	width: var(--vap-seat-wrap);
	margin: 0 auto var(--vap-seat-pad);
	padding: 32px 40px;
	overflow: hidden;
	border: 1px solid var(--vap-gold);
	border-radius: var(--vap-radius);
	background: color-mix(in srgb, var(--vap-gold) 18%, var(--vap-ivory));
}
.vap-seat__consult::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 5px;
	background: var(--vap-gradient);
}
.vap-seat__consult .vap-seat__eyebrow {
	margin-bottom: 8px;
}
.vap-seat__consult h2 {
	margin: 0;
	font-family: var(--vap-serif);
	font-size: 30px;
	font-weight: 500;
	line-height: 1.35;
}

/* Quick-order dialog ------------------------------------------------------ */
.vap-order__dialog {
	box-sizing: border-box;
	width: 480px;
	max-width: calc(100% - 32px);
	max-height: calc(100% - 32px);
	padding: 0;
	border: 1px solid var(--vap-hairline);
	border-radius: var(--vap-radius);
	background: var(--vap-ivory);
	color: var(--vap-warm-gray);
}
.vap-order__dialog::backdrop {
	background: rgba(10, 42, 71, 0.35);
}
body:has(.vap-order__dialog[open]) {
	overflow: hidden;
}
.vap-order__panel {
	position: relative;
	padding: 32px 24px 24px;
}
.vap-order__panel h2 {
	margin: 0 40px 8px 0;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.3;
}
.vap-order__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--vap-warm-gray);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.vap-order__picked {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.5;
}
.vap-order__picked span {
	color: var(--vap-crimson);
	font-weight: 600;
}
.vap-order__field {
	margin-bottom: 12px;
}
.vap-order__field label {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 500;
}
.vap-order__field input,
.vap-order__field textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 12px;
	border: 1px solid var(--vap-border);
	border-radius: 8px;
	background: var(--vap-white);
	color: inherit;
	font: inherit;
	font-size: 15px;
	line-height: 1.4;
}
.vap-order__field input:focus,
.vap-order__field textarea:focus {
	border-color: var(--vap-crimson);
	outline: 2px solid var(--vap-crimson);
	outline-offset: 0;
}
.vap-order__field input[aria-invalid="true"],
.vap-order__field textarea[aria-invalid="true"] {
	border-color: var(--vap-crimson);
}
.vap-order__error {
	margin: 4px 0 0;
	color: var(--vap-crimson);
	font-size: 14px;
	line-height: 1.5;
}
.vap-order__error:empty {
	display: none;
}
.vap-order__error--form {
	margin: 0 0 12px;
}
.vap-order__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.vap-order__submit {
	width: 100%;
}
.vap-order__done {
	outline: none;
}
.vap-order__done h3 {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 500;
}
.vap-order__done p {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.65;
}
.vap-order__done a {
	color: var(--vap-crimson);
	font-weight: 600;
}

/* Mobile bar -------------------------------------------------------------- */
.vap-seat__sticky {
	display: none;
}

@media (max-width: 1050px) {
	.vap-seat__hero,
	.vap-seat__specs {
		gap: 32px;
	}
}

@media (max-width: 767px) {
	.vap-seat-main {
		--vap-seat-wrap: calc(100% - 36px);
		--vap-seat-pad: 40px;
	}
	.vap-seat__hero,
	.vap-seat__specs {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}
	.vap-seat__hero {
		padding-bottom: 24px;
	}
	.vap-seat__tag {
		font-size: 24px;
	}
	.vap-seat__title {
		margin: 0 0 8px;
		font-size: 30px;
		letter-spacing: -0.5px;
	}
	.vap-seat__title em {
		font-size: 36px;
	}
	.vap-seat__title--long {
		font-size: 22px;
	}
	.vap-seat__intro {
		max-width: none;
		font-size: 14px;
	}
	.vap-seat__features {
		grid-template-columns: 1fr;
		font-size: 14px;
	}
	.vap-seat__actions .vap-btn {
		flex: 1 1 calc(50% - 6px);
		padding: 0 12px;
	}
	.vap-seat__actions .vap-btn:not([hidden]):first-child,
	.vap-seat__actions .vap-btn--primary {
		flex-basis: 100%;
	}
	.vap-seat__head {
		margin-bottom: 24px;
	}
	.vap-seat__consult {
		flex-direction: column;
		align-items: flex-start;
		padding: 24px 22px;
	}
	.vap-seat__consult h2 {
		font-size: 24px;
	}
	.vap-seat__sticky {
		position: fixed;
		z-index: 60;
		right: 0;
		bottom: 0;
		left: 0;
		display: flex;
		align-items: center;
		gap: 12px;
		box-sizing: border-box;
		padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--vap-hairline);
		background: color-mix(in srgb, var(--vap-ivory) 96%, transparent);
		backdrop-filter: blur(16px);
	}
	.vap-seat__sticky-price {
		flex: 1;
		min-width: 0;
	}
	.vap-seat__sticky-price small {
		display: block;
		color: var(--vap-muted);
		font-size: 13px;
		line-height: 1.3;
	}
	.vap-seat__sticky-price strong {
		display: block;
		color: var(--vap-crimson);
		font-size: 18px;
		line-height: 1.3;
	}
	.vap-seat__sticky .vap-btn {
		height: 44px;
		padding: 0 16px;
	}
	body.vap-seat-page {
		padding-bottom: calc(60px + env(safe-area-inset-bottom));
	}
	.vap-order__panel {
		padding: 32px 16px 16px;
	}
}

