.tr-wzpq-trigger {
    cursor: pointer;
}

html.tr-wzpq-modal-open,
html.tr-wzpq-modal-open body {
    overflow: hidden;
}

.tr-wzpq-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tr-wzpq-modal.is-open {
    display: flex;
}

.tr-wzpq-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}

.tr-wzpq-dialog {
    position: relative;
    z-index: 2;
    width: min(680px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
}

.tr-wzpq-dialog h2 {
    margin: 0 40px 22px 0;
    font-size: 28px;
    line-height: 1.2;
}

.tr-wzpq-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.tr-wzpq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tr-wzpq-field {
    margin-bottom: 16px;
}

.tr-wzpq-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.tr-wzpq-field label span {
    color: #b32d2e;
}

.tr-wzpq-field input,
.tr-wzpq-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #c9c9c9;
    border-radius: 4px;
    background: #fff;
    color: inherit;
    font: inherit;
    box-sizing: border-box;
}

.tr-wzpq-field input[readonly] {
    background: #f6f6f6;
}

.tr-wzpq-field textarea {
    min-height: 120px;
    resize: vertical;
}

.tr-wzpq-actions {
    margin-top: 4px;
}

.tr-wzpq-submit {
    min-width: 150px;
}

.tr-wzpq-submit[disabled] {
    opacity: 0.65;
    cursor: wait;
}

.tr-wzpq-status {
    display: none;
    margin-top: 16px;
    padding: 11px 13px;
    border-radius: 4px;
}

.tr-wzpq-status.is-success,
.tr-wzpq-status.is-error {
    display: block;
}

.tr-wzpq-status.is-success {
    background: #edf7ed;
    border: 1px solid #b7dcb8;
}

.tr-wzpq-status.is-error {
    background: #fff0f0;
    border: 1px solid #e2b7b7;
}

.tr-wzpq-hp {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 600px) {
    .tr-wzpq-modal {
        padding: 12px;
    }

    .tr-wzpq-dialog {
        padding: 22px 18px;
        max-height: calc(100vh - 24px);
    }

    .tr-wzpq-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tr-wzpq-dialog h2 {
        font-size: 23px;
    }
}
