/* Tint and PPF simulators v2 ([atz_simulator]) */
.atz-sim { --sim-line: #e6e1e8; display: grid; gap: 20px; padding: 24px; background: #fff; border-radius: 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, .06); font-family: var(--atz-body); color: #000; }

/* Car picker */
.atz-sim__cars { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.atz-sim__car {
	appearance: none; flex: 0 0 168px; display: grid; grid-template-rows: 92px auto auto; justify-items: start; gap: 2px; padding: 10px 12px 12px; scroll-snap-align: start;
	border: 1px solid var(--sim-line); border-radius: 12px; background: #fff; color: #000; text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s;
}
.atz-sim__car img { width: 100%; height: 92px; object-fit: contain; margin-bottom: 4px; }
.atz-sim__car-type { font: 400 12px/16px var(--atz-body); color: #767676; text-transform: uppercase; letter-spacing: .6px; }
.atz-sim__car-name { font: 600 14px/19px var(--atz-body); }
.atz-sim__car-plus { display: grid; place-items: center; width: 100%; height: 92px; margin-bottom: 4px; border-radius: 8px; background: #000; color: var(--atz-yellow); font: 300 40px/1 var(--atz-body); }

/* Stage + panel */
.atz-sim__main { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.atz-sim__stage { position: relative; overflow: hidden; aspect-ratio: 16 / 10.5; border-radius: 12px; user-select: none; -webkit-user-select: none; transition: background .4s; }
.atz-sim.is-bg-studio .atz-sim__stage { background: radial-gradient(120% 75% at 50% 88%, #444 0%, #1f1f1f 46%, #0c0c0c 100%); }
.atz-sim.is-bg-day .atz-sim__stage { background: linear-gradient(180deg, #dfe6ec 0%, #f4f6f8 56%, #d5d9de 56.4%, #c2c7cd 100%); }
.atz-sim.is-bg-night .atz-sim__stage { background: radial-gradient(110% 70% at 50% 92%, #23345a 0%, #0e1426 52%, #04060c 100%); }
.atz-sim__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 9% 5% 11%; box-sizing: border-box; object-fit: contain; cursor: grab; touch-action: pan-y; }
.atz-sim.is-dragging .atz-sim__canvas { cursor: grabbing; }
.atz-sim.is-own .atz-sim__canvas { padding: 4%; cursor: default; }
.atz-sim.is-marking .atz-sim__canvas { cursor: crosshair; }
.atz-sim__badge { position: absolute; top: 14px; left: 14px; max-width: calc(100% - 230px); padding: 7px 12px; border-radius: 6px; background: var(--atz-yellow); color: var(--atz-brown); font: 600 13px/16px var(--atz-body); }
.atz-sim__tools { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; gap: 8px; }
.atz-sim__tool { appearance: none; border: 0; border-radius: 8px; padding: 8px 12px; background: rgba(0, 0, 0, .55); color: #fff; font: 600 12px/16px var(--atz-body); cursor: pointer; backdrop-filter: blur(4px); }
.atz-sim__tool[aria-pressed="true"] { background: var(--atz-yellow); color: var(--atz-brown); }
.atz-sim__bgs { display: flex; gap: 6px; padding: 6px; border-radius: 8px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); }
.atz-sim__bgs button { appearance: none; width: 20px; height: 20px; padding: 0; border: 2px solid rgba(255, 255, 255, .5); border-radius: 50%; cursor: pointer; }
.atz-sim__bgs [data-bg="studio"] { background: radial-gradient(#555, #111); }
.atz-sim__bgs [data-bg="day"] { background: linear-gradient(#f4f6f8 55%, #c2c7cd 56%); }
.atz-sim__bgs [data-bg="night"] { background: radial-gradient(#2d4374, #05070d); }
.atz-sim__bgs button[aria-pressed="true"] { border-color: var(--atz-yellow); }
.atz-sim__rotate { position: absolute; left: 50%; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 5px; border-radius: 30px; background: rgba(0, 0, 0, .55); transform: translateX(-50%); backdrop-filter: blur(4px); }
.atz-sim__rotate[hidden] { display: none; }
.atz-sim__arrow { appearance: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }
.atz-sim__arrow svg { width: 16px; height: 16px; fill: none; stroke: #000; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.atz-sim__dots { display: flex; gap: 5px; }
.atz-sim__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .35); transition: background .2s, transform .2s; }
.atz-sim__dots i.is-on { background: var(--atz-yellow); transform: scale(1.3); }
.atz-sim__hint { position: absolute; left: 14px; bottom: 18px; padding: 6px 10px; border-radius: 6px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 12px; line-height: 16px; pointer-events: none; transition: opacity .4s; }
.atz-sim.was-dragged .atz-sim__hint, .atz-sim__hint[hidden] { opacity: 0; }
.atz-sim__loading { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--atz-yellow); border-radius: 50%; opacity: 0; animation: atz-sim-spin .8s linear infinite; transition: opacity .2s; pointer-events: none; }
.atz-sim.is-loading .atz-sim__loading { opacity: 1; }
@keyframes atz-sim-spin { to { transform: rotate(360deg); } }

/* Before / after */
.atz-sim__split { --x: 50%; position: absolute; inset: 0; pointer-events: none; }
.atz-sim__split[hidden] { display: none; }
.atz-sim__split::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 8px rgba(0, 0, 0, .4); }
.atz-sim__split-handle { position: absolute; top: 50%; left: var(--x); width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--atz-yellow); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); cursor: ew-resize; pointer-events: auto; touch-action: none; }
.atz-sim__split-handle::before { content: "‹ ›"; color: var(--atz-brown); font: 700 16px/38px var(--atz-body); }
.atz-sim__split-tag { position: absolute; top: 58px; padding: 4px 9px; border-radius: 5px; background: rgba(0, 0, 0, .6); color: #fff; font: 600 11px/14px var(--atz-body); text-transform: uppercase; letter-spacing: .6px; }
.atz-sim__split-tag.is-l { left: 14px; }
.atz-sim__split-tag.is-r { right: 14px; }

/* Visitor's photo: outlining windows */
.atz-sim__mark { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 10px; background: rgba(0, 0, 0, .8); color: #fff; }
.atz-sim__mark[hidden] { display: none; }
.atz-sim__mark-text { margin: 0; flex: 1 1 240px; font-size: 13px; line-height: 19px; }
.atz-sim__mark-btns { display: flex; flex-wrap: wrap; gap: 6px; }

/* Panel */
.atz-sim__panel { display: grid; gap: 20px; }
.atz-sim__head { padding-bottom: 16px; border-bottom: 1px solid var(--sim-line); }
.atz-sim__car-title { margin: 0 0 4px; font: 400 20px/26px var(--atz-display); text-transform: uppercase; letter-spacing: .5px; }
.atz-sim__summary { margin: 0; color: #555; font-size: 14px; line-height: 21px; }
.atz-sim__group { display: grid; gap: 10px; }
.atz-sim__group[hidden] { display: none; }
.atz-sim__label { font: 600 14px/19px var(--atz-body); }
.atz-sim__label span { font-weight: 400; color: #767676; }
.atz-sim__label-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.atz-sim__switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #3b3b3b; cursor: pointer; }
.atz-sim__switch input, .atz-sim__check input { width: 17px; height: 17px; margin: 0; accent-color: var(--atz-yellow-stroke); }
.atz-sim__front-shade { display: grid; gap: 8px; }
.atz-sim__front-shade[hidden] { display: none; }
.atz-sim__seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--atz-soft); border-radius: 10px; justify-self: start; }
.atz-sim__seg button, .atz-sim__own-tools button, .atz-sim__mark-btns button {
	appearance: none; border: 0; border-radius: 7px; padding: 9px 14px; background: transparent; color: #000; font: 600 13px/17px var(--atz-body); cursor: pointer; transition: background .2s, color .2s;
}
.atz-sim__shades { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.atz-sim__shades button {
	appearance: none; display: grid; justify-items: center; gap: 6px; padding: 8px 2px; border: 1px solid var(--sim-line); border-radius: 8px; background: #fff;
	color: #000; font: 600 12px/15px var(--atz-body); cursor: pointer; transition: border-color .2s, background .2s;
}
.atz-sim__shades button::before { content: ""; width: 26px; height: 17px; border-radius: 4px; background: linear-gradient(135deg, #cfd8de, #9fb0bb); box-shadow: inset 0 0 0 30px rgba(10, 12, 14, var(--d, 0)); }
.atz-sim__swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.atz-sim__swatches button { appearance: none; width: 32px; height: 32px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px #d4cfd7; cursor: pointer; }
.atz-sim__note { margin: 0; color: #3b3b3b; font-size: 14px; line-height: 22px; }
.atz-sim__check { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
.atz-sim__check[hidden] { display: none; }
.atz-sim__own-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.atz-sim__own-tools[hidden] { display: none; }
.atz-sim__cta { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 16px; border-top: 1px solid var(--sim-line); }
.atz-sim__disclaimer { margin: 0; color: #767676; font-size: 12px; line-height: 19px; }
.atz-sim__disclaimer a { color: #767676; text-decoration: underline; }

/* The theme styles every button:hover / :focus (pink, white text): keep ours in every state */
.atz-sim button[type="button"]:hover, .atz-sim button[type="button"]:focus { text-decoration: none; }
.atz-sim button:focus { outline: none; }
.atz-sim button:focus-visible { outline: 2px solid var(--atz-yellow-stroke); outline-offset: 2px; }
.atz-sim .atz-sim__car:focus, .atz-sim .atz-sim__car:hover { background: #fff; color: #000; border-color: #000; }
.atz-sim .atz-sim__car[aria-pressed="true"] { background: #fff7dc; color: #000; border-color: var(--atz-yellow-stroke); box-shadow: 0 0 0 1px var(--atz-yellow-stroke); }
.atz-sim .atz-sim__seg button:focus { background: transparent; color: #000; }
.atz-sim .atz-sim__seg button:hover { background: #fff; color: #000; }
.atz-sim .atz-sim__seg button[aria-pressed="true"] { background: var(--atz-yellow); color: var(--atz-brown); }
.atz-sim .atz-sim__shades button:focus, .atz-sim .atz-sim__shades button:hover { background: #fff; color: #000; border-color: #000; }
.atz-sim .atz-sim__shades button[aria-pressed="true"] { background: #fff7dc; color: #000; border-color: var(--atz-yellow-stroke); }
.atz-sim .atz-sim__swatches button:focus, .atz-sim .atz-sim__swatches button:hover { background: var(--c); }
.atz-sim .atz-sim__swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--atz-yellow-stroke); }
.atz-sim .atz-sim__tool:focus { background: rgba(0, 0, 0, .55); color: #fff; }
.atz-sim .atz-sim__tool:hover { background: rgba(0, 0, 0, .75); color: #fff; }
.atz-sim .atz-sim__tool[aria-pressed="true"] { background: var(--atz-yellow); color: var(--atz-brown); }
.atz-sim .atz-sim__arrow:focus, .atz-sim .atz-sim__arrow:hover { background: var(--atz-yellow); }
.atz-sim .atz-sim__bgs button:focus, .atz-sim .atz-sim__bgs button:hover { border-color: #fff; }
.atz-sim .atz-sim__bgs [data-bg="studio"]:focus, .atz-sim .atz-sim__bgs [data-bg="studio"]:hover { background: radial-gradient(#555, #111); }
.atz-sim .atz-sim__bgs [data-bg="day"]:focus, .atz-sim .atz-sim__bgs [data-bg="day"]:hover { background: linear-gradient(#f4f6f8 55%, #c2c7cd 56%); }
.atz-sim .atz-sim__bgs [data-bg="night"]:focus, .atz-sim .atz-sim__bgs [data-bg="night"]:hover { background: radial-gradient(#2d4374, #05070d); }
.atz-sim .atz-sim__bgs button[aria-pressed="true"] { border-color: var(--atz-yellow); }
.atz-sim .atz-sim__split-handle:focus, .atz-sim .atz-sim__split-handle:hover { background: var(--atz-yellow); }
.atz-sim .atz-sim__own-tools button { background: var(--atz-soft); color: #000; font-weight: 400; }
.atz-sim .atz-sim__own-tools button:hover { background: #ece7ef; color: #000; }
.atz-sim .atz-sim__mark-btns button { padding: 8px 12px; background: rgba(255, 255, 255, .12); color: #fff; }
.atz-sim .atz-sim__mark-btns button:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.atz-sim .atz-sim__mark-btns button.is-main { background: var(--atz-yellow); color: var(--atz-brown); }
.atz-sim .atz-sim__car--own:hover, .atz-sim .atz-sim__car--own:focus { background: #fff; }

@media (max-width: 1100px) {
	.atz-sim__main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.atz-sim { padding: 14px; gap: 16px; border-radius: 12px; }
	.atz-sim__car { flex-basis: 132px; grid-template-rows: 70px auto auto; padding: 8px 10px 10px; }
	.atz-sim__car img, .atz-sim__car-plus { height: 70px; }
	.atz-sim__car-name { font-size: 13px; line-height: 17px; }
	.atz-sim__stage { aspect-ratio: 4 / 3.4; }
	.atz-sim__canvas { padding: 20% 3% 17%; }
	.atz-sim__badge { top: 10px; left: 10px; max-width: calc(100% - 20px); font-size: 12px; padding: 6px 9px; }
	.atz-sim__badge { display: none; }
	.atz-sim__tools { top: 10px; right: 10px; left: 10px; justify-content: space-between; }
	.atz-sim__tool { padding: 7px 10px; font-size: 11px; }
	.atz-sim__hint { display: none; }
	.atz-sim__shades { gap: 4px; }
	.atz-sim__shades button { font-size: 11px; padding: 7px 1px; }
	.atz-sim__shades button::before { width: 20px; height: 14px; }
	.atz-sim__split-tag { top: 50px; }
	.atz-sim__mark { left: 6px; right: 6px; bottom: 6px; padding: 10px; }
	.atz-sim__mark-text { font-size: 12px; line-height: 17px; }
	.atz-sim__cta .atz-btn-link { flex: 1 1 auto; }
}

/* WebGL canvas + 2D overlay for the window outlines on the visitor's photo */
.atz-sim__overlay { pointer-events: none; cursor: default; }
.atz-sim.is-nogl .atz-sim__stage::after { content: "Your browser can't show the simulator (WebGL is off). Please try another browser."; position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: #fff; text-align: center; font-size: 15px; }

/* v4: the client's package and price, share / save, ceramic coating add-on */
.atz-sim__group[hidden], .atz-sim__price[hidden] { display: none; }
.atz-sim__muted { color: #767676; font-size: 13px; }
.atz-sim__price { display: grid; gap: 6px; padding: 14px 16px; border-radius: 10px; background: #fff8e1; border: 1px solid #f3dc8c; }
.atz-sim__price p { margin: 0; font-size: 14px; line-height: 21px; color: #2b2b2b; }
.atz-sim__price strong { color: #000; }
.atz-sim__share { display: flex; flex-wrap: wrap; gap: 8px; }
.atz-sim__share button { appearance: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--sim-line); border-radius: 8px; background: #fff; color: #000; font: 600 13px/17px var(--atz-body); cursor: pointer; }
.atz-sim__share button::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.atz-sim__share [data-save] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M4 19h16'/%3E%3C/svg%3E"); }
.atz-sim__share [data-link] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1M14 10a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1'/%3E%3C/svg%3E"); }
.atz-sim .atz-sim__share button:hover, .atz-sim .atz-sim__share button:focus { background: #fff; color: #000; border-color: #000; }
.atz-sim__label[hidden] { display: none; }
.atz-sim__sub { margin-bottom: -2px; }
.atz-sim__seg--sm { padding: 3px; }
.atz-sim__seg--sm button { padding: 6px 11px; font-size: 12px; }

/* check of the client's own cars, Elementor editor only */
.atz-sim__checks { padding: 12px 16px; border-radius: 10px; background: #fff8e1; border: 1px solid #f3dc8c; font-size: 13px; line-height: 20px; color: #2b2b2b; }
.atz-sim__checks.is-ok { background: #ecf8ef; border-color: #a6dcb3; }
.atz-sim__checks span { color: #767676; }
.atz-sim__checks ul { margin: 6px 0 0; padding-left: 18px; }
.atz-sim__checks li.is-bad b { color: #a4262c; }
.atz-sim__checks li.is-ok b { color: #1d7a36; }
.atz-sim__checks ul ul { margin: 2px 0 6px; }
.atz-sim__checks li.is-note { color: #767676; }
.atz-sim__seg[hidden] { display: none; }
