/* An inline code wrapper from the page builder must not restyle the finder. */
code:has(.kvm-glasfinder), .kvm-glasfinder code {
    display: contents;
    font: inherit;
    color: inherit;
    white-space: inherit;
}

.kvm-glasfinder {
    --glf-ink: #23382e;
    --glf-green: #2c5437;
    --glf-muted: #596957;
    --glf-border: #dce4d6;
    --glf-soft: #f3f6ef;
    max-width: 1380px;
    font-family: Montserrat, "Noto Sans", Arial, sans-serif;
    font-size: 16px;
    white-space: normal;
    margin-inline: auto;
    color: var(--glf-ink);
    line-height: 1.55;
}
.kvm-glasfinder * { box-sizing: border-box; }
.kvm-glasfinder [hidden] { display: none !important; }
.kvm-glasfinder h2, .kvm-glasfinder h3, .kvm-glasfinder h4 { color: var(--glf-ink); }
.kvm-glasfinder :focus-visible { outline: 2px solid var(--glf-green); outline-offset: 3px; }
.kvm-glf-intro {
    background: var(--glf-soft);
    border-radius: 16px;
    padding: clamp(22px, 5vw, 52px);
    margin-bottom: 20px;
}
.kvm-glf-intro h2 { margin: 0 0 8px; font-size: clamp(1.85rem, 4vw, 3.1rem); line-height: 1.08; }
.kvm-glf-intro p, .kvm-glf-card p, .kvm-glf-card h4 { margin: 0; }
.kvm-glf-form {
    border: 1px solid var(--glf-border);
    border-radius: 14px;
    padding: clamp(16px, 3.5vw, 36px);
}
.kvm-glf-form fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.kvm-glf-form legend { font-size: 1.12rem; font-weight: 700; margin: 0 0 8px; padding: 0; }
.kvm-glf-types, .kvm-glf-fields, .kvm-glf-grid { display: grid; gap: 12px; }
.kvm-glf-types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kvm-glf-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kvm-glf-type {
    display: flex;
    align-items: start;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--glf-border);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    min-width: 0;
}
.kvm-glf-type:has(:checked) { background: var(--glf-soft); border-color: var(--glf-green); }
.kvm-glf-type input { margin: 5px 0 0; accent-color: var(--glf-green); }
.kvm-glf-type small { display: block; font-size: .87em; color: var(--glf-muted); }
.kvm-glf-type-body { flex: 1; min-width: 0; }
.kvm-glf-type-body img { display: block; width: 100%; height: auto; margin-bottom: 8px; border-radius: 6px; }
.kvm-glf-measures { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); gap: 20px; align-items: center; }
.kvm-glf-dimensions { display: block; width: 100%; height: auto; border-radius: 8px; }
.kvm-glf-fields label { display: block; font-weight: 650; }
.kvm-glf-fields label span { color: var(--glf-muted); font-weight: 400; }
.kvm-glf-fields input {
    display: block;
    width: 100%;
    min-height: 46px;
    margin-top: 5px;
    padding: 8px 10px;
    border: 1px solid #a6b6a9;
    border-radius: 7px;
    background: #fff;
    color: var(--glf-ink);
    font: inherit;
}
.kvm-glf-stepper { position: relative; }
.kvm-glasfinder .kvm-glf-stepper input {
    appearance: textfield;
    padding-right: 43px;
}
.kvm-glf-stepper input::-webkit-inner-spin-button,
.kvm-glf-stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.kvm-glf-step-buttons {
    position: absolute;
    inset: 1px 1px 1px auto;
    display: grid;
    width: 36px;
    grid-template-rows: repeat(2, 1fr);
}
.kvm-glasfinder .kvm-glf-step-buttons button {
    appearance: none;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    color: var(--glf-green);
    background: transparent;
    font: 700 17px/1 Arial, sans-serif;
    cursor: pointer;
}
.kvm-glasfinder .kvm-glf-step-buttons button:hover { background: var(--glf-soft); }
.kvm-glf-help, .kvm-glf-terms { color: var(--glf-muted); margin: 0 0 12px; }
.kvm-glf-button {
    background: var(--glf-green);
    color: #fff;
    border: 0;
    border-radius: 8px;
    min-height: 46px;
    padding: 10px 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.kvm-glf-button:hover { background: var(--glf-ink); color: #fff; }
.kvm-glf-status:empty { display: none; }
.kvm-glf-status { margin: 20px 0 7px; }
.kvm-glf-results { margin-top: 22px; }
.kvm-glf-results h3 { margin: 0 0 8px; font-size: 1.45rem; }
.kvm-glf-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 20px;
    margin-bottom: 12px;
}
.kvm-glasfinder .kvm-glf-toolbar h3 { margin: 0; }
.kvm-glf-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.kvm-glasfinder .kvm-glf-sort label { margin: 0; font-size: 14px; }
.kvm-glasfinder .kvm-glf-sort select {
    min-height: 42px;
    max-width: 100%;
    border: 1px solid #a6b6a9;
    border-radius: 7px;
    padding: 6px 9px;
    background: #fff;
    color: var(--glf-ink);
    font: inherit;
    font-size: 14px;
}
.kvm-glf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.kvm-glf-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--glf-border);
    border-radius: 11px;
    background: #fff;
}
.kvm-glasfinder .kvm-glf-card .kvm-glf-media {
    margin: 0;
    aspect-ratio: 8 / 5;
    background: #f2f4ef;
}
.kvm-glf-media svg { display: block; width: 100%; height: 100%; }
.kvm-glf-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 20px;
}
.kvm-glasfinder .kvm-glf-card .kvm-glf-model-type {
    color: var(--glf-muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.kvm-glasfinder .kvm-glf-card h4 {
    color: var(--glf-ink);
    font: 500 23px/1.2 Montserrat, "Noto Sans", Arial, sans-serif;
    min-height: 2.4em;
    margin: 0;
    overflow-wrap: anywhere;
}
.kvm-glasfinder .kvm-glf-card .kvm-glf-facts { margin: 4px 0 7px; }
.kvm-glf-facts > div { padding: 9px 0; border-top: 1px solid #e5ebdf; }
.kvm-glasfinder .kvm-glf-card :is(dt, dd, strong, summary) { font-family: inherit; }
.kvm-glasfinder .kvm-glf-card dt {
    color: var(--glf-muted);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
}
.kvm-glasfinder .kvm-glf-card dd {
    color: var(--glf-ink);
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.45;
}
.kvm-glf-card .kvm-glf-price {
    margin-top: auto;
    padding: 16px;
    border: 1px solid var(--glf-border);
    border-radius: 8px;
    background: var(--glf-soft);
}
.kvm-glasfinder .kvm-glf-price-label { color: var(--glf-ink); font-size: 12px; font-weight: 700; }
.kvm-glf-price-total {
    display: block;
    margin: 6px 0 8px;
    color: #292f2b;
    font-size: clamp(23px, 2.3vw, 29px);
    font-weight: 750;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.kvm-glasfinder .kvm-glf-price-note { color: var(--glf-muted); font-size: 13px; }
.kvm-glasfinder .kvm-glf-card .kvm-glf-breakdown {
    margin: 12px 0 0;
    padding: 8px 0 0;
    border-top: 1px solid var(--glf-border);
}
.kvm-glf-breakdown > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: baseline;
    gap: 8px;
    padding: 2px 0;
}
.kvm-glasfinder .kvm-glf-breakdown dt { color: var(--glf-ink); font-weight: 500; }
.kvm-glasfinder .kvm-glf-breakdown dd { margin: 0; font-size: 12px; font-weight: 750; white-space: nowrap; }
.kvm-glasfinder .kvm-glf-details { font-size: 13px; color: var(--glf-muted); margin: 9px 0 4px; }
.kvm-glasfinder .kvm-glf-details summary {
    display: flex;
    align-items: baseline;
    gap: 12px;
    cursor: pointer;
    color: var(--glf-green);
    font-weight: 700;
    list-style: none;
}
.kvm-glf-details summary::-webkit-details-marker { display: none; }
.kvm-glf-details summary::after { content: "+" / ""; font-size: 18px; }
.kvm-glf-details[open] summary::after { content: "−" / ""; }
.kvm-glf-card .kvm-glf-details p { margin: 6px 0 0; }
.kvm-glasfinder a { color: var(--glf-green); text-underline-offset: 3px; text-decoration: underline; }
.kvm-glasfinder .kvm-glf-card-link {
    display: block;
    min-height: 48px;
    padding: 14px 12px;
    border-radius: 7px;
    background: var(--glf-green);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
}
.kvm-glasfinder .kvm-glf-card-link:hover { background: var(--glf-ink); color: #fff; }
.kvm-glf-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
@media (max-width: 1199px) {
    .kvm-glf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .kvm-glf-types, .kvm-glf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
    .kvm-glf-measures { grid-template-columns: 1fr; gap: 14px; }
    .kvm-glf-dimensions { max-width: 230px; }
}
@media (max-width: 590px) {
    .kvm-glf-grid { grid-template-columns: 1fr; }
    .kvm-glasfinder .kvm-glf-card h4 { min-height: 0; }
    .kvm-glf-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kvm-glf-fields label:last-child { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
    .kvm-glf-types { grid-template-columns: 1fr; }
}
