
/* =========================================================
   TALAS EXPRESS PWA PROMPT
   Header'dan bağımsız premium mobil kart
   ========================================================= */

.te-pwa-prompt{
    position:fixed;
    left:16px;
    right:16px;
    bottom:max(16px,env(safe-area-inset-bottom));
    z-index:99990;

    opacity:0;
    transform:translateY(24px) scale(.98);

    pointer-events:none;

    transition:
        opacity .24s ease,
        transform .24s ease;
}

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

.te-pwa-prompt.te-pwa-closing{
    opacity:0;
    transform:translateY(20px) scale(.98);
}

.te-pwa-prompt-inner{
    position:relative;

    display:grid;
    grid-template-columns:58px minmax(0,1fr) auto;
    align-items:center;
    gap:14px;

    width:min(100%,720px);
    margin:0 auto;

    padding:15px 16px;

    background:
        linear-gradient(135deg,
            rgba(255,255,255,.98),
            rgba(247,251,252,.98));

    border:1px solid rgba(15,86,104,.12);
    border-radius:19px;

    box-shadow:
        0 18px 55px rgba(14,47,61,.18),
        0 3px 10px rgba(14,47,61,.08);

    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
}

.te-pwa-prompt-install .te-pwa-prompt-inner:before,
.te-pwa-prompt-notify .te-pwa-prompt-inner:before{
    content:"";
    position:absolute;
    inset:0 auto 0 0;
    width:4px;
    border-radius:19px 0 0 19px;
    background:#00aabd;
}

.te-pwa-prompt-notify .te-pwa-prompt-inner:before{
    background:#d71920;
}

.te-pwa-app-icon{
    width:58px;
    height:58px;

    display:grid;
    place-items:center;

    overflow:hidden;

    border-radius:14px;
    background:#fff;

    box-shadow:
        0 5px 16px rgba(8,62,75,.12);
}

.te-pwa-app-icon img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.te-pwa-copy{
    min-width:0;
    padding-right:4px;
}

.te-pwa-copy span{
    display:block;

    margin-bottom:3px;

    color:#008fa2;

    font-size:9px;
    line-height:1.2;
    font-weight:900;
    letter-spacing:.11em;
}

.te-pwa-prompt-notify .te-pwa-copy span{
    color:#c9161d;
}

.te-pwa-copy strong{
    display:block;

    color:#102f3a;

    font-size:15px;
    line-height:1.22;
    font-weight:900;
}

.te-pwa-copy p{
    margin:4px 0 0;

    color:#61747c;

    font-size:11px;
    line-height:1.45;
}

.te-pwa-action{
    min-height:42px;
    padding:10px 14px;

    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;

    border:0;
    border-radius:11px;

    background:#073e4c;
    color:#fff;

    font-size:11px;
    line-height:1.15;
    font-weight:850;

    white-space:nowrap;

    box-shadow:0 6px 16px rgba(7,62,76,.18);

    cursor:pointer;
}

.te-pwa-prompt-notify .te-pwa-action{
    background:#c9161d;
    box-shadow:0 6px 16px rgba(201,22,29,.18);
}

.te-pwa-action:disabled{
    opacity:.65;
    cursor:default;
}

.te-pwa-close{
    position:absolute;
    right:-7px;
    top:-9px;

    width:28px;
    height:28px;

    display:grid;
    place-items:center;

    padding:0;

    border:1px solid #dfe8eb;
    border-radius:50%;

    background:#fff;
    color:#52656d;

    font-size:20px;
    line-height:1;

    box-shadow:0 4px 12px rgba(0,0,0,.1);

    cursor:pointer;
}

/* Eski header PWA elemanları görünmesin */
.pwa-install-button,
.pwa-notify-button{
    display:none !important;
}

/* Mobil header'ın PWA yüzünden büyümesini engelle */
@media(max-width:767px){

    .site-header .masthead{
        min-height:0 !important;
    }

    .site-header .header-actions{
        flex-wrap:nowrap !important;
        min-width:0 !important;
    }

    .te-pwa-prompt{
        left:10px;
        right:10px;
        bottom:max(10px,env(safe-area-inset-bottom));
    }

    .te-pwa-prompt-inner{
        grid-template-columns:50px minmax(0,1fr);
        gap:10px 12px;

        padding:13px 14px;

        border-radius:17px;
    }

    .te-pwa-app-icon{
        width:50px;
        height:50px;
        border-radius:12px;
    }

    .te-pwa-copy strong{
        font-size:14px;
    }

    .te-pwa-copy p{
        font-size:10.5px;
    }

    .te-pwa-action{
        grid-column:1 / -1;

        width:100%;
        min-height:42px;

        margin-top:1px;
    }
}

@media(max-width:360px){
    .te-pwa-copy p{
        display:none;
    }

    .te-pwa-prompt-inner{
        grid-template-columns:46px minmax(0,1fr);
    }

    .te-pwa-app-icon{
        width:46px;
        height:46px;
    }
}

@media(prefers-reduced-motion:reduce){
    .te-pwa-prompt{
        transition:none;
    }
}
