/*
 * PM_SUPERADMIN_PLATFORM_PAYMENTS_ISOLATED_V2
 * Scoped only to .pm-pp2.
 */

.pm-pp2{
    margin-top:24px;
    display:grid;
    gap:16px;
    color:#10263d;
}

.pm-pp2 *,
.pm-pp2 *::before,
.pm-pp2 *::after{
    box-sizing:border-box;
}

.pm-pp2-hero{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:22px;
    padding:24px 26px;
    border:1px solid #dce7e5;
    border-radius:22px;
    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(190,242,100,.28),
            transparent 30%
        ),
        linear-gradient(
            110deg,
            #fff 0%,
            #f4ffe7 54%,
            #123946 100%
        );
    box-shadow:0 14px 38px rgba(17,50,64,.07);
}

.pm-pp2-hero small,
.pm-pp2-editor header small,
.pm-pp2-control > small{
    display:block;
    font-size:10px;
    font-weight:900;
    letter-spacing:.13em;
    color:#68855c;
}

.pm-pp2-hero h2{
    margin:5px 0 4px;
    font-size:27px;
    color:#10263d;
}

.pm-pp2-hero p{
    margin:0;
    color:#607286;
    font-size:13px;
}

.pm-pp2-status{
    min-width:175px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px 14px;
    border-radius:15px;
    background:rgba(255,255,255,.93);
}

.pm-pp2-status i{
    width:11px;
    height:11px;
    border-radius:50%;
    background:#aeb8c2;
}

.pm-pp2-status i.verified{
    background:#84cc16;
}

.pm-pp2-status i.active{
    background:#16a34a;
}

.pm-pp2-status span{
    display:grid;
    gap:2px;
}

.pm-pp2-status span small{
    font-size:8px;
    color:#83909d;
}

.pm-pp2-status span b{
    font-size:12px;
}

.pm-pp2-message{
    display:none;
}

.pm-pp2-message.success,
.pm-pp2-message.error{
    display:block;
    padding:11px 14px;
    border-radius:12px;
    font-size:12px;
    font-weight:700;
}

.pm-pp2-message.success{
    background:#f1fbdc;
    border:1px solid #d7ebae;
    color:#47730a;
}

.pm-pp2-message.error{
    background:#fff0f0;
    border:1px solid #efc8c8;
    color:#a61b1b;
}

.pm-pp2-status-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:11px;
}

.pm-pp2-card{
    padding:15px;
    display:grid;
    gap:4px;
    border:1px solid #e0e7ec;
    border-radius:15px;
    background:#fff;
}

.pm-pp2-card small{
    color:#7a8998;
    font-size:10px;
    font-weight:800;
}

.pm-pp2-card strong{
    color:#273e53;
    font-size:16px;
}

.pm-pp2-card.good{
    border-color:#d5eaa9;
    background:#fbfff4;
}

.pm-pp2-card.good strong{
    color:#588900;
}

.pm-pp2-layout{
    display:grid;
    grid-template-columns:minmax(0,1.65fr) minmax(285px,.7fr);
    gap:15px;
    align-items:start;
}

.pm-pp2-editor,
.pm-pp2-control{
    border:1px solid #dde6eb;
    border-radius:19px;
    background:#fff;
    box-shadow:0 9px 28px rgba(20,48,68,.05);
}

.pm-pp2-editor{
    padding:20px;
}

.pm-pp2-editor > header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:16px;
    padding-bottom:15px;
    border-bottom:1px solid #edf1f4;
}

.pm-pp2-editor h3,
.pm-pp2-control h3{
    margin:4px 0 0;
    font-size:18px;
    color:#122c44;
}

.pm-pp2-env{
    padding:6px 9px;
    border-radius:999px;
    background:#eef5df;
    color:#638514;
    font-size:9px;
    font-weight:900;
    font-style:normal;
}

.pm-pp2-form{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:13px;
}

.pm-pp2-form label{
    min-width:0;
    display:grid;
    gap:6px;
}

.pm-pp2-form label.wide{
    grid-column:1/-1;
}

.pm-pp2-form label > span{
    font-size:11px;
    font-weight:800;
    color:#52677a;
}

.pm-pp2-form label > small{
    font-size:10px;
    line-height:1.35;
    color:#82909d;
}

.pm-pp2 input,
.pm-pp2 select,
.pm-pp2-readonly{
    width:100%;
    min-height:42px;
    padding:0 12px;
    border:1px solid #d7e0e6;
    border-radius:11px;
    background:#fbfcfd;
    color:#173149;
    font:inherit;
}

.pm-pp2 input:focus,
.pm-pp2 select:focus{
    outline:0;
    border-color:#9bc83c;
    box-shadow:0 0 0 3px rgba(155,200,60,.13);
}

.pm-pp2-readonly{
    display:flex;
    align-items:center;
    font-size:11px;
    font-weight:800;
}

.pm-pp2-webhook{
    margin-top:15px;
    padding:12px 13px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border:1px solid #dce7e3;
    border-radius:13px;
    background:#f7fbf8;
}

.pm-pp2-webhook > div{
    min-width:0;
    display:grid;
    gap:4px;
}

.pm-pp2-webhook span{
    font-size:10px;
    font-weight:800;
    color:#637d70;
}

.pm-pp2-webhook code{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:10.5px;
    color:#28485b;
}

.pm-pp2 button{
    border:0;
    border-radius:10px;
    cursor:pointer;
    font-weight:800;
}

.pm-pp2 button:disabled{
    opacity:.48;
    cursor:not-allowed;
}

.pm-pp2-webhook button{
    padding:9px 12px;
    background:#e7f5ca;
}

.pm-pp2-actions{
    margin-top:15px;
    display:flex;
    gap:9px;
    justify-content:flex-end;
}

.pm-pp2-actions button{
    min-height:40px;
    padding:0 16px;
    background:#eef3f6;
    color:#17364a;
}

.pm-pp2-actions button.primary{
    background:#b7ef55;
    color:#17361d;
}

.pm-pp2-control{
    padding:19px;
}

.pm-pp2-control > p{
    margin:8px 0 16px;
    font-size:11.5px;
    line-height:1.5;
    color:#687b8c;
}

.pm-pp2-toggle-row{
    padding:13px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border:1px solid #e1e8ed;
    border-radius:14px;
    background:#f9fbfc;
}

.pm-pp2-toggle-row > div{
    display:grid;
    gap:3px;
}

.pm-pp2-toggle-row b{
    font-size:12px;
}

.pm-pp2-toggle-row small{
    font-size:10px;
    line-height:1.35;
    color:#7c8996;
}

.pm-pp2-switch{
    position:relative;
    flex:0 0 44px;
    width:44px;
    height:25px;
    border-radius:999px!important;
    background:#bbc4cc;
}

.pm-pp2-switch i{
    position:absolute;
    width:19px;
    height:19px;
    left:3px;
    top:3px;
    border-radius:50%;
    background:#fff;
    transition:.18s ease;
}

.pm-pp2-switch.on{
    background:#84cc16;
}

.pm-pp2-switch.on i{
    transform:translateX(19px);
}

.pm-pp2-checklist{
    margin-top:14px;
    display:grid;
    gap:8px;
}

.pm-pp2-checklist > div{
    display:flex;
    align-items:center;
    gap:8px;
    color:#788794;
    font-size:11px;
    font-weight:700;
}

.pm-pp2-checklist i{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#bbc3ca;
}

.pm-pp2-checklist > div.ok{
    color:#567f0c;
}

.pm-pp2-checklist > div.ok i{
    background:#84cc16;
}

.pm-pp2-blockers{
    margin-top:14px;
    padding:12px 13px;
    border:1px solid #efdda9;
    border-radius:13px;
    background:#fffaf0;
}

.pm-pp2-blockers b{
    color:#87691d;
    font-size:11px;
}

.pm-pp2-blockers ul{
    margin:7px 0 0;
    padding-left:17px;
    color:#877751;
    font-size:10px;
    line-height:1.5;
}

.pm-pp2-security{
    margin-top:14px;
    padding:12px 13px;
    display:grid;
    gap:4px;
    border-radius:13px;
    background:#f2f7f9;
}

.pm-pp2-security b{
    font-size:10.5px;
}

.pm-pp2-security span{
    font-size:10px;
    line-height:1.45;
    color:#718291;
}

.pm-pp2-loading{
    padding:20px;
    border:1px solid #e0e7ec;
    border-radius:16px;
    background:#fff;
    color:#71808f;
}

@media(max-width:1100px){

    .pm-pp2-status-grid{
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .pm-pp2-layout{
        grid-template-columns:1fr;
    }
}

@media(max-width:720px){

    .pm-pp2-hero{
        flex-direction:column;
        align-items:stretch;
        padding:19px;
        background:
            linear-gradient(
                135deg,
                #fff,
                #f3ffe5
            );
    }

    .pm-pp2-status{
        min-width:0;
    }

    .pm-pp2-status-grid,
    .pm-pp2-form{
        grid-template-columns:1fr;
    }

    .pm-pp2-form label.wide{
        grid-column:auto;
    }

    .pm-pp2-webhook,
    .pm-pp2-actions{
        flex-direction:column;
        align-items:stretch;
    }

    .pm-pp2-actions button{
        width:100%;
    }
}
