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

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

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

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

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

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

.bbu-branches-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-branch-list{
    display:grid;
    gap:8px;
    margin:20px 0 26px;
}

.bbu-branch-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-branch-row-title{
    display:flex;
    gap:7px;
    align-items:center;
    flex-wrap:wrap;
}

.bbu-branch-row-title>strong{
    font-size:15px;
    overflow-wrap:anywhere;
}

.bbu-branch-row-title>span{
    padding:4px 7px;
    border-radius:999px;
    background:#edf5ff;
    color:#0674ff;
    font-size:9px;
    font-weight:900;
}

.bbu-branch-row-title>span.is-passive{
    background:#f2f4f7;
    color:#667085;
}

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

.bbu-branch-row-actions{
    display:flex;
    gap:6px;
    align-items:center;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.bbu-branch-row-actions a,
.bbu-branch-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-branch-row-actions .is-whatsapp{
    border-color:#bde8cb;
    background:#eefbf2;
    color:#128c4a;
}

.bbu-branch-editor{
    padding-top:2px;
}

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

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

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

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

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

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

.bbu-branch-field textarea{
    resize:vertical;
}

.bbu-branch-switches{
    display:flex;
    gap:16px;
    flex-wrap:wrap;
    margin:14px 0 0;
}

.bbu-branch-switches label{
    display:flex;
    gap:7px;
    align-items:center;
    font-size:12px;
    font-weight:850;
}

.bbu-hours{
    margin-top:24px;
    padding:16px;
    border:1px solid #e1eaf5;
    border-radius:14px;
    background:#fbfdff;
}

.bbu-hours-title{
    margin-bottom:11px;
}

.bbu-hours-title h3{
    margin:0;
}

.bbu-hours-title span{
    display:block;
    margin-top:3px;
    color:#667085;
    font-size:11px;
}

.bbu-hours-row{
    display:grid;
    grid-template-columns:minmax(120px,1fr) 120px auto 120px;
    gap:8px;
    align-items:center;
    padding:8px 0;
    border-bottom:1px solid #e9eff6;
}

.bbu-hours-row:last-child{
    border-bottom:0;
}

.bbu-hours-open{
    display:flex;
    gap:7px;
    align-items:center;
    font-size:12px;
    font-weight:850;
}

.bbu-hours-row input[type="time"]{
    width:100%;
    min-height:42px;
    padding:7px 8px;
    border:1px solid #d7e2ef;
    border-radius:9px;
    background:#fff;
    font:inherit;
}

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

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

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

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

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

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

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

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

    .bbu-branch-full{
        grid-column:auto;
    }

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

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

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

    .bbu-branches-head>a{
        width:100%;
    }

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

    .bbu-hours{
        padding:12px;
    }

    .bbu-hours-row{
        grid-template-columns:minmax(0,1fr) minmax(0,1fr);
        gap:6px;
    }

    .bbu-hours-open{
        grid-column:1/-1;
    }

    .bbu-hours-row>span{
        display:none;
    }

    .bbu-branch-button{
        width:100%;
    }
}
