/* =========================================================================
 * 꿈파네 PWA 설치 안내 UI
 * 클래스명은 모두 pwaib- 로 시작하므로 기존 스킨 CSS 와 충돌하지 않습니다.
 * ========================================================================= */

.pwaib-banner {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 8600;
    display: none;
    box-sizing: border-box;
    padding: 14px 14px 14px 12px;
    background: #fff;
    border: 1px solid #e6e6ea;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .16);
    font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', sans-serif;
    color: #222;
    transform: translateY(140%);
    transition: transform .28s cubic-bezier(.22, .8, .3, 1);
}

.pwaib-banner.pwaib-show {
    display: block;
    transform: translateY(0);
}

.pwaib-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwaib-ico {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 11px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.pwaib-txt {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.35;
}

.pwaib-tit {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.3px;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwaib-sub {
    font-size: 12px;
    color: #767680;
    letter-spacing: -.3px;
    margin: 0;
}

.pwaib-btns {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pwaib-btn {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -.3px;
    border-radius: 9px;
    padding: 10px 15px;
    white-space: nowrap;
    line-height: 1;
}

.pwaib-btn-go {
    color: #fff;
    background: linear-gradient(135deg, #635bff 0%, #a75cff 100%);
    box-shadow: 0 2px 8px rgba(99, 91, 255, .35);
}

.pwaib-btn-go:active {
    opacity: .85;
}

.pwaib-btn-no {
    color: #8a8a94;
    background: transparent;
    padding: 10px 6px;
    font-weight: 500;
}

/* 우측 상단 닫기 */
.pwaib-close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    border: 0;
    background: transparent;
    color: #b6b6be;
    font-size: 17px;
    cursor: pointer;
    padding: 0;
}

/* PC 는 우측 하단 카드 형태 */
@media (min-width: 768px) {
    .pwaib-banner {
        left: auto;
        right: 20px;
        bottom: 20px;
        width: 380px;
    }
}

/* ── iOS 설치 안내 레이어 ───────────────────────────────────── */
.pwaib-guide {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10200;
    display: none;
    background: rgba(0, 0, 0, .55);
    font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', sans-serif;
}

.pwaib-guide.pwaib-show {
    display: block;
}

.pwaib-guide-box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 88%;
    max-width: 340px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px 16px;
    text-align: left;
    color: #222;
}

.pwaib-guide-box h3 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.4px;
    text-align: center;
}

.pwaib-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13.5px;
    line-height: 1.5;
    letter-spacing: -.3px;
    color: #444;
}

.pwaib-step b {
    color: #111;
}

.pwaib-num {
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: linear-gradient(135deg, #635bff 0%, #a75cff 100%);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 21px;
    text-align: center;
    margin-top: 1px;
}

.pwaib-svg {
    vertical-align: -4px;
    margin: 0 1px;
}

.pwaib-guide-ok {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px 0;
    border: 0;
    border-radius: 10px;
    background: #f2f2f5;
    color: #444;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* 앱(standalone)으로 실행 중일 때 감추고 싶은 요소에 사용하세요 */
html.pwa-standalone .pwa-hide-in-app {
    display: none !important;
}

/* ── 커스텀 설치 버튼 (pwa.button.php 기본 모양) ────────────── */
.pwa-btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #635bff 0%, #a75cff 100%);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -.3px;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(99, 91, 255, .3);
}

.pwa-btn:hover { opacity: .9; }
.pwa-btn:active { opacity: .8; }

/* ── 모바일 사이드메뉴 PWA 버튼 ─────────────────────────────── */
/* #slideMenu 가 이미 좌우 padding 을 갖고 있으므로 여기서는 주지 않는다.
   그래야 로그인/회원가입 버튼과 가로 폭이 정확히 맞는다. */
.pwa_slide_btn {
    margin: 12px 0 0;
    text-align: center;
}

.pwa_slide_a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 10px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #635bff 0%, #a75cff 100%);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.4px;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(99, 91, 255, .28);
}

.pwa_slide_a svg {
    vertical-align: -3px;
    margin-right: 5px;
}

.pwa_slide_a:active { opacity: .85; }

/* 신청 버튼은 몰주인에게만 보이므로 색을 구분한다 */
.pwa_slide_req {
    background: linear-gradient(135deg, #2f3a4f 0%, #4a5a78 100%);
    box-shadow: 0 2px 8px rgba(47, 58, 79, .25);
}

.pwa_slide_memo {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #9a9aa2;
    letter-spacing: -.3px;
}

/* ── PC 상단 유틸메뉴 PWA 버튼 ──────────────────────────────── */
/* #tnb 는 height:29px / padding-top:7px 이므로 그 안에 들어가도록 낮게 만든다.
   li:before 구분선이 자동으로 앞에 붙으므로 왼쪽 여백은 최소로 둔다. */
.pwa_top_a {
    display: inline-block;
    margin: -3px 0 0 2px;
    padding: 3px 11px;
    border-radius: 20px;
    background: linear-gradient(135deg, #635bff 0%, #a75cff 100%);
    color: #fff !important;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: -.3px;
    line-height: 15px;
    text-decoration: none !important;
    white-space: nowrap;
    vertical-align: middle;
}

.pwa_top_a svg {
    vertical-align: -2px;
    margin-right: 3px;
}

.pwa_top_a:hover { opacity: .88; }

/* 신청 버튼은 몰주인에게만 보이므로 색을 구분한다 */
.pwa_top_req {
    background: linear-gradient(135deg, #2f3a4f 0%, #4a5a78 100%);
}
