
/* custom Alert */

#kr_alert_box {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000000;
}

.kr_alert_content {
    background: white;
    padding: 20px;
    padding-bottom: 40px;
    /* Reduced bottom padding */
    border-radius: 5px;
    text-align: left;
    width: auto;
    max-width: 600px;
    min-width: 300px;
    min-height: 100px;
    max-height: 90%;
    box-shadow: 14px 14px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: 0 20px;
    overflow-y: auto;
}

.kr_alert_button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
    position: absolute;
    right: 20px;
    bottom: 10px;
    /* Adjusted to reduce space */
    transition: background-color 0.3s;
}

.kr_alert_button:hover {
    background-color: #0056b3;
}

/* Bootstrap-inspired alert types */
.kr_alert_success {
    background-color: #28a745;
    color: #fff;
}

.kr_alert_error {
    background-color: #dc3545;
    color: #fff;
}

.kr_alert_notification {
    background-color: #17a2b8;
    color: #fff;
}

@media (max-width: 768px) {
    .kr_alert_content {
        padding: 15px;
        padding-bottom: 30px;
        /* Further reduced for smaller screens */
        margin: 10px;
    }

    .kr_alert_button {
        right: 10px;
        bottom: 10px;
        padding: 8px 15px;
    }
}
