@import url('/css/theme.tokens.css'); /* UI 리뉴얼 토큰 — dur/super 등 독립 페이지에서도 변수 보장 */
/* popup layer */
.popuplayer {width: 100%;height: 100%;position: fixed;top: 0;display: none;text-align: center;z-index: 22;}
.popuplayer .dim{position: absolute; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 9999999999;}
.popuplayer .popup{
    width: auto;
    display: inline-block;
    max-width: 100%;
    max-height: 100%;
    overflow: auto;
    position: absolute;
    z-index: 9999999999;
    box-sizing: border-box;
    margin: 0 auto;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    background-color: var(--c-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-pop);
    color: var(--c-text);
}
.popuplayer .popup .title {
    color: var(--c-text);
    position: absolute;
    height: 40px;
    width: 100%;
    top: 0;
    display: block;
    z-index: 9999999999;
    background-color: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    line-height: 40px;
    font-weight: 600;
    font-size: 16px;
    padding: 0 40px;
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
}
.popuplayer .popup .close {
    position: absolute;
    height: 40px;
    top: 0;
    right: 0;
    z-index: 9999999999;
    display: none;
    width: 40px;
    color: white;
    text-shadow: none;
    opacity: 1;
    font-weight: initial;
}
.popuplayer .popup .close::before{
    content: " " !important;
    background-image: url(/img/material.close.5f5f5f.svg);
    background-position: center;
    background-size: 70%;
    height: 100%;
    width: 100%;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: bottom;
}
.popuplayer .popup .btn {
    position: absolute;
    height: 64px;
    width: 100%;
    bottom: 0;
    display: flex;
    gap: 8px;
    z-index: 9999999999;
    padding: 8px 16px 16px;
    box-sizing: border-box;
    border-top: 0;
    background: transparent;
}
.popuplayer .popup .btn .btn_wrap {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    overflow: visible;
}
.popuplayer .popup .btn .btn_wrap button{
    border: 0;
    height: 100%;
    width: 100%;
    border-radius: var(--radius-md);
    background-color: var(--c-surface-3);
    color: var(--c-text-sub);
    font-size: 15px;
    font-weight: 700;
    transition: background-color 0.15s ease, filter 0.15s ease, transform 0.05s ease;
}
/* 마지막(보통 확인) 버튼 = Primary 필 버튼. 단일 버튼도 강조 */
.popuplayer .popup .btn .btn_wrap:last-child button {
    background-color: var(--c-primary);
    color: #fff;
}
.popuplayer .popup .btn .btn_wrap button:hover {
    background-color: var(--c-border);
}
.popuplayer .popup .btn .btn_wrap:last-child button:hover {
    background-color: var(--c-primary);
    filter: brightness(1.06);
}
.popuplayer .popup .btn .btn_wrap button:active{
    transform: translateY(1px);
}
.popuplayer .popup .btn .btn_wrap button:focus {
    outline: 0;
}

.popuplayer .popup .msg_wrap {
    display: table;
    height: 100%;
    width: 100%;
    position: relative;
    padding-bottom: 64px; /* 버튼 영역 높이와 맞춤 */
    margin-top: 40px;     /* 타이틀 높이와 맞춤 */
}

.popuplayer .popup .disable_today {
    text-align: left;
    padding: 8px 5px;
    color: var(--c-text-sub);
    background: var(--c-surface-2);
    border-top: 1px solid var(--c-border);
}
.popuplayer .popup .disable_today input + label span:before {
    background-image: url(/img/material.unchecked.circle.818183.svg);
}
.popuplayer .popup .disable_today input:checked + label span:before {
    background-image: url(/img/material.check.circle.818183.svg);
}
.popuplayer .popup .btn:empty {
    height: 0px;
    padding: 0;
}
.popuplayer .popup .btn:empty + .msg_wrap {
    padding-bottom: 0px;
    background: white;
    color: #2e2e2e;
}
.popuplayer .popup .title:empty {
    height: 0px;
}
.popuplayer .popup .title:empty ~ .msg_wrap {
    margin-top: 0px;
}
.popuplayer .popup .msg {
    word-break: break-word;
    width: 100%;
    position: relative;
    overflow: hidden;
    white-space: initial;
    display: table-cell;
    vertical-align: middle;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
    word-break: keep-all;
    color: var(--c-text);
    padding: 24px 22px 18px;
}

/* ── 확인 팝업 본문 (.fp-confirm) ─────────────────────────────────────────
   금액을 크게, 유효기간·사유는 보조 정보, 카톡 전송은 누르기 쉬운 한 줄로.
   popup.create 의 msg 안에서 쓴다 (예: 포인트 적립/차감 확인). */
.popuplayer .popup .msg .fp-confirm {
    min-width: 244px;
    text-align: center;
    padding: 4px 2px 0;
}
.popuplayer .popup .msg .fp-confirm .fp-amount {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--c-primary);
}
.popuplayer .popup .msg .fp-confirm[data-tone="deduct"] .fp-amount {
    color: var(--c-danger);
}
.popuplayer .popup .msg .fp-confirm .fp-amount em {
    font-size: 17px;
    font-weight: 700;
    font-style: normal;
    margin-left: 2px;
}
.popuplayer .popup .msg .fp-confirm .fp-lead {
    margin-top: 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
}
.popuplayer .popup .msg .fp-confirm .fp-meta {
    margin-top: 8px;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--c-text-muted);
}
.popuplayer .popup .msg .fp-confirm .fp-meta b {
    font-weight: 700;
    color: var(--c-text-sub);
}
/* 카톡 전송 — 라벨 전체가 클릭 영역 */
.popuplayer .popup .msg .fp-confirm .fp-check {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 0;
    padding: 10px 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--c-text-sub);
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.popuplayer .popup .msg .fp-confirm .fp-check:hover {
    border-color: var(--c-border-strong);
}
.popuplayer .popup .msg .fp-confirm .fp-check input {
    /* 앱 전역에서 checkbox 를 display:none 으로 숨기고 라벨 ::before 로 그리는 곳이 있어
       여기서는 명시적으로 되살린다 */
    display: inline-block !important;
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    background: var(--c-surface);
    border: 1.5px solid var(--c-border-strong);
    border-radius: 5px;
    position: relative;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.popuplayer .popup .msg .fp-confirm .fp-check input:checked {
    background: var(--c-primary);
    border-color: var(--c-primary);
}
.popuplayer .popup .msg .fp-confirm .fp-check input:checked::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 46%;
    width: 4px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}
.popuplayer .popup .msg .fp-confirm .fp-check input:checked ~ span {
    color: var(--c-text);
}

.popuptoastlayer {
    color: white;
    position: fixed;
    width: 100%;
    height: 100%;
    top:0;
    left:0;
    z-index: 9999999999;
    display: block;
    overflow: hidden;
    pointer-events: none;
}
.popuptoastlayer:empty {
    display:none;
}
.popuptoastlayer .toast{
    width: auto;
    min-width: 20%;
    max-width: 80%;
    min-height: 36px;
    max-height: 50%;
    position: absolute;
    background: rgba(60,60,60,0.7);
    z-index: 9999999999;
    margin: 0 auto;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    display: table;
    border-radius: 10px;
}
.popuptoastlayer .toast .toast_msg {
    display: table-cell;
    vertical-align: middle;
    word-break: break-word;
    white-space: initial;
    font-size: 16px;
    padding: 10px;
}
