.jpj-pwa-install,
.jpj-pwa-sheet {
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jpj-pwa-install[hidden],
.jpj-pwa-sheet[hidden] {
    display: none !important;
}

.jpj-pwa-install {
    position: fixed;
    right: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px) + var(--jpj-pwa-safe-lift, 0px));
    z-index: 2147481000;
    opacity: 0;
    transform: translateY(12px) scale(.985);
    pointer-events: none;
    transition: opacity .24s ease, transform .24s ease;
}

.jpj-pwa-install.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.jpj-pwa-install__button {
    appearance: none;
    border: 1px solid rgba(13, 23, 38, .11);
    border-radius: 17px;
    background: rgba(255, 255, 255, .97);
    color: #0d1726;
    box-shadow: 0 12px 32px rgba(13, 23, 38, .16), 0 2px 8px rgba(13, 23, 38, .07);
    min-height: 56px;
    max-width: min(310px, calc(100vw - 32px));
    padding: 8px 11px 8px 8px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 9px;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    animation: jpj-pwa-soft-nudge 6.5s ease-in-out infinite;
}

.jpj-pwa-install__button:hover {
    border-color: rgba(239, 35, 60, .32);
    box-shadow: 0 15px 36px rgba(13, 23, 38, .18), 0 3px 10px rgba(239, 35, 60, .09);
}

.jpj-pwa-install__button:focus-visible {
    outline: 3px solid rgba(239, 35, 60, .22);
    outline-offset: 3px;
}

.jpj-pwa-install__button:disabled {
    cursor: wait;
    opacity: .74;
    animation: none;
}

.jpj-pwa-install__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #fff7f7, #fff);
    border: 1px solid rgba(239, 35, 60, .12);
    color: #ef233c;
    overflow: hidden;
}

.jpj-pwa-install__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jpj-pwa-install__icon svg {
    width: 22px;
    height: 22px;
}

.jpj-pwa-install__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.jpj-pwa-install__copy strong {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.jpj-pwa-install__copy small {
    margin-top: 4px;
    font-size: 10.5px;
    color: #5f6d80;
    font-weight: 600;
    white-space: nowrap;
}

.jpj-pwa-install__arrow {
    color: #ef233c;
    font-size: 24px;
    line-height: 1;
    transform: translateY(-1px);
}

.jpj-pwa-sheet {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.jpj-pwa-sheet__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(5, 12, 23, .48);
    backdrop-filter: blur(3px);
}

.jpj-pwa-sheet__panel {
    position: relative;
    width: min(520px, 100%);
    border-radius: 24px 24px 0 0;
    background: #fff;
    color: #0d1726;
    padding: 13px 22px calc(24px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -20px 60px rgba(5, 12, 23, .18);
}

.jpj-pwa-sheet__handle {
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: #d9dee6;
    margin: 0 auto 15px;
}

.jpj-pwa-sheet__close {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: #f3f5f8;
    color: #303a4d;
    font-size: 22px;
    cursor: pointer;
}

.jpj-pwa-sheet__badge {
    display: inline-grid;
    place-items: center;
    min-width: 45px;
    height: 28px;
    border-radius: 999px;
    padding: 0 12px;
    background: #fff0f2;
    color: #d8182f;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
}

.jpj-pwa-sheet h2 {
    margin: 12px 42px 7px 0;
    font-size: clamp(22px, 6vw, 28px);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.jpj-pwa-sheet p {
    margin: 0;
    color: #5f6d80;
    font-size: 14px;
    line-height: 1.55;
}

.jpj-pwa-sheet ol {
    list-style: none;
    margin: 18px 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.jpj-pwa-sheet li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
}

.jpj-pwa-sheet li span {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #fff0f2;
    color: #d8182f;
    font-size: 12px;
    font-weight: 900;
}

.jpj-pwa-sheet__done {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    background: #0d1726;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

@keyframes jpj-pwa-soft-nudge {
    0%, 76%, 100% {
        transform: translateY(0);
    }
    82% {
        transform: translateY(-3px);
    }
    87% {
        transform: translateY(0);
    }
    91% {
        transform: translateY(-1.5px);
    }
    95% {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .jpj-pwa-install {
        right: 12px;
        bottom: calc(18px + env(safe-area-inset-bottom, 0px) + var(--jpj-pwa-safe-lift, 0px));
    }

    .jpj-pwa-install__button {
        min-height: 53px;
        border-radius: 16px;
        grid-template-columns: 37px minmax(0, 1fr) 16px;
        gap: 8px;
        padding: 7px 10px 7px 7px;
    }

    .jpj-pwa-install__icon {
        width: 37px;
        height: 37px;
        border-radius: 11px;
    }

    .jpj-pwa-install__copy strong {
        font-size: 12.75px;
    }

    .jpj-pwa-install__copy small {
        font-size: 9.75px;
    }
}

@media (display-mode: standalone), (display-mode: fullscreen) {
    .jpj-pwa-install,
    .jpj-pwa-sheet {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jpj-pwa-install,
    .jpj-pwa-install__button {
        transition: none !important;
        animation: none !important;
    }
}


/* JPJ smart non-obstructive install control */
.jpj-pwa-install{
    transition:opacity .24s ease,transform .24s ease,right .22s ease,bottom .22s ease;
}

.jpj-pwa-install__button{
    transition:max-width .28s ease,width .28s ease,min-height .28s ease,padding .28s ease,gap .28s ease,border-radius .28s ease,box-shadow .22s ease,border-color .22s ease,background .22s ease,transform .18s ease;
}

.jpj-pwa-install__copy,
.jpj-pwa-install__arrow{
    transition:opacity .18s ease,transform .22s ease,max-width .28s ease;
}

.jpj-pwa-install.is-compact .jpj-pwa-install__button{
    width:54px;
    max-width:54px;
    min-height:54px;
    padding:6px;
    grid-template-columns:40px;
    gap:0;
    border-radius:17px;
    animation:jpj-pwa-compact-breathe 7s ease-in-out infinite;
    box-shadow:0 10px 28px rgba(13,23,38,.14),0 2px 8px rgba(13,23,38,.06);
}

.jpj-pwa-install.is-compact .jpj-pwa-install__copy,
.jpj-pwa-install.is-compact .jpj-pwa-install__arrow{
    position:absolute;
    width:1px;
    max-width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    opacity:0;
    transform:translateX(7px);
}

.jpj-pwa-install.is-compact .jpj-pwa-install__icon{
    width:40px;
    height:40px;
    border-radius:12px;
}

.jpj-pwa-install.is-compact .jpj-pwa-install__button:hover{
    transform:translateY(-2px);
    border-color:rgba(239,35,60,.30);
}

@keyframes jpj-pwa-compact-breathe{
    0%,78%,100%{transform:translateY(0);}
    84%{transform:translateY(-2px);}
    90%{transform:translateY(0);}
}

@media (max-width:480px){
    .jpj-pwa-install.is-compact{
        right:12px;
        bottom:calc(86px + env(safe-area-inset-bottom,0px) + var(--jpj-pwa-safe-lift,0px));
    }
    .jpj-pwa-install.is-compact .jpj-pwa-install__button{
        width:52px;
        max-width:52px;
        min-height:52px;
        padding:5px;
    }
}


/* JPJ PWA final non-obstructive interaction polish */
.jpj-pwa-install.is-protected-hidden{
    opacity:0 !important;
    pointer-events:none !important;
    transform:translateY(12px) scale(.96) !important;
}
