
:root{
    --bbu-service-blue:#0674ff;
    --bbu-service-text:#101828;
    --bbu-service-muted:#667085;
    --bbu-service-line:#dfe7f1;
}

.bbu-services-card{
    width:min(100%,1000px);
    margin:0 auto;
    padding:22px;
    border:1px solid var(--bbu-service-line);
    border-radius:18px;
    background:#fff;
    color:var(--bbu-service-text);
    box-shadow:0 8px 28px rgba(16,24,40,.05);
}

.bbu-services-card *{
    box-sizing:border-box;
    min-width:0;
}

.bbu-services-head{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:flex-start;
}

.bbu-services-head h2{
    margin:0;
    font-size:clamp(24px,4vw,34px);
}

.bbu-services-head p{
    margin:5px 0 0;
    color:var(--bbu-service-muted);
}

.bbu-services-head>a{
    display:inline-flex;
    min-height:42px;
    align-items:center;
    justify-content:center;
    padding:8px 12px;
    border:1px solid #d8e3ef;
    border-radius:10px;
    text-decoration:none;
    font-size:12px;
    font-weight:900;
}

.bbu-service-list{
    display:grid;
    gap:8px;
    margin:20px 0 26px;
}

.bbu-service-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:14px;
    align-items:center;
    padding:13px;
    border:1px solid #e1eaf5;
    border-radius:14px;
    background:#fbfdff;
}

.bbu-service-row-title{
    display:flex;
    gap:7px;
    align-items:center;
    flex-wrap:wrap;
}

.bbu-service-row-title>strong{
    font-size:15px;
}

.bbu-service-row-title>span{
    padding:4px 7px;
    border-radius:999px;
    background:#f2f4f7;
    color:#667085;
    font-size:9px;
    font-weight:900;
}

.bbu-service-row-main p,
.bbu-service-row-main small{
    display:block;
    margin:4px 0 0;
    color:#667085;
    font-size:11px;
}

.bbu-service-row-actions{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.bbu-service-row-actions a,
.bbu-service-row-actions button{
    display:inline-flex;
    min-height:38px;
    align-items:center;
    justify-content:center;
    padding:7px 10px;
    border:1px solid #d8e3ef;
    border-radius:9px;
    background:#fff;
    color:#344054;
    text-decoration:none;
    font:inherit;
    font-size:11px;
    font-weight:850;
    cursor:pointer;
}

.bbu-service-editor>h3{
    margin:0 0 14px;
}

.bbu-service-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}

.bbu-service-full{
    grid-column:1/-1;
}

.bbu-service-field{
    display:grid;
    gap:6px;
}

.bbu-service-field>span{
    color:#344054;
    font-size:12px;
    font-weight:850;
}

.bbu-service-field input,
.bbu-service-field textarea{
    width:100%;
    max-width:100%;
    min-height:46px;
    padding:10px 12px;
    border:1px solid #d7e2ef;
    border-radius:11px;
    background:#fff;
    font:inherit;
}

.bbu-service-switch{
    display:flex;
    gap:7px;
    align-items:center;
    align-self:end;
    min-height:46px;
    font-size:12px;
    font-weight:850;
}

.bbu-service-branches{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin:18px 0 0;
    padding:0;
    border:0;
}

.bbu-service-branches legend{
    grid-column:1/-1;
    margin-bottom:2px;
    color:#344054;
    font-size:12px;
    font-weight:900;
}

.bbu-service-branches label{
    display:flex;
    gap:9px;
    align-items:flex-start;
    padding:11px;
    border:1px solid #e1eaf5;
    border-radius:12px;
    background:#fbfdff;
}

.bbu-service-branches strong,
.bbu-service-branches small{
    display:block;
}

.bbu-service-branches small{
    margin-top:2px;
    color:#667085;
    font-size:10px;
}

.bbu-service-button{
    display:inline-flex;
    min-height:46px;
    align-items:center;
    justify-content:center;
    margin-top:16px;
    padding:10px 15px;
    border:0;
    border-radius:11px;
    background:var(--bbu-service-blue);
    color:#fff!important;
    text-decoration:none;
    font:inherit;
    font-weight:900;
    cursor:pointer;
}

.bbu-service-notice{
    margin:16px 0;
    padding:12px 14px;
    border:1px solid #f4c7c3;
    border-radius:11px;
    background:#fff7f6;
    color:#b42318;
    font-size:13px;
}

.bbu-service-notice.is-success{
    border-color:#b7e3c7;
    background:#f2fbf5;
    color:#08783e;
}

.bbu-service-empty{
    padding:18px;
    border:1px dashed #cdd9e8;
    border-radius:13px;
    color:#667085;
    text-align:center;
}

@media(max-width:760px){
    .bbu-services-card{
        width:100%;
        padding:16px;
    }

    .bbu-service-row{
        grid-template-columns:minmax(0,1fr);
    }

    .bbu-service-row-actions{
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        justify-content:stretch;
    }

    .bbu-service-row-actions a,
    .bbu-service-row-actions form,
    .bbu-service-row-actions button{
        width:100%;
    }

    .bbu-service-grid,
    .bbu-service-branches{
        grid-template-columns:minmax(0,1fr);
    }

    .bbu-service-full,
    .bbu-service-branches legend{
        grid-column:auto;
    }

    .bbu-service-field input,
    .bbu-service-field textarea{
        font-size:16px;
    }
}

@media(max-width:430px){
    .bbu-services-head{
        flex-direction:column;
    }

    .bbu-services-head>a,
    .bbu-service-button{
        width:100%;
    }

    .bbu-service-row-actions{
        grid-template-columns:minmax(0,1fr);
    }
}
