[data-vp-quick-quote][hidden] {
    display: none !important;
}

[data-vp-quick-quote] {
    position: fixed;
    z-index: 1090;
    top: calc(5.25rem + env(safe-area-inset-top, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    display: flex;
    width: min(390px, calc(100vw - 2rem));
    max-height: calc(100vh - 7rem);
    max-height: calc(100dvh - 7rem - env(safe-area-inset-top, 0px));
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.1rem;
    border: 1px solid #dedede;
    border-top: 4px solid var(--vp-client-accent, #ffdb00);
    border-radius: 0.65rem;
    background: #fff;
    color: #202020;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

[data-vp-quick-quote-header] {
    padding-right: 2.2rem;
}

[data-vp-quick-quote] > :not([data-vp-quick-quote-lines]) {
    flex-shrink: 0;
}

[data-vp-quick-quote] h2,
[data-vp-quick-quote] h3 {
    margin: 0 2rem 0 0;
    color: #202020;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

[data-vp-quick-quote-close] {
    position: absolute;
    top: 0.65rem;
    right: 0.6rem;
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0.3rem;
    background: transparent;
    color: #202020;
    font-size: 1.5rem;
    cursor: pointer;
}

[data-vp-quick-quote-close]:hover {
    background: #f1f1f1;
}

[data-vp-quick-quote] a:focus-visible,
[data-vp-quick-quote] button:focus-visible {
    outline: 2px solid #202020;
    outline-offset: 3px;
}

[data-vp-quick-quote-status] {
    margin: 0;
    font-size: 0.87rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

[data-vp-quick-quote-status]:empty {
    display: none;
}

[data-vp-quick-quote-status].is-error {
    color: #8b2119;
}

[data-vp-quick-quote-lines] {
    display: grid;
    min-height: 0;
    gap: 0;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
}

.vp-quick-quote-line {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #ececec;
}

.vp-quick-quote-line:last-child {
    border-bottom: 0;
}

.vp-quick-quote-image {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border: 1px solid #eee;
    border-radius: 0.3rem;
    background: #fff;
    object-fit: contain;
}

.vp-quick-quote-line-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.18rem;
    overflow-wrap: anywhere;
}

.vp-quick-quote-name {
    color: #202020;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

a.vp-quick-quote-name:hover {
    color: #202020;
    text-decoration: underline;
}

.vp-quick-quote-number,
.vp-quick-quote-variant {
    color: #626262;
    font-size: 0.76rem;
    line-height: 1.4;
}

.vp-quick-quote-quantity {
    color: #303030;
    font-size: 0.8rem;
}

[data-vp-quick-quote-total] {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
}

[data-vp-quick-quote-more] {
    margin: 0;
    color: #626262;
    font-size: 0.8rem;
}

[data-vp-quick-quote-full] {
    display: block;
    padding: 0.65rem 0.85rem;
    border: 1px solid #202020;
    border-radius: 0.35rem;
    background: var(--vp-client-accent, #ffdb00);
    color: #161616;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

[data-vp-quick-quote-full]:hover {
    background: #202020;
    color: #fff;
}

@media (max-width: 575.98px) {
    [data-vp-quick-quote] {
        top: calc(4.25rem + env(safe-area-inset-top, 0px));
        max-height: calc(100dvh - 5.5rem - env(safe-area-inset-top, 0px));
        padding: 1rem;
    }
}
