.ms-lms-calendar { margin-bottom: 20px; }
.fc-daygrid-event { background: transparent !important; border: none !important; cursor: pointer; padding: 1px 0 !important; }
.fc-event-main-custom { padding: 0 4px; }
.fc-event-title-custom { white-space: normal; overflow-wrap: break-word; font-weight: 500; }
.fc-event-time-custom { white-space: normal; overflow-wrap: break-word; font-size: 0.9em; }

/* --- POPUP STYLES --- */
.ms-calendar-popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6); z-index: 99999;
    display: flex; align-items: center; justify-content: center;
}
.ms-calendar-popup {
    background-color: #fff; padding: 25px 30px; border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); width: 90%; max-width: 450px;
    position: relative; text-align: center;
}
.ms-calendar-popup-close {
    position: absolute; top: 10px; right: 15px; font-size: 28px;
    line-height: 1; color: #aaa; cursor: pointer; transition: color 0.2s;
}
.ms-calendar-popup-close:hover { color: #333; }
.ms-calendar-popup h3 {
    margin-top: 0; margin-bottom: 20px; font-size: 1.4em; color: #333;
}
/* New styles for button actions */
.ms-calendar-popup-actions {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px; /* Add space between buttons */
}
.ms-calendar-popup-button {
    display: block; /* Make buttons full-width */
    width: 100%;
    box-sizing: border-box; /* Include padding in the width */
    padding: 12px 20px; font-size: 1em; font-weight: bold;
    color: #fff !important; background-color: #0073aa; border: none; border-radius: 5px;
    text-decoration: none; transition: all 0.2s;
    cursor: pointer;
}
.ms-calendar-popup-button:hover { background-color: #005f8c; color: #fff !important; }

/* Secondary button style for "Continue Shopping" */
.ms-calendar-popup-button.secondary {
    background-color: #f0f0f0;
    color: #444 !important;
    border: 1px solid #ccc;
}
.ms-calendar-popup-button.secondary:hover {
    background-color: #e0e0e0;
    color: #333 !important;
}

/* Success state for the "Add to Cart" button */
.ms-calendar-popup-button.added {
    background-color: #2a9d8f; /* A nice green color */
    cursor: not-allowed;
}