/* 구미ON PWA 설치 버튼 및 하루 1회 안내 */
.pwa-install-fab {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(154, 79, 0, 0.20);
    border-radius: 999px;
    background: #f59e0b;
    color: #fff;
    box-shadow: 0 12px 30px rgba(154, 79, 0, 0.28);
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -0.03em;
    cursor: pointer;
}

.pwa-install-fab:hover { transform: translateY(-1px); }
.pwa-install-fab:focus-visible,
.pwa-install-dialog button:focus-visible { outline: 3px solid rgba(245, 158, 11, 0.35); outline-offset: 2px; }
.pwa-install-fab[hidden] { display: none !important; }
.pwa-install-fab-icon { font-size: 18px; line-height: 1; }

.pwa-install-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(3px);
}
.pwa-install-overlay[hidden] { display: none !important; }

.pwa-install-dialog {
    position: relative;
    width: min(100%, 390px);
    padding: 28px 22px 22px;
    border: 1px solid #ffe2a2;
    border-radius: 24px;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    text-align: center;
}
.pwa-install-dialog-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(154, 79, 0, 0.16);
}
.pwa-install-dialog h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.045em;
}
.pwa-install-dialog p {
    margin: 10px 0 0;
    color: #596579;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.65;
    letter-spacing: -0.025em;
}
.pwa-install-guide {
    margin-top: 15px;
    padding: 13px 14px;
    border-radius: 14px;
    background: #fff8e8;
    color: #7c4a03;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.6;
    text-align: left;
}
.pwa-install-actions {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 9px;
    margin-top: 18px;
}
.pwa-install-actions button {
    min-height: 46px;
    border: 0;
    border-radius: 13px;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}
.pwa-install-later { background: #eef1f5; color: #526071; }
.pwa-install-confirm { background: #f59e0b; color: #fff; }
.pwa-install-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #7a8493;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}
body.pwa-install-modal-open { overflow: hidden; }

@media (max-width: 640px) {
    .pwa-install-fab {
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        min-height: 44px;
        padding: 0 14px;
    }
    .pwa-install-dialog { padding: 26px 18px 18px; border-radius: 21px; }
}

@media (display-mode: standalone) {
    .pwa-install-fab { display: none !important; }
}
