@charset 'utf-8';

/* 메인 공지 모달: 공통 .modal(layout.css, commonUI.js UI.modal)을 짧은 안내창 크기로 줄인다 */
.notice-modal .modal-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding: 0 20px;
    pointer-events: none;
}

/* 안쪽만 클릭을 받게 해서 바깥 배경 클릭(event.target == #Modal) 닫기가 그대로 동작한다 */
.notice-modal .modal-content {
    position: relative;
    top: auto;
    bottom: auto;
    width: 100%;
    max-width: 560px;
    margin: 0;
    border: 0;
    border-radius: 16px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.notice-modal .modal-header {
    position: relative;
    height: auto;
    padding: 1.6rem 3.6rem 0 1.6rem;
    box-shadow: none;
}

.notice-modal__title {
    color: #222222;
    font-size: 1.182rem;
    font-weight: 700;
    line-height: 1.4;
}

.notice-modal .close {
    top: 1.2rem;
    right: 1.2rem;
    color: #888888;
    font-size: 1.8rem;
}

.notice-modal .close:hover,
.notice-modal .close:focus-visible {
    color: #3673a6;
}

.notice-modal .modal-body {
    position: relative;
    top: auto;
    padding: 0.8rem 1.6rem 1.6rem;
    overflow: visible;
    color: #444444;
    font-size: 0.909rem;
    line-height: 1.6;
}

/* 본문: 언제부터 바뀌는지(첫 줄) → 주요 변경 내용(회색 상자) → 어디서 자세히 보는지 */
.notice-modal__lead {
    color: #222222;
    font-weight: 500;
}

.notice-modal__box {
    margin-top: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    background: #f4f7fa;
}

.notice-modal__sub {
    margin-bottom: 0.4rem;
    color: #3673a6;
    font-size: 0.818rem;
    font-weight: 700;
}

.notice-modal__list > li {
    position: relative;
    padding-left: 0.9rem;
    font-size: 0.864rem;
}

.notice-modal__list > li + li {
    margin-top: 0.4rem;
}

.notice-modal__list > li::before {
    content: '';
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #3673a6;
}

.notice-modal__note {
    margin-top: 0.9rem;
    color: #888888;
    font-size: 0.818rem;
}

.notice-modal .modal-btn-box {
    display: flex;
    gap: 0.5rem;
    padding-top: 1.4rem;
}

.notice-modal .modal-btn-box .btn {
    flex: 1;
    width: auto;
    min-width: 0;
    padding: 0.75rem 1rem;
    border-radius: 2em;
    font-size: 0.909rem;
    text-align: center;
}

.notice-modal__close {
    border: 1px solid #dddddd;
    background: #ffffff;
    color: #444444;
}

.notice-modal__close:hover,
.notice-modal__close:focus-visible {
    border-color: #3673a6;
    color: #3673a6;
}

/* 아래 띠: 오늘 하루 보지 않기 */
.notice-modal__foot {
    padding: 0.7rem 1.6rem;
    border-top: 1px solid #eeeeee;
    background: #fafafa;
}

.notice-modal__today {
    padding: 0;
    border: 0;
    background: none;
    color: #888888;
    font-size: 0.818rem;
    cursor: pointer;
}

.notice-modal__today:hover,
.notice-modal__today:focus-visible {
    color: #3673a6;
    text-decoration: underline;
}
