/* ==========================================================================
   Advanced Controls
   - Reusable row/label/control layout for "Advanced" sections
   - Currently used by Border controls in Design → Size & Layout → Advanced
   ========================================================================== */

.ipb-advanced-settings .ipb-advanced-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: center;
}

.ipb-advanced-settings .ipb-advanced-label {
    align-self: center;
}

.ipb-advanced-settings .ipb-advanced-label label {
    font-size: 14px;
    font-weight: 600;
    color: #1e1f21;
    margin: 0;
}

.ipb-advanced-settings .ipb-advanced-control input[type="number"] {
    width: 100%;
    max-width: 260px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    color: #2c3338;
    background: #fff;
    box-sizing: border-box;
}

.ipb-advanced-settings .ipb-advanced-control input[type="number"]:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.ipb-advanced-settings .ipb-advanced-helper {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #646970;
    line-height: 1.4;
}

.ipb-advanced-settings .ipb-advanced-control input[type="color"] {
    width: 48px;
    height: 40px;
    padding: 0;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;
}

.ipb-advanced-settings .ipb-advanced-control input[type="color"]:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

@media (max-width: 782px) {
    .ipb-advanced-settings .ipb-advanced-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ipb-advanced-settings .ipb-advanced-control input[type="number"] {
        max-width: 100%;
    }
}

