﻿.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    min-width: 400px; /* Стартова ширина */
    max-width: 90vw; /* Може розтягуватись */
    width: fit-content; /* Автоматична ширина по контенту */
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    font-family: Arial, sans-serif;
    text-align: center;
}

    .modal-content input {
        width: 100%;
        padding: 8px;
        margin-bottom: 10px;
        border: 1px solid #ccc;
        border-radius: 6px;
    }
        .modal-content input[type="checkbox"] {
            width: auto;
            padding: 0;
            margin-bottom: 0;
            border: none;
        }
    .modal-content button {
        background-color: #f15a29;
        color: white;
        padding: 8px 16px;
        margin: 5px;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

        .modal-content button:hover {
            background-color: #d94f20;
        }

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
}
    .form-row label {
        min-width: 150px;
        text-align: left;
    }

.form-row input[type="checkbox"] {
    transform: translateY(-2px);
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 10px;
}