
/* WD_QUOTE_POPUP_V1 */

.wd-quote-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(14, 22, 32, .55);
}

.wd-quote-dialog {
    box-sizing: border-box;
    width: min(100%, 620px);
    max-height: 92vh;
    overflow-y: auto;
    padding: 25px;
    background: #fff;
    color: #17212b;
    border-radius: 15px;
    box-shadow: 0 24px 80px rgba(0,0,0,.22);
    font-family: inherit;
}

.wd-quote-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.wd-quote-header h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
}

.wd-quote-header p {
    margin: 6px 0 0;
    color: #687587;
    font-size: 13px;
}

.wd-quote-close {
    flex: none;
    width: 34px;
    height: 34px;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    background: #fff;
    color: #25303b;
    font-size: 24px;
    cursor: pointer;
}

.wd-quote-product {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 19px 0;
    padding: 15px;
    border: 1px solid #e9edf1;
    border-radius: 10px;
    background: #f7f8fa;
}

.wd-quote-product strong {
    font-size: 14px;
}

.wd-quote-product small,
.wd-quote-product span {
    color: #687587;
    font-size: 12px;
}

.wd-quote-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
}

.wd-quote-grid label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.wd-quote-wide {
    grid-column: 1 / -1;
}

.wd-quote-grid input,
.wd-quote-grid textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d6dde4;
    border-radius: 8px;
    background: #fff;
    color: #17212b;
    font: inherit;
    font-size: 14px;
}

.wd-quote-grid input:focus,
.wd-quote-grid textarea:focus {
    border-color: #ac2039;
    outline: 2px solid rgba(172,32,57,.15);
}

.wd-quote-privacy {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 17px 0;
    color: #566474;
    font-size: 12px;
    cursor: pointer;
}

.wd-quote-privacy a {
    color: #ac2039;
}

.wd-quote-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.wd-quote-actions button {
    padding: 11px 18px;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.wd-quote-cancel {
    background: #fff;
    color: #26313e;
    border: 1px solid #d6dde4;
}

.wd-quote-submit {
    background: #ac2039;
    border: 1px solid #ac2039;
    color: #fff;
}

.wd-quote-submit:disabled {
    opacity: .6;
    cursor: wait;
}

.wd-quote-status {
    margin: 15px 0 0;
    padding: 13px;
    border-radius: 8px;
    background: #fff0f0;
    color: #9d2433;
    font-size: 13px;
}

.wd-quote-status.is-success {
    background: #edf8f0;
    color: #236b3b;
}

.wd-quote-honeypot {
    position: absolute;
    left: -99999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.wd-quote-form[hidden],
.wd-quote-status[hidden] {
    display: none !important;
}

@media (max-width: 540px) {
    .wd-quote-dialog {
        padding: 18px;
        border-radius: 12px;
    }

    .wd-quote-header h2 {
        font-size: 19px;
    }

    .wd-quote-grid {
        grid-template-columns: 1fr;
    }

    .wd-quote-wide {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wd-quote-overlay,
    .wd-quote-dialog {
        scroll-behavior: auto;
    }
}


/* WD_QUOTE_POPUP_COMPANY_THUMB_V11 */

.wd-quote-product {
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

.wd-quote-product__thumbnail {
    display: block;
    flex: 0 0 78px;
    width: 78px;
    height: 78px;
    box-sizing: border-box;
    padding: 5px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e5e9ee;
    border-radius: 9px;
}

.wd-quote-product__thumbnail[hidden] {
    display: none !important;
}

.wd-quote-product__details {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.wd-quote-product__details strong {
    overflow-wrap: anywhere;
}

@media (max-width: 540px) {
    .wd-quote-product__thumbnail {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }
}
