/* =========================
   PWA INSTALL BOX
========================= */

.hello-pwa-box,
#hello-pwa-auto{

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;

    position:relative;
    overflow:hidden;

    background:rgba(0,0,0,.55);

    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);

    border:1px solid rgba(255,255,255,.12);

    border-radius:10px;

    padding:12px 15px;

    box-shadow:
    0 8px 24px rgba(0,0,0,.25);

    transition:
    background .3s ease,
    border-color .3s ease,
    transform .3s ease;
}

/* =========================
   SHINE EFFECT
========================= */

.hello-pwa-box::before,
#hello-pwa-auto::before{

    content:"";

    position:absolute;

    top:0;
    left:-120%;

    width:60%;
    height:100%;

    pointer-events:none;

    background:linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.12),
        transparent
    );

    transform:skewX(-20deg);

    transition:left .8s ease;
}

.hello-pwa-box:hover::before,
#hello-pwa-auto:hover::before{

    left:150%;
}

/* =========================
   HOVER
========================= */

.hello-pwa-box:hover,
#hello-pwa-auto:hover{

    background:rgba(0,0,0,.65);

    border-color:rgba(255,122,0,.5);

    transform:translateY(-2px);
}

/* =========================
   LEFT SECTION
========================= */

.hello-pwa-left{

    display:flex;
    align-items:center;
    gap:12px;

    min-width:0;
}

/* =========================
   APP ICON
========================= */

.hello-pwa-left img{

    width:48px;
    height:48px;

    flex-shrink:0;

    border-radius:10px;

    background:#fff;

    padding:2px;

    object-fit:cover;
}

/* =========================
   TEXT
========================= */

.hello-pwa-title{

    color:#fff;

    font-size:15px;
    font-weight:700;

    line-height:1.3;

    text-shadow:
    0 2px 8px rgba(0,0,0,.6);
}

.hello-pwa-sub{

    margin-top:2px;

    color:rgba(255,255,255,.85);

    font-size:12px;

    line-height:1.3;

    text-shadow:
    0 2px 8px rgba(0,0,0,.6);
}

/* =========================
   INSTALL BUTTON
========================= */

.hello-pwa-install{

    position:relative;
    z-index:2;

    border:none;

    background:#ffffff;

    color:#111111;

    padding:10px 20px;

    border-radius:999px;

    font-size:14px;
    font-weight:600;

    cursor:pointer;

    white-space:nowrap;

    transition:all .3s ease;
}

.hello-pwa-install:hover{

    background:#ff7a00;

    color:#ffffff;

    transform:translateY(-1px);
}

/* =========================
   AUTO BANNER
========================= */

#hello-pwa-auto{

    position:fixed;

    top:15px;
    left:15px;
    right:15px;

    z-index:999999;

    transform:translateY(-150px);

    opacity:0;

    pointer-events:none;

    transition:
    transform .35s ease,
    opacity .35s ease,
    background .3s ease,
    border-color .3s ease;
}

#hello-pwa-auto.show{

    transform:translateY(0);

    opacity:1;

    pointer-events:auto;
}

/* =========================
   MOBILE
========================= */

@media(max-width:480px){

    .hello-pwa-box,
    #hello-pwa-auto{

        padding:10px 12px;
        gap:10px;
    }

    .hello-pwa-left img{

        width:42px;
        height:42px;
    }

    .hello-pwa-title{

        font-size:14px;
    }

    .hello-pwa-sub{

        font-size:11px;
    }

    .hello-pwa-install{

        padding:8px 14px;
        font-size:13px;
    }
}

/* =========================
   HIDE AUTO BANNER DESKTOP
========================= */

@media(min-width:768px){

    #hello-pwa-auto{
        display:none;
    }
}