body.ovls-modal-open {
    overflow: hidden;
}

.ovls-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.62);
}

.ovls-modal {
    position: relative;
    width: min(100%, 560px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 24px;
    background: #fff;
    padding: 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.ovls-modal-size-sm .ovls-modal {
    width: min(100%, 420px);
}

.ovls-modal-size-md .ovls-modal {
    width: min(100%, 560px);
}

.ovls-modal-size-lg .ovls-modal {
    width: min(100%, 760px);
}

.ovls-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.08);
    color: #111827;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.ovls-modal-title {
    margin: 0 42px 18px 0;
    font-size: 24px;
    line-height: 1.2;
}

.ovls-modal-content textarea,
.ovls-modal-content input {
    width: 100%;
}

.ovls-modal-content textarea {
    min-height: 120px;
    resize: vertical;
}

.ovls-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.ovls-button-danger {
    background: #b91c1c;
}