.customer-arrival-overlay{
    position:fixed;
    inset:0;
    z-index:99999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:
        radial-gradient(circle at top left, rgba(212,175,55,.25), transparent 32%),
        rgba(0,0,0,.72);
    backdrop-filter:blur(14px);
}

.customer-arrival-overlay.show{
    display:flex;
}

.customer-arrival-card{
    width:min(470px,94vw);
    border-radius:34px;
    padding:30px;
    color:white;
    text-align:center;
    background:
        radial-gradient(circle at top left, rgba(212,175,55,.18), transparent 38%),
        linear-gradient(145deg,rgba(255,255,255,.10),rgba(255,255,255,.04));
    border:1px solid rgba(212,175,55,.28);
    box-shadow:
        0 35px 100px rgba(0,0,0,.65),
        inset 0 0 28px rgba(255,255,255,.03);
    position:relative;
    overflow:hidden;
}

.customer-arrival-card::before{
    content:"";
    position:absolute;
    top:0;
    left:40px;
    right:40px;
    height:1px;
    background:linear-gradient(90deg,transparent,#d4af37,transparent);
}

.arrival-icon{
    width:86px;
    height:86px;
    margin:0 auto 18px;
    border-radius:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#050505;
    font-size:38px;
    font-weight:900;
    background:linear-gradient(135deg,#d4af37,#fff1a8);
    box-shadow:
        0 24px 55px rgba(212,175,55,.28),
        0 0 0 10px rgba(212,175,55,.08);
    animation:arrivalPulse 1.3s infinite;
}

.arrival-courier-photo-wrap{
    width:116px;
    height:116px;
    margin:0 auto 18px;
    border-radius:34px;
    padding:6px;
    background:
        linear-gradient(135deg,#d4af37,#fff1a8),
        rgba(255,255,255,.08);
    box-shadow:
        0 24px 60px rgba(212,175,55,.28),
        0 0 0 10px rgba(212,175,55,.07);
    position:relative;
    animation:arrivalPulse 1.3s infinite;
}

.arrival-courier-photo-wrap img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:28px;
    background:#111;
    display:block;
}

.arrival-courier-photo-wrap span{
    position:absolute;
    left:50%;
    bottom:-10px;
    transform:translateX(-50%);
    padding:6px 12px;
    border-radius:999px;
    color:#050505;
    font-size:11px;
    font-weight:900;
    background:linear-gradient(135deg,#34d399,#bbf7d0);
    box-shadow:0 10px 24px rgba(52,211,153,.24);
    white-space:nowrap;
}

@keyframes arrivalPulse{
    0%{ transform:scale(1); box-shadow:0 24px 55px rgba(212,175,55,.28), 0 0 0 8px rgba(212,175,55,.08); }
    50%{ transform:scale(1.05); box-shadow:0 28px 65px rgba(212,175,55,.38), 0 0 0 16px rgba(212,175,55,.03); }
    100%{ transform:scale(1); box-shadow:0 24px 55px rgba(212,175,55,.28), 0 0 0 8px rgba(212,175,55,.08); }
}

.customer-arrival-card h2{
    color:#d4af37;
    font-size:28px;
    letter-spacing:-.8px;
    margin-bottom:10px;
}

.customer-arrival-card p{
    color:#d8d8d8;
    line-height:1.75;
    font-size:14px;
    margin-bottom:18px;
}

.arrival-details{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin:20px 0;
}

.arrival-details div{
    padding:14px;
    border-radius:18px;
    background:rgba(255,255,255,.055);
    border:1px solid rgba(255,255,255,.08);
    text-align:left;
}

.arrival-details span{
    display:block;
    color:#858585;
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.5px;
    margin-bottom:6px;
}

.arrival-details strong{
    display:block;
    color:white;
    font-size:13px;
    line-height:1.4;
}

.arrival-actions{
    display:flex;
    gap:12px;
    margin-top:18px;
}

.arrival-actions button,
.arrival-actions a{
    flex:1;
    min-height:50px;
    border:none;
    border-radius:17px;
    cursor:pointer;
    text-decoration:none;
    font-family:inherit;
    font-weight:900;
    display:flex;
    align-items:center;
    justify-content:center;
}

.arrival-primary-btn{
    color:#050505;
    background:linear-gradient(135deg,#d4af37,#fff1a8);
    box-shadow:0 14px 30px rgba(212,175,55,.22);
}

.arrival-secondary-btn{
    color:white;
    background:rgba(255,255,255,.07);
    border:1px solid rgba(255,255,255,.12) !important;
}

.arrival-note{
    display:block;
    margin-top:15px;
    color:#9ca3af;
    font-size:12px;
    line-height:1.6;
}

@media(max-width:560px){
    .customer-arrival-card{
        padding:24px;
        border-radius:28px;
    }

    .arrival-details{
        grid-template-columns:1fr;
    }

    .arrival-actions{
        flex-direction:column;
    }
}

/* MOBILE ARRIVAL POPUP */
@media(max-width:600px){
    .customer-arrival-overlay{
        align-items:flex-end;
        justify-content:center;
        padding:14px;
        padding-bottom:calc(14px + env(safe-area-inset-bottom));
    }

    .customer-arrival-card{
        width:100%;
        max-height:92vh;
        overflow-y:auto;
        border-radius:30px 30px 24px 24px;
        padding:22px 18px 20px;
    }

    .arrival-courier-photo-wrap{
        width:96px;
        height:96px;
        border-radius:30px;
        margin-bottom:20px;
    }

    .arrival-courier-photo-wrap img{
        border-radius:24px;
    }

    .arrival-courier-photo-wrap span{
        bottom:-9px;
        font-size:10px;
        padding:5px 10px;
    }

    .customer-arrival-card h2{
        font-size:23px;
        line-height:1.15;
        margin-bottom:8px;
    }

    .customer-arrival-card p{
        font-size:13px;
        line-height:1.65;
        margin-bottom:14px;
    }

    .arrival-details{
        grid-template-columns:1fr;
        gap:10px;
        margin:16px 0;
    }

    .arrival-details div{
        padding:13px 14px;
        border-radius:16px;
    }

    .arrival-actions{
        flex-direction:column;
        gap:10px;
        margin-top:14px;
    }

    .arrival-actions button,
    .arrival-actions a{
        width:100%;
        min-height:48px;
        border-radius:16px;
    }

    .arrival-note{
        margin-top:12px;
        font-size:12px;
    }
}

@media(max-width:380px){
    .customer-arrival-card{
        padding:20px 15px 18px;
    }

    .arrival-courier-photo-wrap{
        width:84px;
        height:84px;
    }

    .customer-arrival-card h2{
        font-size:21px;
    }

    .customer-arrival-card p{
        font-size:12.5px;
    }
}

@media(max-height:640px){
    .customer-arrival-overlay{
        align-items:center;
    }

    .customer-arrival-card{
        max-height:88vh;
    }

    .arrival-courier-photo-wrap{
        width:82px;
        height:82px;
        margin-bottom:14px;
    }

    .customer-arrival-card h2{
        font-size:21px;
    }

    .arrival-details{
        margin:12px 0;
    }
}

.delivery-sound-unlock-btn{
    position:fixed;
    right:16px;
    bottom:86px;
    z-index:99990;
    min-height:46px;
    padding:0 16px;
    border:none;
    border-radius:999px;
    cursor:pointer;
    font-family:inherit;
    font-weight:900;
    color:#050505;
    background:linear-gradient(135deg,#d4af37,#fff1a8);
    box-shadow:0 16px 38px rgba(0,0,0,.22), 0 0 0 1px rgba(212,175,55,.25);
}

.delivery-sound-unlock-btn.hidden{
    display:none;
}

@media(max-width:600px){
    .delivery-sound-unlock-btn{
        left:14px;
        right:14px;
        bottom:82px;
        width:auto;
        border-radius:18px;
    }
}