/* Современная плоская минималистичная модалка */
.modern-modal {
    border-radius: 10px;
    background: #ffffff;
    padding: 5px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
}

/* Улучшенная кнопка закрытия — большая область клика, плавная анимация, красный hover */
.modal-bs-close-button {
    position: absolute;
    top: 12px;
    right: 14px;

    /* Размер хит-зоны (делает центр крестика легко кликабельным) */
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 26px;       /* размер видимого символа */
    line-height: 1;
    color: #555;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;

    /* Плавная анимация (цвет + масштаб) */
    transition: transform 0.22s ease, color 0.22s ease, opacity 0.22s ease, background 0.18s ease;
    transform-origin: center;
    opacity: 0.85;

    /* Убедимся, что кнопка над всем содержимым модалки */
    z-index: 2050;
}

/* Делает сам символ некликабельным — чтобы события всегда шли на кнопку */
.modal-bs-close-button > span {
    pointer-events: none;
    display: inline-block;
}

/* Hover: красный, чуть увеличивается, фон лёгкий для визуальной метки */
.modal-bs-close-button:hover {
    color: #e00000;
    transform: scale(1.12);
    opacity: 1;
    background: rgba(224,0,0,0.06);
}

/* Active (при нажатии) — лёгкий "вдавливающий" эффект */
.modal-bs-close-button:active {
    transform: scale(0.98);
    transition: transform 0.08s ease;
}

/* Дополнительно: мобильная корректировка (чтобы размер был удобен на тачах) */
@media (max-width: 576px) {
    .modal-close-button {
        width: 52px;
        height: 52px;
        font-size: 28px;
        right: 12px;
        top: 10px;
    }
}


/* Анимация */
.modal.fade .modal-dialog {
    transform: scale(0.9);
    transition: transform .25s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Контент */
#modal_dynamic_content {
    font-size: 14px;
}
