/* 중앙 팝업 스타일 */
.mcep-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex; justify-content: center; align-items: center; z-index: 99999;
}
.mcep-popup {
    background-color: #fff; padding-top: 20px; border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 90%; max-width: 700px;
    display: flex;
    flex-direction: column;
}
.mcep-popup-content {
    padding: 0 20px;
}
.mcep-popup h2 {
    margin-top: 0; margin-bottom: 20px; font-size: 18px; color: #202124;/* 팝업 상단 제목조정 */
    text-align: center; border-bottom: 1px solid #e0e0e0; padding-bottom: 15px; padding-left: 20px; padding-right: 20px;
}

/* 스크롤바 숨기기 */
.mcep-popup ul {
    list-style: none; padding: 0; margin: 0;
    max-height: 60vh; overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.mcep-popup ul::-webkit-scrollbar {
    display: none;
}

/* 목록(li) 아이템 스타일 */
.mcep-popup li {
    padding: 15px 10px 15px 25px;
    border-bottom: 1px solid #f0f0f0;
    font-size: var(--mcep-font-size, 15px);
    position: relative;
}
.mcep-popup li:last-child { border-bottom: none; }

.mcep-item-title {
    font-weight: bold; color: #3c4043;
    font-size: 1.1em;
    margin-bottom: 3px;/* 제목과 일정 여백 조정 */
}
.mcep-tag-important {
    color: #d93025; margin-right: 5px; font-weight: bold;
}
.mcep-item-meta { /* 일정과 장소를 포함 */
    font-size: 0.95em; color: #5f6368;
    line-height: 1.5;
}

/* 오늘/내일 하이라이트 스타일 */
.mcep-item-today::before,
.mcep-item-tomorrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
}
.mcep-item-today::before { background-color: #d93025; }
.mcep-item-tomorrow::before { background-color: #fbbc05; }

/* [수정] 중요 항목 제목 스타일 */
.mcep-item-expandable > .mcep-item-title {
    cursor: pointer;
    display: flex;
    align-items: center;
    /* justify-content: space-between; 제거 */
}
/* [수정] '내용보기' 텍스트 버튼 스타일 */
.mcep-toggle-button {
    font-size: 12px;
    font-weight: 500;
    color: #5f6368;
    background-color: #f1f3f4;
    padding: 4px 10px;
    border-radius: 15px;
    margin-left: auto;
    transition: background-color 0.2s ease;
    white-space: nowrap; /* 줄바꿈 방지 */
}

/* [수정] 마우스를 올렸을 때 버튼 스타일 */
.mcep-item-expandable > .mcep-item-title:hover .mcep-toggle-button {
    background-color: #e8eaed;
}

/* 상세 내용(드롭다운) 영역 스타일 */
.mcep-item-description {
    margin-top: 12px;
    padding: 12px;
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    font-size: 0.92em;
    color: #3c4043;
    line-height: 0.8;
    white-space: pre-wrap; /* 줄바꿈을 그대로 표시 */
}


/* 팝업 하단(footer) 및 닫기 버튼 스타일 */
.mcep-popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 10px 20px;
    border-top: 1px solid #e0e0e0;
}
.mcep-popup-footer label {
    font-size: 13px;
    color: #5f6368;
    vertical-align: middle;
    cursor: pointer;
}
.mcep-popup-footer input[type="checkbox"] {
    margin-right: 5px;
    vertical-align: middle;
}
.mcep-close-btn {
    font-size: 30px;
    line-height: 1;
    color: #5f6368;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0 5px;
}
.mcep-close-btn:hover {
    color: #000;
}