
#agp-progress-bar{
    position:fixed;
    left:20px;
    right:20px;
    bottom:20px;
    z-index:9998;
    background:#111;
    color:#fff;
    border-radius:14px;
    padding:14px 16px;
    box-shadow:0 16px 40px rgba(0,0,0,.18);
    max-width:640px;
    margin:0 auto;
    display:none;
}
#agp-progress-bar .agp-progress-top{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    margin-bottom:10px;
    font-size:14px;
}
#agp-progress-bar .agp-progress-meter{
    height:10px;
    border-radius:999px;
    background:rgba(255,255,255,.18);
    overflow:hidden;
}
#agp-progress-bar .agp-progress-meter-fill{
    height:100%;
    width:0;
    background:#fff;
    border-radius:999px;
    transition:width .25s ease;
}

#agp-popup{
    position:fixed;
    inset:0;
    z-index:99999;
    display:none;
}
#agp-popup .agp-popup-backdrop{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.55);
}
#agp-popup .agp-popup-dialog{
    position:relative;
    z-index:2;
    background:#fff;
    width:min(920px, calc(100vw - 32px));
    margin:6vh auto;
    border-radius:18px;
    box-shadow:0 24px 60px rgba(0,0,0,.22);
    overflow:hidden;
}
#agp-popup .agp-popup-header{
    padding:22px 22px 8px;
    position:relative;
}
#agp-popup .agp-popup-header h3{
    margin:0 0 8px;
    font-size:28px;
    line-height:1.2;
}
#agp-popup .agp-popup-header p{
    margin:0;
    color:#666;
    font-size:15px;
}
#agp-popup .agp-popup-close{
    position:absolute;
    top:12px;
    right:12px;
    border:0;
    background:#f3f3f3;
    border-radius:999px;
    width:34px;
    height:34px;
    cursor:pointer;
    font-size:20px;
}
#agp-popup .agp-popup-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:16px;
    padding:20px 22px 24px;
}
.agp-popup-card{
    border:2px solid #ececec;
    border-radius:16px;
    overflow:hidden;
    background:#fff;
    cursor:pointer;
    text-align:left;
    padding:0;
    transition:all .2s ease;
}
.agp-popup-card:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 24px rgba(0,0,0,.08);
    border-color:#111;
}
.agp-popup-card.is-loading{opacity:.6;}
.agp-popup-card-image{
    display:block;
    aspect-ratio:1/1;
    background:#f5f5f5;
}
.agp-popup-card-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.agp-popup-card-content{
    display:block;
    padding:14px;
}
.agp-popup-card-content strong{
    display:block;
    color:#111;
    font-size:16px;
    line-height:1.4;
    margin-bottom:8px;
}
.agp-popup-card-content small{
    display:block;
    color:#666;
    font-size:13px;
    line-height:1.5;
}
@media (max-width: 767px){
    #agp-progress-bar{
        left:12px;
        right:12px;
        bottom:12px;
        padding:12px 14px;
    }
    #agp-popup .agp-popup-header h3{font-size:22px;}
}

#agp-popup .agp-popup-helper{
    margin-top:10px;
    color:#555;
    font-size:13px;
}
#agp-popup .agp-popup-footer{
    padding:0 22px 22px;
    display:flex;
    justify-content:flex-end;
}
#agp-popup .agp-popup-submit{
    min-height:42px;
    padding:0 18px;
    border:0;
    border-radius:10px;
    background:#111;
    color:#fff;
    cursor:pointer;
    font-size:14px;
}
#agp-popup .agp-popup-submit.is-loading{
    opacity:.6;
}
.agp-popup-card.is-selected{
    border-color:#111;
    box-shadow:0 10px 24px rgba(0,0,0,.08);
}
