/* ═══════════════════════════════════════════════════════
   Cardame Reminders — Modal Popup
   ═══════════════════════════════════════════════════════ */

/* Body lock when modal open */
.cr-modal-body-lock {
    overflow: hidden;
}

/* Overlay */
.cr-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.cr-modal-overlay--open {
    display: flex;
    opacity: 1;
    animation: cr-fade-in 0.25s ease forwards;
}

@keyframes cr-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Modal box */
.cr-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 660px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: cr-slide-up 0.25s ease forwards;
}

@keyframes cr-slide-up {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Close button */
.cr-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    z-index: 10;
    transition: color 0.15s;
}
.cr-modal-close:hover { color: #333; }

/* Modal body padding */
.cr-modal-body {
    padding: 36px 36px 28px;
}

/* Loading state */
.cr-modal-loading {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 480px) {
    .cr-modal-body {
        padding: 28px 20px 20px;
    }
    .cr-modal-close {
        top: 10px;
        right: 12px;
    }
}
