
.tlep-popup[hidden]{
    display:none !important;
}

.tlep-popup{
    position:fixed !important;
    inset:0 !important;
    z-index:2147483500 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:18px !important;
    box-sizing:border-box !important;
    opacity:0 !important;
    transition:opacity .2s ease !important;
}

.tlep-popup.tlep-visible{
    opacity:1 !important;
}

.tlep-backdrop{
    position:absolute !important;
    inset:0 !important;
    background:rgba(0,0,0,.42) !important;
}

.tlep-dialog{
    position:relative !important;
    z-index:1 !important;
    width:min(460px,calc(100vw - 36px)) !important;
    max-height:calc(100dvh - 36px) !important;
    overflow:auto !important;
    box-sizing:border-box !important;
    padding:24px 24px 20px !important;
    border-radius:12px !important;
    background:#fff !important;
    color:#222 !important;
    text-align:center !important;
    box-shadow:0 16px 48px rgba(0,0,0,.22) !important;
    transform:translateY(12px) scale(.99) !important;
    transition:transform .2s ease !important;
}

.tlep-visible .tlep-dialog{
    transform:translateY(0) scale(1) !important;
}

.tlep-close-x{
    position:absolute !important;
    top:9px !important;
    right:10px !important;
    width:34px !important;
    height:34px !important;
    border:0 !important;
    border-radius:50% !important;
    background:#f2f2f2 !important;
    color:#555 !important;
    font-size:22px !important;
    line-height:34px !important;
    cursor:pointer !important;
}

.tlep-dialog h2{
    margin:4px 34px 18px !important;
    font-size:1.35rem !important;
    line-height:1.45 !important;
    font-weight:700 !important;
}

.tlep-qr-link{
    display:inline-block !important;
    padding:8px !important;
    background:#fff !important;
    border:1px solid #e5e5e5 !important;
    border-radius:8px !important;
    text-decoration:none !important;
}

.tlep-qr-link img{
    display:block !important;
    width:190px !important;
    max-width:52vw !important;
    height:auto !important;
    margin:0 auto !important;
}

.tlep-no-qr{
    margin:12px 0 !important;
    padding:18px !important;
    border:1px dashed #bbb !important;
    color:#777 !important;
    font-size:.9rem !important;
}

.tlep-message{
    margin:18px 0 16px !important;
    font-size:.95rem !important;
    line-height:1.65 !important;
    font-weight:600 !important;
}

.tlep-actions{
    display:grid !important;
    grid-template-columns:1.25fr 1fr !important;
    gap:9px !important;
}

.tlep-add,
.tlep-skip{
    min-height:43px !important;
    box-sizing:border-box !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    padding:9px 12px !important;
    border-radius:6px !important;
    font:inherit !important;
    font-size:.9rem !important;
    cursor:pointer !important;
    text-decoration:none !important;
}

.tlep-add{
    border:1px solid #06c755 !important;
    background:#06c755 !important;
    color:#fff !important;
    font-weight:700 !important;
}

.tlep-skip{
    border:1px solid #aaa !important;
    background:#fff !important;
    color:#444 !important;
}

html.tlep-open,
html.tlep-open body,
body.tlep-open{
    overflow:hidden !important;
}

@media(max-width:600px){
    .tlep-popup{
        padding:10px !important;
    }

    .tlep-dialog{
        width:calc(100vw - 20px) !important;
        max-height:calc(100dvh - 20px) !important;
        padding:21px 17px 17px !important;
    }

    .tlep-dialog h2{
        margin-left:25px !important;
        margin-right:25px !important;
        font-size:1.18rem !important;
    }

    .tlep-qr-link img{
        width:175px !important;
        max-width:55vw !important;
    }

    .tlep-message{
        font-size:.9rem !important;
    }

    .tlep-actions{
        grid-template-columns:1fr !important;
    }
}

@media(prefers-reduced-motion:reduce){
    .tlep-popup,
    .tlep-dialog{
        transition:none !important;
    }
}
