.single-product form.cart .button.weq-request-quote-button,
.woocommerce div.product form.cart .button.weq-request-quote-button,
.weq-request-quote-button {
    margin-left: 18px !important;
    margin-right: 0 !important;
    vertical-align: middle;
    display: inline-block;
}

.weq-modal-open {
    overflow: hidden;
}

.weq-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.weq-modal--open {
    display: block;
}

.weq-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
}

.weq-modal__dialog {
    position: relative;
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    margin: 24px auto;
    padding: 28px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.weq-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: 0;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.weq-product-name {
    margin: 0 0 18px;
    font-weight: 600;
}

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

.weq-quote-form label,
.weq-full-width,
.weq-consent {
    display: block;
    margin-bottom: 14px;
}

.weq-quote-form label span,
.weq-full-width span {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.weq-quote-form input[type="text"],
.weq-quote-form input[type="email"],
.weq-quote-form input[type="tel"],
.weq-quote-form input[type="number"],
.weq-quote-form textarea {
    width: 100%;
    box-sizing: border-box;
}

.weq-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.weq-consent input {
    margin-top: 5px;
}

.weq-consent span {
    font-weight: 400;
}

.weq-form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.weq-form-message {
    font-size: 14px;
}

.weq-form-message--success {
    color: #146c2e;
}

.weq-form-message--error {
    color: #b00020;
}

@media (max-width: 640px) {
    .weq-request-quote-button {
        display: block;
        margin: 10px 0 0;
        width: 100%;
    }

    .weq-modal__dialog {
        padding: 22px;
        margin: 16px auto;
    }

    .weq-form-grid {
        grid-template-columns: 1fr;
    }
}
