/* 장기 미사용 마일리지 잠금 안내 팝업 (Views/Shared/_MileageGatePopup.cshtml 전용)
   사이트 알림창(jconfirm type-b) 무드: 검정 60% 오버레이 + 각진 박스 */
.mgate-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.58);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}
.mgate-modal {
    position: relative;
    background: #fff;
    border-radius: 6px;
    width: 100%;
    max-width: 610px;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    animation: mgateIn 0.2s ease-out;
}
@keyframes mgateIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .mgate-modal { animation: none; }
}
.mgate-topbar {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    padding: 4px 8px 0;
    background: #fff;
}
.mgate-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #98a0a3;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
}
.mgate-close:hover {
    background: #f3f6f6;
    color: #5a6367;
}
.mgate-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 28px 16px;
    scrollbar-width: thin;
    scrollbar-color: #d8d8d8 transparent;
    /* 스크롤 가능 여부를 보여주는 상/하단 그림자 (내용이 더 있을 때만 나타남) */
    background:
        linear-gradient(#fff 30%, rgba(255, 255, 255, 0)),
        linear-gradient(rgba(255, 255, 255, 0), #fff 70%) 0 100%,
        radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, 0.1), transparent),
        radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.1), transparent) 0 100%;
    background-repeat: no-repeat;
    background-size: 100% 40px, 100% 40px, 100% 12px, 100% 12px;
    background-attachment: local, local, scroll, scroll;
}
.mgate-scroll::-webkit-scrollbar { width: 5px; }
.mgate-scroll::-webkit-scrollbar-thumb { background: #d8d8d8; border-radius: 3px; }
.mgate-scroll::-webkit-scrollbar-track { background: transparent; }
.mgate-header {
    text-align: center;
    margin: 0 0 18px;
}
.mgate-eyebrow {
    font-size: 13px;
    line-height: 1.3;
    color: #39c0c7;
    font-weight: bold;
    margin: 0 0 6px;
    letter-spacing: 0;
}
.mgate-header h2 {
    font-size: 25px;
    line-height: 1.33;
    color: #222;
    margin: 0 0 10px;
    word-break: keep-all;
    letter-spacing: 0;
}
.mgate-sub {
    font-size: 13.5px;
    line-height: 1.55;
    color: #666;
    margin: 0;
    word-break: keep-all;
}
.mgate-agent {
    padding: 12px 14px;
    margin-bottom: 14px;
    background: #f5fbfc;
    border: 1px solid #d8eeee;
    border-radius: 4px;
    text-align: left;
    word-break: keep-all;
}
.mgate-agent strong {
    display: block;
    font-size: 15px;
    line-height: 1.45;
    color: #168f96;
    margin-bottom: 6px;
}
.mgate-agent span {
    display: block;
    font-size: 13px;
    line-height: 1.6;
    color: #5a7274;
}
.mgate-section { margin-bottom: 20px; }
.mgate-section h3 {
    font-size: 16px;
    line-height: 1.2;
    color: #323c48;
    margin: 0 0 10px;
    padding-left: 10px;
    border-left: 4px solid #39c0c7;
    letter-spacing: 0;
}
.mgate-upcoming-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mgate-upcoming-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 13px;
    background: #eef9fa;
    border-left: 3px solid #39c0c7;
    border-radius: 0 4px 4px 0;
    word-break: keep-all;
}
.mgate-upcoming-list li + li { margin-top: 10px; }
.mgate-card-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #cdecee;
    border-radius: 50%;
    color: #39c0c7;
}
.mgate-upcoming-list strong {
    display: block;
    font-size: 15px;
    line-height: 1.35;
    color: #157e84;
    margin-bottom: 2px;
}
.mgate-upcoming-list span:not(.mgate-card-icon) {
    display: block;
    font-size: 13px;
    line-height: 1.6;
    color: #5a7274;
}
.mgate-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.mgate-feature-list li {
    position: relative;
    padding: 10px 11px 10px 30px;
    background: #fff;
    border: 1px solid #e7eeee;
    border-radius: 4px;
    word-break: keep-all;
}
.mgate-feature-list li::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 14px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #39c0c7;
    box-shadow: 0 0 0 4px #e6f7f8;
}
.mgate-feature-list li strong {
    display: block;
    font-size: 14.5px;
    color: #222;
    line-height: 1.35;
    margin-bottom: 3px;
    letter-spacing: 0;
}
.mgate-feature-list li span {
    display: block;
    font-size: 12.5px;
    line-height: 1.5;
    color: #777;
}
.mgate-mileage-guide {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    background: #fff6f5;
    border: 1px solid #f4d3d0;
    border-radius: 4px;
    text-align: left;
    word-break: keep-all;
}
.mgate-mileage-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #f0cbc7;
    border-radius: 50%;
    color: #dd5a50;
}
.mgate-mileage-copy strong {
    display: block;
    font-size: 15px;
    line-height: 1.35;
    color: #222;
    margin-bottom: 4px;
}
.mgate-mileage-copy p {
    font-size: 13.5px;
    line-height: 1.55;
    color: #666;
    margin: 0;
}
.mgate-mileage-copy em {
    font-style: normal;
    font-weight: bold;
    color: #dd5a50;
}
.mgate-mileage-copy ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 7px 0 0;
    padding: 0;
}
.mgate-mileage-copy li {
    min-height: 24px;
    padding: 4px 8px 3px;
    background: #fff;
    border: 1px solid #f1dad7;
    border-radius: 3px;
    font-size: 12.5px;
    line-height: 1.2;
    color: #8a625e;
}
.mgate-footer {
    flex: 0 0 auto;
    padding: 10px 24px 12px;
    border-top: 1px solid #eee;
    background: #fff;
    text-align: center;
}
.mgate-btn-row { display: flex; gap: 8px; }
/* 사이트 버튼 팔레트: 주=틸, 보조=흰색 테두리. 사이트 확인창처럼 주 버튼이 왼쪽 */
.mgate-btn {
    display: block;
    box-sizing: border-box;
    border-radius: 3px;
    font-size: 15px;
    font-weight: bold;
    line-height: 1;
    padding: 14px 0;
    text-align: center;
    letter-spacing: 0;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.mgate-btn-primary {
    flex: 1.7;
    background: #39c0c7;
    border: 1px solid #2babb2;
    color: #fff !important;
}
.mgate-btn-primary:hover { background: #27dfe8; border-color: #27dfe8; color: #fff; }
.mgate-btn-secondary {
    flex: 1;
    background: #fff;
    border: 1px solid #d8e0e1;
    color: #323c48;
    font-weight: normal;
}
.mgate-btn-secondary:hover { background: #f7fafb; border-color: #cbd6d8; color: #222; }
.mgate-btn:focus-visible { outline: 3px solid rgba(57, 192, 199, 0.5); outline-offset: 2px; }
.mgate-footnote { font-size: 12px; color: #888; margin: 7px 0 0; }

@media (max-width: 480px) {
    .mgate-overlay { padding: 12px; }
    .mgate-modal { max-height: calc(100vh - 24px); }
    .mgate-topbar { padding: 4px 6px 0; }
    .mgate-scroll { padding: 0 16px 12px; }
    .mgate-header { margin: 0 0 14px; }
    .mgate-footer { padding: 10px 16px 12px; }
    .mgate-header h2 { font-size: 21px; }
    .mgate-upcoming-list li { padding: 11px 12px; }
    .mgate-feature-list { grid-template-columns: 1fr; }
    /* 해제 방법: 데스크톱과 동일하게 아이콘 옆에 내용 유지(위-아래로 쌓지 않음) */
    .mgate-mileage-guide { padding: 12px; gap: 10px; }
    .mgate-mileage-copy li { font-size: 12px; }
    .mgate-btn-row { flex-direction: column; }
    .mgate-btn { font-size: 14px; padding: 13px 0; }
}
