.alert-modal[hidden] {
    display: none;
}

.modal-open {
    overflow: hidden;
}

.alert-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.alert-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(4px);
    animation: alert-backdrop-fade-in 0.2s ease;
}

.alert-modal__dialog {
    position: relative;
    width: min(440px, calc(100% - 32px));
    margin: 0;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e6ede8;
    box-shadow:
            0 30px 60px rgba(18, 28, 22, 0.18),
            0 10px 24px rgba(18, 28, 22, 0.10);
    overflow: hidden;
    animation: alert-dialog-fade-in 0.22s ease-out forwards;
    transform-origin: center;
}

.alert-modal__header,
.alert-modal__body,
.alert-modal__footer {
    padding-left: 28px;
    padding-right: 28px;
}

.alert-modal__header {
    padding-top: 26px;
    padding-bottom: 10px;
}

.alert-modal__title {
    margin: 0;
    color: #15231b;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.alert-modal__body {
    padding-top: 6px;
    padding-bottom: 26px;
}

.alert-modal__message {
    margin: 0;
    color: #4d5f56;
    font-size: 15px;
    line-height: 1.7;
    word-break: keep-all;
    white-space: pre-line;
}

.alert-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 0;
    padding-bottom: 24px;
}

.alert-modal__button {
    min-width: 132px;
    height: 46px;
    padding: 0 18px;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition:
            transform 0.18s ease,
            box-shadow 0.18s ease,
            background 0.18s ease,
            opacity 0.18s ease,
            border-color 0.18s ease,
            color 0.18s ease;
}

.alert-modal__button:hover {
    transform: translateY(-1px);
}

.alert-modal__button:active {
    transform: translateY(0);
}

.alert-modal__button:disabled {
    cursor: default;
    opacity: 0.7;
    transform: none;
}

.alert-modal__button--primary {
    background: linear-gradient(180deg, #2f9e5b 0%, #25824a 100%);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(47, 158, 91, 0.24);
}

.alert-modal__button--primary:hover {
    box-shadow: 0 16px 28px rgba(47, 158, 91, 0.28);
}

.alert-modal__button--secondary {
    background: #ffffff;
    color: #355244;
    border: 1px solid #d7e3db;
    box-shadow: 0 8px 18px rgba(18, 28, 22, 0.08);
}

.alert-modal__button--secondary:hover {
    background: #f7faf8;
    border-color: #c8d8cf;
    box-shadow: 0 12px 22px rgba(18, 28, 22, 0.10);
}

@keyframes alert-backdrop-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes alert-dialog-fade-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

