/* The quiz is full-screen; keep its controls in the same visual system as the site. */
.site .side-panel-content { gap: 0; }
.site .lens-quiz__left { width: 54%; background: #fff; border-right: 1px solid #e6e3dd; }
.site .lens-quiz__right { width: 46%; padding: 42px clamp(26px, 4vw, 72px); background: #fff; }
.site .lens-quiz__product-name { display: none; }
.site #lens-quiz { color: #181818; font-family: 'TT Norms', Arial, sans-serif; }
.site #lens-quiz .lens-quiz__heading {
    margin: 0 0 13px;
    font: 400 30px/1.25 'Tenor Sans', Georgia, serif;
    letter-spacing: 0;
}
.site #lens-quiz .quiz-step > p { margin: 0 0 22px; color: #686868; font-size: 15px; line-height: 1.5; }
.site #lens-quiz .quiz-header { gap: 13px; margin-bottom: 30px; padding-bottom: 18px; border-bottom: 1px solid #e6e3dd; }
.site #lens-quiz .quiz-nav {
    flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid #e6e3dd;
    border-radius: 0; background: #fff; color: #181818; box-shadow: none;
}
.site #lens-quiz .quiz-nav:hover { border-color: #aa7b32; color: #aa7b32; }
.site #lens-quiz .quiz-progress-wrap { flex: 1 1 auto; min-width: 0; }
.site #lens-quiz .quiz-progress-label { display: block; overflow: hidden; margin-bottom: 7px; color: #686868; font-size: 11px; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.site #lens-quiz .quiz-progress { flex: none; width: 100%; height: 2px; border-radius: 0; background: #e6e3dd; }
.site #lens-quiz .quiz-progress__bar { border-radius: 0; background: #aa7b32; }
.site #lens-quiz .quiz-header-total {
	min-width: 132px;
	color: #181818;
	font: 500 22px/1.05 'TT Norms', Arial, sans-serif;
	text-align: right;
}
.site #lens-quiz .quiz-header-total__label {
	display: block;
	margin-bottom: 4px;
	color: #686868;
	font-size: 11px;
	font-weight: 400;
}
.site #lens-quiz .quiz-cart-error { margin: 0 0 20px; padding: 10px 12px; border-left: 2px solid #9b352d; color: #7a2823; background: #fff7f5; font-size: 14px; line-height: 1.45; }
.site #lens-quiz .quiz-cart-error[hidden] { display: none; }
.site #lens-quiz #scenario-list button,
.site #lens-quiz #no-recipe-lens-list button,
.site #lens-quiz #recipe-lens-list button,
.site #lens-quiz #photochrom-list button,
.site #lens-quiz #thickness-list button,
.site #lens-quiz .quiz-option {
    min-height: 72px; margin: 0; padding: 17px 2px;
    border: 0; border-bottom: 1px solid #e6e3dd; border-radius: 0;
    background: #fff; box-shadow: none; color: #181818;
    text-align: left;
}
.site #lens-quiz #scenario-list button:first-child,
.site #lens-quiz #no-recipe-lens-list button:first-child,
.site #lens-quiz #recipe-lens-list button:first-child,
.site #lens-quiz #photochrom-list button:first-child,
.site #lens-quiz #thickness-list button:first-child { border-top: 1px solid #e6e3dd; }
.site #lens-quiz #scenario-list button:hover,
.site #lens-quiz #no-recipe-lens-list button:hover,
.site #lens-quiz #recipe-lens-list button:hover,
.site #lens-quiz #photochrom-list button:hover,
.site #lens-quiz #thickness-list button:hover,
.site #lens-quiz .quiz-option.is-selected { background: #f7f4ee; box-shadow: none; }
.site #lens-quiz .quiz-option__title,
.site #lens-quiz #scenario-list button strong {
    display: block; margin: 0 0 5px; padding: 0; font-size: 15px;
    font-weight: 500; line-height: 1.35; text-transform: none; letter-spacing: 0;
}
.site #lens-quiz #scenario-list button { font-size: 15px; font-weight: 400; }
.site #lens-quiz .quiz-option__desc,
.site #lens-quiz #scenario-list button > span { color: #686868; font-size: 14px; line-height: 1.45; font-weight: 400; }
.site #lens-quiz .quiz-option__price { width: auto; min-width: 75px; max-width: 142px; color: #181818; font-size: 14px; font-weight: 500; text-align: right; line-height: 1.3; }
.site #lens-quiz .quiz-option__more { color: #8b642e; font-weight: 500; }
.site #lens-quiz .quiz-option {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto 20px;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}
.site #lens-quiz .quiz-option::after,
.site #lens-quiz #scenario-list button::after {
	content: '↗︎';
	align-self: center;
	color: #8b642e;
	font: 400 18px/1 'TT Norms', Arial, sans-serif;
}
.site #lens-quiz #scenario-list button { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.site #lens-quiz .quiz-option:focus-visible,
.site #lens-quiz #scenario-list button:focus-visible {
	outline: 2px solid #8b642e !important;
	outline-offset: 2px !important;
}
.site #lens-quiz .lens-quiz__subheading {
	margin: 20px 0 9px;
	color: #181818;
	font: 500 16px/1.3 'TT Norms', Arial, sans-serif;
	text-transform: none;
}
.site #lens-quiz #recipe-manual-block select,
.site #lens-quiz #recipe-manual-block input {
	min-height: 46px;
	padding: 0 12px;
	border: 1px solid #c9c5bd;
	border-radius: 0 !important;
	color: #181818;
	font: 400 15px/1.3 'TT Norms', Arial, sans-serif;
	box-shadow: none;
}
.site #lens-quiz #recipe-manual-block select:focus-visible,
.site #lens-quiz #recipe-manual-block input:focus-visible { outline: 2px solid #8b642e; outline-offset: 2px; }
.site #lens-quiz #recipe-manual-block select:disabled { background: #f5f4f1; color: #777; }
.site #lens-quiz .recipe-field-error { border-color: #9b352d !important; outline: 1px solid #9b352d; }
.site #lens-quiz .recipe-error-text { margin-top: 4px; color: #9b352d; font-size: 12px; line-height: 1.35; }
.site #lens-quiz [data-step="recipe-upload"] > label {
    min-height: 52px; padding: 12px 2px; margin: 0; border: 0;
    border-bottom: 1px solid #e6e3dd; border-radius: 0;
}
.site #lens-quiz [data-step="recipe-upload"] > label:first-of-type { border-top: 1px solid #e6e3dd; }
.site #lens-quiz [data-step="recipe-upload"] label:has(input[type="radio"]:checked) { background: #f7f4ee; border-color: #e6e3dd; }
.site #lens-quiz [data-step="recipe-upload"] input[type="radio"] { accent-color: #181818; }
.site #lens-quiz .recipe-file-control { position: relative; margin: 18px 0 8px; }
.site #lens-quiz .recipe-file-pick { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 52px; padding: 0 18px; border: 1px solid #181818; background: #fff; color: #181818; font: 500 15px/1.2 'TT Norms', Arial, sans-serif; cursor: pointer; }
.site #lens-quiz .recipe-file-control:focus-within .recipe-file-pick { outline: 2px solid #8b642e; outline-offset: 2px; }
.site #lens-quiz #recipe-file { position: absolute; width: 1px; height: 1px; min-height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; }
.site #lens-quiz .recipe-file-hint { margin: 0 0 12px; color: #686868; font-size: 13px; line-height: 1.4; }
.site #lens-quiz .recipe-file-selected { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 0; border-top: 1px solid #e6e3dd; font-size: 14px; }
.site #lens-quiz .recipe-file-selected[hidden] { display: none; }
.site #lens-quiz #recipe-file-name { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.site #lens-quiz #recipe-file-clear { flex: none; padding: 0 0 3px; border: 0; border-bottom: 1px solid #181818; border-radius: 0; background: transparent; color: #181818; font: 500 14px/1.2 'TT Norms', Arial, sans-serif; cursor: pointer; }
.site #lens-quiz #recipe-manual-block { padding: 18px 0; border: 0; border-radius: 0; border-top: 1px solid #e6e3dd; }
.site #lens-quiz #recipe-manual-block select,
.site #lens-quiz #recipe-manual-block input {
    border: 1px solid #d7d4cd; border-radius: 0; background: #fff;
}
.site #lens-quiz .quiz-price-breakdown { margin: 22px 0; border-top: 1px solid #e6e3dd; }
.site #lens-quiz .quiz-price-breakdown__row { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid #e6e3dd; color: #686868; font-size: 14px; line-height: 1.35; }
.site #lens-quiz .quiz-price-breakdown__row strong { flex: none; color: #181818; font-weight: 500; text-align: right; }
.site #lens-quiz .quiz-price-breakdown__row--total { color: #181818; font-weight: 500; font-size: 16px; }
.site #lens-quiz .quiz-price-breakdown__row--total strong { font-size: 19px; }
.site #lens-quiz #noRecipeGoToCartBtn,
.site #lens-quiz #orderReviewSubmitBtn,
.site #lens-quiz #goToCartBtn,
.site #lens-quiz #drivingContinueBtn,
.site #lens-quiz #recipeSubmitBtn {
    display: inline-flex; align-items: center; justify-content: space-between;
    min-height: 52px; padding: 0 20px !important; border: 1px solid #181818 !important;
    border-radius: 0 !important; background: #181818 !important; color: #fff !important;
    font: 500 15px/1.2 'TT Norms', Arial, sans-serif;
    text-decoration: none;
}
.site #lens-quiz #noRecipeGoToCartBtn::after,
.site #lens-quiz #orderReviewSubmitBtn::after,
.site #lens-quiz #goToCartBtn::after,
.site #lens-quiz #drivingContinueBtn::after,
.site #lens-quiz #recipeSubmitBtn::after { content: '↗︎'; margin-left: 20px; font-size: 18px; }
.site #lens-quiz #noRecipeGoToCartBtn:hover,
.site #lens-quiz #orderReviewSubmitBtn:hover,
.site #lens-quiz #goToCartBtn:hover,
.site #lens-quiz #drivingContinueBtn:hover,
.site #lens-quiz #recipeSubmitBtn:hover { background: #39332b !important; }
.site #lens-quiz #orderReviewSubmitBtn,
.site #lens-quiz #recipeSubmitBtn { width: 100%; }
.site #lens-quiz #orderReviewSubmitBtn:disabled,
.site #lens-quiz #recipeSubmitBtn:disabled { opacity: .65; cursor: wait; }

.site .footer.footer-v2 { background: #181818; }
.site .footer.footer-v2 .footer__wrapper { padding-top: 48px; padding-bottom: 24px; }
.site .footer-v2 .footer-nav { gap: 28px 36px; }
.site .footer-v2 .footer-nav__title {
    margin-bottom: 18px; color: #b9955c; font-size: 11px;
    font-weight: 500; letter-spacing: 0; text-transform: uppercase;
}
.site .footer-v2 .footer-nav__link { margin-bottom: 10px; font-size: 14px; line-height: 1.4; }
.site .footer-v2 .footer-nav__phone { font: 400 19px/1.3 'Tenor Sans', Georgia, serif; }
.site .footer-v2 .footer-copy { margin-top: 32px; padding-top: 18px; }

@media (max-width: 768px) {
    html.os-quiz-open { overflow: hidden; }
    .site #sidePanel { height: 100dvh; overflow: hidden !important; }
    .site .side-panel-content { flex-direction: column; height: 100%; min-height: 0 !important; overflow: hidden; }
    .site .lens-quiz__left { box-sizing: border-box; flex: 0 0 72px; justify-content: flex-start; gap: 12px; width: 100% !important; height: 72px; padding: 6px 18px; border-right: 0; border-bottom: 1px solid #e6e3dd; overflow: hidden; }
    .site .lens-quiz__left img {
        flex: 0 0 72px;
        width: 72px;
        height: 60px;
        max-height: none;
        object-fit: contain;
    }
    .site .lens-quiz__left img.os-product-portrait { object-fit: cover; object-position: center 58%; }
    .site .lens-quiz__product-name { display: -webkit-box; min-width: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #181818; font: 500 14px/1.3 'TT Norms', Arial, sans-serif; }
    .site .lens-quiz__right { flex: 1 1 auto; min-height: 0; width: 100% !important; padding: 12px 18px 24px; overflow-y: auto; overscroll-behavior: contain; }
    .site #lens-quiz .quiz-header { position: sticky; top: 0; z-index: 3; margin-bottom: 23px; padding-top: 12px; background: #fff; }
    .site #lens-quiz .lens-quiz__heading { font-size: 24px; }
    .site #lens-quiz .quiz-option { padding: 15px 2px; }
    .site #lens-quiz .quiz-header-total { min-width: 90px; font-size: 18px; }
    .site #lens-quiz .quiz-option { grid-template-columns: minmax(0, 1fr) auto 16px; gap: 7px; }
    .site #lens-quiz .quiz-option__price { max-width: 105px; font-size: 12px; }
    .site #lens-quiz #recipe-manual-block select,
    .site #lens-quiz #recipe-manual-block input { min-width: 0; min-height: 42px; font-size: 13px; padding: 0 5px; }
}
@media (max-width: 640px) {
    .site .footer.footer-v2 .footer__wrapper { padding-top: 34px; }
    .site .footer-v2 .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
    .site .footer-v2 .footer-nav > .footer-nav__column:nth-child(4) {
        grid-column: auto; grid-row: auto; padding-left: 0 !important;
    }
    .site .footer-v2 .footer-nav__contacts { grid-column: 1 / -1; grid-row: auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); }
    .site .footer-v2 .footer-nav__link { font-size: 13px; white-space: normal; }
    .site .footer-v2 .footer-nav__jobtime,
    .site .footer-v2 .footer-nav__caption { white-space: normal; }
    .site .footer-v2 .footer-nav__title { margin-bottom: 10px; }
    .site .footer-v2 .footer-copy { margin-top: 24px; }
}

/* The glossary has its own inline legacy CSS; keep its content and interaction, not its old framing. */
.site .os-glossary { background: #fff; color: #181818; }
.site .os-glossary__inner { padding-top: 0; }
.site .os-glossary__hero { gap: 0; border: 0; border-bottom: 1px solid #e6e3dd; min-height: 440px; }
.site .os-glossary__hero-copy { padding: 50px 6% 50px 0; }
.site .os-glossary__eyebrow { color: #aa7b32; font-size: 11px; font-weight: 500; letter-spacing: 0; }
.site .os-glossary h1 { font: 400 54px/1.12 'Tenor Sans', Georgia, serif; letter-spacing: 0; }
.site .os-glossary__intro { font-size: 17px; line-height: 1.55; }
.site .os-glossary__how { margin-top: 22px; padding: 0; background: transparent; border: 0; color: #686868; font-size: 15px; }
.site .os-glossary__quick-links { gap: 6px 16px; margin-top: 26px; }
.site .os-glossary__quick-links span { padding: 0; border: 0; color: #8b642e; font-size: 13px; }
.site .os-glossary__hero-image::after { display: none; }
.site .os-glossary__nav { margin-top: 0; padding: 32px 0; border: 0; border-bottom: 1px solid #e6e3dd; }
.site .os-glossary__nav-title { font-size: 15px; font-weight: 500; }
.site .os-glossary__letter { background: #fff; border-color: #e6e3dd; font-weight: 500; }
.site .os-glossary__letter.is-active,
.site .os-glossary__letter:not(:disabled):hover { background: #181818; border-color: #181818; color: #fff; }
.site .os-glossary__section { margin-top: 38px; }
.site .os-glossary__letter-heading h2 { font: 400 37px/1.2 'Tenor Sans', Georgia, serif; }
.site .os-glossary__grid { gap: 0 32px; }
.site .os-glossary__card { min-height: 0; padding: 27px 0; border: 0; border-top: 1px solid #e6e3dd; gap: 14px; }
.site .os-glossary__card h3 { font: 400 26px/1.2 'Tenor Sans', Georgia, serif; }
.site .os-glossary__card p { font-size: 15px; line-height: 1.55; }
.site .os-glossary__info-block { padding: 0 0 0 17px; background: transparent; border-left: 1px solid #aa7b32; }
.site .os-glossary__related-title { font-size: 11px; font-weight: 500; letter-spacing: 0; color: #8b642e; }
.site .os-glossary__related-links a { padding: 9px 0; background: transparent; border-bottom: 1px solid #181818; color: #181818; font-size: 13px; font-weight: 500; }
.site .os-glossary__related-links a:hover { background: transparent; border-color: #aa7b32; color: #8b642e; }
@media (max-width: 900px) {
    .site .os-glossary__hero-copy { padding: 32px 0; }
    .site .os-glossary h1 { font-size: 42px; }
}
@media (max-width: 520px) {
    .site .os-glossary__inner { padding: 0 18px; }
    .site .os-glossary h1 { font-size: 34px; }
    .site .os-glossary__hero-image { min-height: 230px; }
    .site .os-glossary__nav { padding: 26px 0; }
    .site .os-glossary__grid { grid-template-columns: 1fr; }
}
