/*********************************************************
    Modals - Airws
*********************************************************/

.airws-modal {
    display: none;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px 0;
    font-family: var(--font-family);
}

.airws-modal--open {
    display: flex;
}

.airws-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.airws-modal-content {
    margin: auto;
    flex: none;
    z-index: 2;
    width: 440px;
    background: var(--belyy);
    max-width: calc(100% - 32px);
    position: relative;
    border-radius: 30px;
    padding: 50px 120px;
    font-weight: 500;
    font-size: 14px;
    line-height: 140%;
    color: var(--siniy);
}

.airws-modal-header {
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 35px;
    line-height: normal;
    color: var(--siniy);
    margin-bottom: 20px;
}

.airws-modal-body {
}

/*.airws-modal-content--small, [data-airws-modal-size="small"] .airws-modal-content {
    width: 320px;
}*/

.airws-modal-content--medium, [data-airws-modal-size="medium"] .airws-modal-content {
    width: 440px;
}

.airws-modal-content--large, [data-airws-modal-size="large"] .airws-modal-content {
    width: 1158px;
}

.airws-modal-content--xlarge, [data-airws-modal-size="xlarge"] .airws-modal-content {
    width: 1320px;
}

.airws-modal-content--auto {
    width: auto;
}

.airws-modal-close {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    padding: 0;
    outline: none;
    cursor: pointer;
    z-index: 10;
    font-size: 0;
}

.airws-modal-close::before,
.airws-modal-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    width: 20px;
    height: 2px;
    background: var(--siniy);
}

.airws-modal-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.airws-modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.airws-modal__title {
    font-weight: 700;
    font-size: 18px;
    line-height: 120%;
    text-align: center;
    margin: 0 0 40px;
}

body.airws-modal-open {
    overflow: hidden;
}

@keyframes airws-modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.airws-modal--open .airws-modal-content {
    animation: airws-modalFadeIn 0.3s ease-out;
}

.airws-modal-message {
    text-align: center;
}

.airws-modal-message__header {
    margin-bottom: 1.5rem;
}

.airws-modal-message__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.airws-modal-message__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.airws-modal-message__content {
    margin-bottom: 2rem;
    line-height: 1.5;
}

.airws-modal-message__footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Темы для разных типов сообщений */
.airws-modal-message--success .airws-modal-message__icon {
    background: #d4edda;
    color: #155724;
}

.airws-modal-message--error .airws-modal-message__icon {
    background: #f8d7da;
    color: #721c24;
}

.airws-modal-message--info .airws-modal-message__icon {
    background: #d1ecf1;
    color: #0c5460;
}

.airws-modal-message--warning .airws-modal-message__icon {
    background: #fff3cd;
    color: #856404;
}


.airws-delete-confirmation {
    text-align: center;
}

.airws-confirmation-text {
    margin-bottom: 20px;
    font-weight: 400;
    font-size: 14px;
    text-align: center;
    color: var(--seryy);
}

.airws-confirmation-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.airws-modal-loading-content {
    display: flex;
    align-self: center;
    justify-content: center;
    padding: 30px;
}

.airws-modal-title {
    margin-bottom: 16px;
    padding: 0 20px;
    font-weight: 800;
    font-size: 30px;
    line-height: 122%;
    text-transform: uppercase;
    text-align: center;
    color: var(--siniy);
}

.airws-modal .airws-form__field {
    margin-bottom: 12px;
}

@media (max-width: 767px) {
    .airws-modal-content {
        border-radius: 30px;
        padding: 20px 15px;
    }

    .airws-modal-title {
        font-size: 22px;
        text-align: left;
        padding: 0;
        margin-bottom: 30px;
    }

    .airws-modal-close {
        top: 15px;
        right: 15px;
    }

}
