@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');

.alert {
    background: #a0e6a0;
    padding: 15px 20px;
    width: 90%;
    max-width: 420px;
    position: fixed;
    right: -500px;
    top: 200px;
    border-radius: 4px;
    border-left: 8px solid #50c850;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 1s ease, opacity 1s ease, right 1s ease;
    font-family: 'Poppins', sans-serif;
    word-wrap: break-word;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.alert.showAlert {
    opacity: 1;
    pointer-events: auto;
    right: 20px;
}

.alert.hideAlert {
    opacity: 0;
    right: -500px;
}

.alert .fa-circle-check {
    color: #2d7a2d;
    font-size: 30px;
}

.alert .msg {
    font-size: 20px;
    color: #2d7a2d;
}

.alert .close-btn {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    background: #70d470;
    padding: 20px 18px;
    cursor: pointer;
    border: none;
}

.alert .close-btn:hover {
    background: #50c850;
}

.alert .close-btn .fas {
    color: #2d7a2d;
    font-size: 22px;
    line-height: 40px;
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
    .alert {
        min-width: 200px;
        padding: 15px 30px;
        font-size: 20px;
    }

    .alert .msg {
        font-size: 18px;
    }

    .alert .fa-circle-check {
        font-size: 26px;
    }

    .alert .close-btn .fas {
        font-size: 20px;
    }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .alert {
        min-width: 200px;
        padding: 10px 12px;
        font-size: 18px;
        top: 100px;
    }

    .alert .fa-circle-check {
        font-size: 20px;
    }

    .alert .msg {
        font-size: 14px;
    }

    .alert .close-btn {
        padding: 10px 12px;
    }

    .alert .close-btn .fas {
        font-size: 16px;
        line-height: 28px;
    }
}