[data-zenye-quote-layout] {
    display: grid;
    align-items: start;
    gap: clamp(16px, 3vw, 40px);
    min-width: 0;
}

[data-zenye-quote-layout] > * {
    min-width: 0;
}

[data-zenye-quote-layout] > form {
    margin: 0;
    border: 1px solid #d9d9d6;
    background: #fff;
    padding: clamp(18px, 3vw, 38px);
}

[data-zenye-quote-panel] {
    background: #f3f4f2;
    border: 1px solid #d9d9d6;
    padding: clamp(20px, 2.5vw, 34px);
    color: #000;
}

#zenye-contact-template [data-zenye-quote-panel] > h2 {
    margin: 0 0 8px;
    color: inherit;
    font: 750 clamp(21px, 1.9vw, 27px)/1.25 Manrope, sans-serif;
    text-wrap: initial;
    letter-spacing: -.025em;
}

[data-zenye-quote-panel] p {
    margin: 0;
    color: inherit;
    font-size: 14px;
    line-height: 1.6;
}

[data-zenye-quote-panel] [data-zenye-quote-items] {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 20px 0 12px;
    padding: 0;
}

[data-zenye-quote-panel] [data-zenye-quote-items][hidden] {
    display: none;
}

:is([data-zenye-quote-items],[data-zenye-quote-exits]) li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 10px;
    padding: clamp(12px, 1.2vw, 16px);
    border: 1px solid #d9d9d6;
    background: #fff;
    margin: 0;
}

:is([data-zenye-quote-items],[data-zenye-quote-exits]) li:has(> .zenye-quote-photo) {
    grid-template-columns: clamp(54px, 18vw, 76px) minmax(0, 1fr) auto;
}

:is([data-zenye-quote-items],[data-zenye-quote-exits]) .zenye-quote-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #fff;
}

@media (min-width: 850px) {
    :is([data-zenye-quote-items],[data-zenye-quote-exits]) li:has(> .zenye-quote-photo) {
        grid-template-columns: clamp(64px, 7.5vw, 110px) minmax(0, 1fr) auto;
    }
}

:is([data-zenye-quote-items],[data-zenye-quote-exits]) li a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 44px;
    color: #000;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    text-underline-offset: .19em;
}

:is([data-zenye-quote-items],[data-zenye-quote-exits]) .zenye-quote-model {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

[data-zenye-quote-panel] > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: #000;
    font-size: 14px;
    font-weight: 750;
    text-decoration: underline transparent 1px;
    text-underline-offset: .22em;
}

[data-zenye-quote-panel] > [data-zenye-quote-jump] {
    display: none;
}

#zenye-enquiry-form-title {
    scroll-margin-top: 112px;
}

#zenye-enquiry-form-title:focus-visible {
    outline: 2px solid #000;
    outline-offset: 4px;
}

@media (max-width: 849px) {
    [data-zenye-quote-panel] > [data-zenye-quote-jump]:not([hidden]) {
        display: inline-flex;
        text-decoration: underline 1px;
    }

    [data-zenye-quote-jump]:not([hidden]) ~ [data-zenye-quote-items] {
        margin-top: 8px;
    }
}

#zenye-contact-template :is([data-zenye-quote-remove],.zenye-quote-ghost-remove) {
    min-height: 44px;
    min-width: 44px;
    padding: 0 5px;
    background: transparent;
    border: 0;
    color: #000;
    font: 600 13px/1.2 Manrope, sans-serif;
    cursor: pointer;
    text-decoration: underline 1px;
    text-underline-offset: .22em;
}

@media (max-width: 767px) {
    #zenye-contact-template[data-zenye-contact-quote-view] #request-a-quote {
        scroll-margin-top: 96px;
    }
}

@media (hover: hover) {
    :is([data-zenye-quote-items],[data-zenye-quote-exits]) li a:hover > span:last-child {
        text-decoration: underline #f5c51d 1px;
    }

    [data-zenye-quote-panel] > a:hover {
        text-decoration-color: #f5c51d;
    }

    :is([data-zenye-quote-items],[data-zenye-quote-exits]) li button:hover {
        background: #fff;
    }
}

[data-zenye-quote-panel] :is(a, button):focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
}

[data-zenye-quote-panel] [data-zenye-quote-status] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
}

#zenye-contact-template:not([data-zenye-quote-filled]) [data-zenye-quote-panel] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2px 16px;
    padding: 10px 16px;
}

#zenye-contact-template:not([data-zenye-quote-filled]) [data-zenye-quote-panel] > h2 {
    display: none;
}

@media (min-width: 850px) {
    [data-zenye-quote-filled] [data-zenye-quote-layout] {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 35%);
    }

    [data-zenye-quote-filled] [data-zenye-quote-layout] > [data-zenye-quote-panel] {
        grid-column: 2;
        grid-row: 1;
    }

    [data-zenye-quote-filled] [data-zenye-quote-layout] > form {
        grid-column: 1;
        grid-row: 1;
    }
}

/* Inert removal presentation; selection state stays in the existing controller. */
[data-zenye-quote-panel]{position:relative}
[data-zenye-quote-exits]{position:absolute;inset:0;list-style:none;margin:0;padding:0;pointer-events:none;z-index:1}
[data-zenye-quote-exits] *{pointer-events:none}

#zenye-contact-template [data-zenye-quote-items]{align-content:start}
