html.vqm-lock, body.vqm-lock { overflow: hidden !important; }

.vqm-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    font-family: Arial, Helvetica, sans-serif;
}

.vqm-modal.is-open { display: block; }

.vqm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .58);
    backdrop-filter: blur(1px);
}

.vqm-dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(760px, calc(100vw - 36px));
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    color: #20252b;
}

.vqm-titlebar {
    padding: 17px 24px 15px;
    border-bottom: 1px solid #e6e9ed;
}

.vqm-titlebar h2 {
    margin: 0;
    padding: 0;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    color: #1f242a;
}

.vqm-close {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #222;
    width: 36px;
    height: 36px;
    font-size: 28px;
    line-height: 34px;
    cursor: pointer;
}

.vqm-product-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 22px;
    padding: 20px 24px;
    border-bottom: 1px solid #edf0f2;
}

.vqm-product-media {
    height: 132px;
    border: 1px solid #e2e5e9;
    border-radius: 5px;
    background: #fafbfc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vqm-product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vqm-product-placeholder {
    text-align: center;
    color: #9aa2ab;
}

.vqm-product-placeholder .dashicons {
    display: block;
    width: auto;
    height: auto;
    font-size: 46px;
    margin-bottom: 4px;
}

.vqm-product-data {
    display: grid;
    align-content: start;
    gap: 8px;
    font-size: 14px;
}

.vqm-product-data > div,
.vqm-more-specs > div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
}

.vqm-product-data b {
    color: #161a1e;
    font-weight: 700;
}

.vqm-more-specs {
    display: grid;
    gap: 8px;
}

#vqm-form {
    padding: 20px 24px 24px;
}

.vqm-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 13px;
}

.vqm-row-message { align-items: start; }

.vqm-row label {
    font-size: 13px;
    font-weight: 600;
    color: #282d33;
}

.vqm-row label em {
    color: #d63638;
    font-style: normal;
}

.vqm-row input,
.vqm-row textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 40px;
    border: 1px solid #d7dce1;
    border-radius: 4px;
    padding: 9px 11px;
    background: #fff;
    color: #20252b;
    font: inherit;
    font-size: 14px;
}

.vqm-row textarea {
    min-height: 86px;
    resize: vertical;
}

.vqm-row input:focus,
.vqm-row textarea:focus {
    outline: none;
    border-color: #2878ff;
    box-shadow: 0 0 0 2px rgba(40,120,255,.12);
}

.vqm-form-status {
    min-height: 20px;
    margin: 5px 0 10px 152px;
    font-size: 13px;
}

.vqm-form-status.is-success { color: #18864b; }
.vqm-form-status.is-error { color: #c62828; }

.vqm-submit {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 4px;
    padding: 12px 18px;
    background: #2b73ff;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease;
}

.vqm-submit:hover { background: #155fe3; }
.vqm-submit:disabled { opacity: .68; cursor: wait; }

@media (max-width: 680px) {
    .vqm-dialog {
        width: calc(100vw - 18px);
        max-height: calc(100vh - 18px);
    }

    .vqm-product-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px;
    }

    .vqm-product-media {
        width: 100%;
        height: 160px;
    }

    #vqm-form { padding: 18px; }

    .vqm-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .vqm-form-status { margin-left: 0; }

    .vqm-product-data > div,
    .vqm-more-specs > div {
        grid-template-columns: 112px 1fr;
    }
}
