/*
 * Quote modal — overlay + card for the Request-a-Quote confirmation and the
 * guest login/register CTA. Kept CSS-var-free and low-specificity so the
 * theme's global.css owns typography/colors.
 */

.hbi-quote-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.hbi-quote-modal[hidden] { display: none; }

body.hbi-quote-modal-open {
    overflow: hidden;
}

.hbi-quote-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
}

.hbi-quote-modal__card {
    position: relative;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    padding: 1.5rem 1.75rem 1.75rem;
    width: 100%;
    max-width: 32rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    outline: none;
}

.hbi-quote-modal__close {
    position: absolute;
    top: .5rem;
    right: .5rem;
    background: transparent;
    border: 0;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    padding: .25rem .5rem;
    color: #555;
}
.hbi-quote-modal__close:hover { color: #000; }

.hbi-quote-modal__title {
    margin: 0 0 .75rem;
    font-size: 1.35rem;
    line-height: 1.3;
}

.hbi-quote-modal__message {
    margin: 0 0 1rem;
    color: #444;
}

.hbi-quote-modal__product {
    display: flex;
    gap: .75rem;
    align-items: center;
    background: #f7f7f7;
    padding: .75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}
.hbi-quote-modal__product-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}
.hbi-quote-modal__product-body { min-width: 0; }
.hbi-quote-modal__product-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hbi-quote-modal__product-qty {
    font-size: .875rem;
    color: #666;
}

.hbi-quote-modal__summary {
    background: #f0f4f8;
    border-left: 3px solid #2271b1;
    padding: .5rem .75rem;
    font-size: .9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.hbi-quote-modal__notes-label {
    display: block;
    font-size: .875rem;
    margin-bottom: .25rem;
    color: #555;
}
.hbi-quote-modal__notes {
    width: 100%;
    padding: .5rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: inherit;
    font-size: .9rem;
    margin-bottom: 1rem;
    resize: vertical;
}

.hbi-quote-modal__actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}
.hbi-quote-modal__btn {
    /* Piggy-back on theme's .button styles; only tune spacing here. */
    padding: .625rem 1.25rem;
    line-height: 1.2;
    cursor: pointer;
}
.hbi-quote-modal__btn--primary {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}
.hbi-quote-modal__btn--primary:hover {
    background: #135e96;
    border-color: #135e96;
}
.hbi-quote-modal__btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
}

.hbi-quote-modal__error {
    color: #b32d2e;
    font-size: .875rem;
    margin-top: .75rem;
}
