@charset "UTF-8";

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-overlay-bg);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
    z-index: 9999;
}

.popup-dialog {
    background: var(--color-popup-bg);
    background: #fdfdfd;
    border-radius: 8px;
    border: 1px solid var(--color-popup-border);
    border: 1px solid #ddd;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 90%;
    overflow: hidden;
    animation: popupShow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-header {
    height: 8px;
    width: 100%;
}

.popup-header--error {
    background-color: var(--color-popup-error);
}

.popup-header--warning {
    background-color: var(--color-popup-warning);
}

.popup-header--success {
    background-color: var(--color-popup-success);
}

.popup-header--info {
    background-color: var(--color-popup-info);
}

.popup-content {
    padding: 2rem 1.5rem 1rem 1.5rem;
    text-align: center;
}

.popup-title {
    font-weight: bold;
    font-size: 1rem;
    color: var(--color-popup-title);
    margin-bottom: 0.75rem;
}

.popup-message {
    color: var(--color-popup-text);
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
}

.popup-footer {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    justify-content: center;
}

@keyframes popupShow {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}