/* MASTERBAR Account 0.1.3
 * Wspólny wygląd konta klienta. Korzysta ze zmiennych MASTERBAR UI, jeżeli są dostępne.
 */
body.masterbar-account-page{
    --mba-primary:var(--masterbar-primary,#123b5d);
    --mba-text:var(--masterbar-text,#132238);
    --mba-muted:#64748b;
    --mba-border:var(--masterbar-border,#dfe4eb);
    --mba-soft:#f8fafc;
    --mba-bg:#fff;
    --mba-radius:12px;
}

body.masterbar-account-page .woocommerce{
    color:var(--mba-text);
}

/* ===== Konto zalogowanego klienta ===== */
body.masterbar-account-logged-in .woocommerce-MyAccount-navigation{
    width:245px;
    float:left;
    margin:0 28px 0 0;
    padding:0;
    border:1px solid var(--mba-border);
    border-radius:12px;
    background:var(--mba-bg);
    overflow:hidden;
    box-shadow:0 8px 24px rgba(15,23,42,.035);
}
body.masterbar-account-logged-in .woocommerce-MyAccount-navigation ul{
    list-style:none;
    margin:0!important;
    padding:0!important;
}
body.masterbar-account-logged-in .woocommerce-MyAccount-navigation li{
    list-style:none;
    margin:0!important;
    padding:0!important;
    border-bottom:1px solid var(--mba-border);
}
body.masterbar-account-logged-in .woocommerce-MyAccount-navigation li:last-child{border-bottom:0}
body.masterbar-account-logged-in .woocommerce-MyAccount-navigation a{
    display:block;
    padding:13px 15px;
    color:#2563a9;
    text-decoration:none!important;
    line-height:1.35;
    transition:background .15s ease,color .15s ease,box-shadow .15s ease;
}
body.masterbar-account-logged-in .woocommerce-MyAccount-navigation a:hover,
body.masterbar-account-logged-in .woocommerce-MyAccount-navigation a:focus{
    background:var(--mba-soft);
    color:var(--mba-primary);
}
body.masterbar-account-logged-in .woocommerce-MyAccount-navigation .is-active a{
    color:var(--mba-primary);
    font-weight:700;
    background:color-mix(in srgb,var(--mba-primary) 7%,#fff);
    box-shadow:inset 3px 0 0 var(--mba-primary);
}
body.masterbar-account-logged-in .woocommerce-MyAccount-navigation-link--customer-logout a{
    color:#526174;
}
body.masterbar-account-logged-in .woocommerce-MyAccount-content{
    float:none;
    width:auto;
    min-width:0;
    overflow:hidden;
}
body.masterbar-account-logged-in .woocommerce::after{
    content:"";
    display:block;
    clear:both;
}

/* ===== Typografia / wspólne sekcje ===== */
body.masterbar-account-page .woocommerce-MyAccount-content h2,
body.masterbar-account-page .woocommerce-MyAccount-content h3{
    color:var(--mba-text);
}
body.masterbar-account-page .woocommerce-MyAccount-content > p:first-child{
    margin-top:0;
}
body.masterbar-account-page .woocommerce-MyAccount-content a{
    color:#0b69c7;
}
body.masterbar-account-page .woocommerce-MyAccount-content hr{
    border:0;
    border-top:1px solid var(--mba-border);
}

/* Karty generowane przez Rewards/Affiliates już są wzorcem — tylko pilnujemy szerokości. */
body.masterbar-account-page .mbr-account-page,
body.masterbar-account-page .mba-account-page{
    max-width:none!important;
}
body.masterbar-account-page .mbr-dashboard-card,
body.masterbar-account-page .mba-dashboard-card{
    box-shadow:none!important;
}

/* ===== Zamówienia ===== */
body.masterbar-account-page table.shop_table,
body.masterbar-account-page table.woocommerce-orders-table{
    width:100%;
    border-collapse:separate!important;
    border-spacing:0;
    border:1px solid var(--mba-border)!important;
    border-radius:12px;
    overflow:hidden;
    background:#fff;
}
body.masterbar-account-page table.shop_table th,
body.masterbar-account-page table.shop_table td{
    padding:13px 14px!important;
    border:0!important;
    border-bottom:1px solid var(--mba-border)!important;
    vertical-align:middle;
}
body.masterbar-account-page table.shop_table thead th{
    background:var(--mba-soft);
    color:var(--mba-text);
    font-size:13px;
    font-weight:700;
}
body.masterbar-account-page table.shop_table tbody tr:last-child td{border-bottom:0!important}
body.masterbar-account-page .woocommerce-orders-table .woocommerce-button,
body.masterbar-account-page .woocommerce-Button,
body.masterbar-account-page button.button,
body.masterbar-account-page input.button{
    border:0!important;
    border-radius:8px!important;
    background:var(--mba-primary)!important;
    color:#fff!important;
    font-weight:700!important;
    text-decoration:none!important;
    box-shadow:none!important;
    min-height:40px;
    padding:10px 17px!important;
}
body.masterbar-account-page .woocommerce-orders-table .woocommerce-button:hover,
body.masterbar-account-page .woocommerce-Button:hover,
body.masterbar-account-page button.button:hover,
body.masterbar-account-page input.button:hover{filter:brightness(.92)}

/* Komunikat powiązania starych zamówień / notices */
body.masterbar-account-page .woocommerce-info,
body.masterbar-account-page .woocommerce-message,
body.masterbar-account-page .woocommerce-error{
    border:1px solid var(--mba-border)!important;
    border-left:4px solid var(--mba-primary)!important;
    border-radius:10px;
    background:var(--mba-soft)!important;
    padding:15px 18px 15px 48px!important;
    color:var(--mba-text)!important;
}

/* ===== Adresy ===== */
body.masterbar-account-page .woocommerce-Addresses{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
    margin-top:18px;
}
body.masterbar-account-page .woocommerce-Address{
    float:none!important;
    width:auto!important;
    margin:0!important;
    border:1px solid var(--mba-border);
    border-radius:12px;
    overflow:hidden;
    background:#fff;
}
body.masterbar-account-page .woocommerce-Address-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:17px 18px;
    border-bottom:1px solid var(--mba-border);
    background:var(--mba-soft);
}
body.masterbar-account-page .woocommerce-Address-title h2{
    float:none!important;
    margin:0!important;
    font-size:21px;
}
body.masterbar-account-page .woocommerce-Address-title .edit{
    float:none!important;
    white-space:nowrap;
    font-weight:700;
}
body.masterbar-account-page .woocommerce-Address address{
    padding:18px;
    margin:0;
    line-height:1.7;
}

/* ===== Formularze: dane konta / adres / logowanie / rejestracja ===== */
body.masterbar-account-page .woocommerce form .form-row{
    margin:0 0 15px;
}
body.masterbar-account-page .woocommerce form label{
    display:block;
    margin:0 0 7px;
    color:var(--mba-text);
    font-weight:700;
}
body.masterbar-account-page .woocommerce form .input-text,
body.masterbar-account-page .woocommerce form input[type="text"],
body.masterbar-account-page .woocommerce form input[type="email"],
body.masterbar-account-page .woocommerce form input[type="tel"],
body.masterbar-account-page .woocommerce form input[type="password"],
body.masterbar-account-page .woocommerce form select,
body.masterbar-account-page .woocommerce form textarea{
    width:100%;
    min-height:44px;
    padding:10px 12px;
    border:1px solid #cfd8e3!important;
    border-radius:8px!important;
    background:#fff;
    color:var(--mba-text);
    box-shadow:none!important;
}
body.masterbar-account-page .woocommerce form .input-text:focus,
body.masterbar-account-page .woocommerce form input:focus,
body.masterbar-account-page .woocommerce form select:focus,
body.masterbar-account-page .woocommerce form textarea:focus{
    outline:0;
    border-color:var(--mba-primary)!important;
    box-shadow:0 0 0 3px color-mix(in srgb,var(--mba-primary) 11%,transparent)!important;
}
body.masterbar-account-page .woocommerce-EditAccountForm,
body.masterbar-account-page .woocommerce-address-fields{
    max-width:860px;
}
body.masterbar-account-page fieldset{
    margin:24px 0 18px;
    padding:20px;
    border:1px solid var(--mba-border);
    border-radius:12px;
    background:var(--mba-soft);
}
body.masterbar-account-page fieldset legend{
    padding:0 8px;
    color:var(--mba-text);
    font-weight:800;
}

/* ===== Gość: login / rejestracja ===== */
body.masterbar-account-guest .woocommerce > h2,
body.masterbar-account-guest .woocommerce > .woocommerce-notices-wrapper + h2{
    margin-bottom:18px;
}
body.masterbar-account-guest .woocommerce .u-columns.col2-set{
    display:grid;
    grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);
    gap:26px;
    align-items:start;
}
body.masterbar-account-guest .woocommerce .u-column1,
body.masterbar-account-guest .woocommerce .u-column2{
    float:none!important;
    width:auto!important;
    margin:0!important;
}
body.masterbar-account-guest .woocommerce .u-column1 > h2,
body.masterbar-account-guest .woocommerce .u-column2 > h2{
    margin:0 0 14px;
    padding:0;
    font-size:27px;
}
body.masterbar-account-guest form.woocommerce-form-login,
body.masterbar-account-guest form.woocommerce-form-register{
    margin:0!important;
    padding:22px!important;
    border:1px solid var(--mba-border)!important;
    border-radius:12px!important;
    background:#fff;
    box-shadow:0 8px 24px rgba(15,23,42,.03);
}
body.masterbar-account-guest form.woocommerce-form-register{
    background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%);
}
body.masterbar-account-guest .woocommerce-LostPassword{
    margin:13px 0 0;
}
body.masterbar-account-guest .woocommerce-form-login__rememberme{
    display:flex!important;
    align-items:center;
    gap:8px;
    margin:0 0 14px!important;
}
body.masterbar-account-guest .woocommerce-form-login__rememberme input{margin:0!important}

/* ===== Mobile ===== */
@media(max-width:900px){
    body.masterbar-account-logged-in .woocommerce-MyAccount-navigation{
        float:none;
        width:100%;
        margin:0 0 22px;
        border-radius:10px;
    }
    body.masterbar-account-logged-in .woocommerce-MyAccount-navigation ul{
        display:flex;
        overflow-x:auto;
        scrollbar-width:thin;
        -webkit-overflow-scrolling:touch;
    }
    body.masterbar-account-logged-in .woocommerce-MyAccount-navigation li{
        flex:0 0 auto;
        border-bottom:0;
        border-right:1px solid var(--mba-border);
    }
    body.masterbar-account-logged-in .woocommerce-MyAccount-navigation li:last-child{border-right:0}
    body.masterbar-account-logged-in .woocommerce-MyAccount-navigation a{
        padding:12px 14px;
        white-space:nowrap;
    }
    body.masterbar-account-logged-in .woocommerce-MyAccount-navigation .is-active a{
        box-shadow:inset 0 -3px 0 var(--mba-primary);
    }
    body.masterbar-account-logged-in .woocommerce-MyAccount-content{overflow:visible}
    body.masterbar-account-page .woocommerce-Addresses{grid-template-columns:1fr}
    body.masterbar-account-guest .woocommerce .u-columns.col2-set{grid-template-columns:1fr;gap:24px}
}

@media(max-width:600px){
    body.masterbar-account-page .woocommerce-MyAccount-content h2{font-size:24px}
    body.masterbar-account-guest .woocommerce .u-column1 > h2,
    body.masterbar-account-guest .woocommerce .u-column2 > h2{font-size:23px}
    body.masterbar-account-guest form.woocommerce-form-login,
    body.masterbar-account-guest form.woocommerce-form-register{padding:17px!important}
    body.masterbar-account-page .woocommerce-Address-title{align-items:flex-start;flex-direction:column}
    body.masterbar-account-page table.woocommerce-orders-table,
    body.masterbar-account-page table.woocommerce-orders-table tbody,
    body.masterbar-account-page table.woocommerce-orders-table tr,
    body.masterbar-account-page table.woocommerce-orders-table td{display:block;width:100%}
    body.masterbar-account-page table.woocommerce-orders-table thead{display:none}
    body.masterbar-account-page table.woocommerce-orders-table tr{padding:8px 0;border-bottom:1px solid var(--mba-border)}
    body.masterbar-account-page table.woocommerce-orders-table tr:last-child{border-bottom:0}
    body.masterbar-account-page table.woocommerce-orders-table td{
        display:flex;
        justify-content:space-between;
        gap:18px;
        text-align:right!important;
        border-bottom:1px solid #eef2f6!important;
    }
    body.masterbar-account-page table.woocommerce-orders-table td::before{
        content:attr(data-title);
        font-weight:700;
        text-align:left;
        color:var(--mba-text);
    }
    body.masterbar-account-page table.woocommerce-orders-table td:last-child{border-bottom:0!important}
}


/* ===== 0.1.1 – polish standardowych ekranów konta ===== */

/* Adresy: wymuszamy równy, przewidywalny układ niezależnie od stylów motywu/Woo. */
body.masterbar-account-page .woocommerce-Addresses .woocommerce-Address,
body.masterbar-account-page .woocommerce-Addresses .col-1,
body.masterbar-account-page .woocommerce-Addresses .col-2{
    float:none!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    align-self:stretch;
}
body.masterbar-account-page .woocommerce-Addresses .woocommerce-Address{
    display:flex;
    flex-direction:column;
}
body.masterbar-account-page .woocommerce-Addresses .woocommerce-Address address{
    flex:1 1 auto;
}

/* Formularze danych konta: czytelne sekcje i spójna szerokość. */
body.masterbar-account-page .woocommerce-EditAccountForm{
    width:100%;
}
body.masterbar-account-page .woocommerce-EditAccountForm fieldset{
    margin-top:26px;
    background:var(--mba-soft);
}
body.masterbar-account-page .woocommerce-EditAccountForm fieldset legend{
    font-size:16px;
}
body.masterbar-account-page .woocommerce-EditAccountForm > p:last-child{
    margin-top:18px;
}

/* Notices WooCommerce traktujemy jak karty, nie surowe komunikaty systemowe. */
body.masterbar-account-page .woocommerce-info,
body.masterbar-account-page .woocommerce-message,
body.masterbar-account-page .woocommerce-error{
    min-height:58px;
    margin:0 0 18px!important;
    box-shadow:none!important;
}
body.masterbar-account-page .woocommerce-info::before,
body.masterbar-account-page .woocommerce-message::before,
body.masterbar-account-page .woocommerce-error::before{
    color:var(--mba-primary)!important;
}
body.masterbar-account-page .woocommerce-info .button,
body.masterbar-account-page .woocommerce-message .button{
    margin-left:16px!important;
}

/* Gość: twardy reset kolumn WooCommerce/motywu – dwie równe, szerokie karty. */
body.masterbar-account-guest .woocommerce{
    width:100%!important;
    max-width:none!important;
}
body.masterbar-account-guest .woocommerce .u-columns.col2-set{
    width:100%!important;
    max-width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:28px!important;
    align-items:start!important;
}
body.masterbar-account-guest .woocommerce .u-columns.col2-set::before,
body.masterbar-account-guest .woocommerce .u-columns.col2-set::after{
    display:none!important;
    content:none!important;
}
body.masterbar-account-guest .woocommerce .u-column1,
body.masterbar-account-guest .woocommerce .u-column2,
body.masterbar-account-guest .woocommerce .col-1,
body.masterbar-account-guest .woocommerce .col-2{
    float:none!important;
    clear:none!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
}
body.masterbar-account-guest form.woocommerce-form-login,
body.masterbar-account-guest form.woocommerce-form-register{
    width:100%!important;
    max-width:none!important;
    box-sizing:border-box!important;
}

@media(max-width:900px){
    /* Widoczna podpowiedź, że menu jest poziomo przewijane. */
    body.masterbar-account-logged-in .woocommerce-MyAccount-navigation{
        position:relative;
        overflow:visible;
        padding-top:27px;
        background:#fff;
    }
    body.masterbar-account-logged-in .woocommerce-MyAccount-navigation::before{
        content:"Przesuń menu →";
        position:absolute;
        top:5px;
        right:12px;
        z-index:3;
        font-size:11px;
        line-height:16px;
        font-weight:700;
        color:var(--mba-muted);
        pointer-events:none;
    }
    body.masterbar-account-logged-in .woocommerce-MyAccount-navigation::after{
        content:"→";
        position:absolute;
        right:0;
        top:27px;
        bottom:0;
        z-index:4;
        width:34px;
        display:flex;
        align-items:center;
        justify-content:center;
        font-size:20px;
        font-weight:800;
        color:var(--mba-primary);
        background:linear-gradient(90deg,rgba(255,255,255,0),#fff 58%);
        pointer-events:none;
    }
    body.masterbar-account-logged-in .woocommerce-MyAccount-navigation ul{
        border-radius:0 0 10px 10px;
        padding-right:30px!important;
    }
    body.masterbar-account-guest .woocommerce .u-columns.col2-set{
        grid-template-columns:1fr!important;
        gap:24px!important;
    }
}

@media(max-width:600px){
    body.masterbar-account-page .woocommerce-Addresses{
        gap:14px;
    }
    body.masterbar-account-page .woocommerce-info .button,
    body.masterbar-account-page .woocommerce-message .button{
        float:none!important;
        display:block!important;
        width:100%!important;
        margin:12px 0 0!important;
        text-align:center!important;
    }
}


/* ===== 0.1.2 – Kokpit + czytelny przycisk potwierdzenia e-mail ===== */

/* Niektóre style motywu nadpisywały kolor tekstu w przycisku WooCommerce. */
body.masterbar-account-page .woocommerce-info a.button,
body.masterbar-account-page .woocommerce-info button.button,
body.masterbar-account-page .woocommerce-message a.button,
body.masterbar-account-page .woocommerce-message button.button,
body.masterbar-account-page .woocommerce a.woocommerce-button.button{
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    opacity:1!important;
    visibility:visible!important;
    text-shadow:none!important;
    font-size:14px!important;
    line-height:20px!important;
}
body.masterbar-account-page .woocommerce-info a.button:hover,
body.masterbar-account-page .woocommerce-info a.button:focus,
body.masterbar-account-page .woocommerce-message a.button:hover,
body.masterbar-account-page .woocommerce-message a.button:focus{
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
}

/* Nowy kafel na Kokpicie: wyjaśnia program i prowadzi do strefy środków. */
body.masterbar-account-page .mba-dashboard-benefits{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:26px;
    align-items:center;
    margin:24px 0 0;
    padding:22px 24px;
    border:1px solid var(--mba-border);
    border-radius:12px;
    background:var(--mba-soft);
}
body.masterbar-account-page .mba-dashboard-benefits__eyebrow{
    display:block;
    margin:0 0 5px;
    color:var(--mba-muted);
    font-size:12px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
}
body.masterbar-account-page .mba-dashboard-benefits h3{
    margin:0 0 8px!important;
    font-size:21px;
}
body.masterbar-account-page .mba-dashboard-benefits p{
    margin:0;
    max-width:680px;
    color:#475569;
    line-height:1.6;
}
body.masterbar-account-page .mba-dashboard-benefits__side{
    min-width:190px;
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:4px;
}
body.masterbar-account-page .mba-dashboard-benefits__side>span{
    color:var(--mba-muted);
    font-size:12px;
    font-weight:700;
}
body.masterbar-account-page .mba-dashboard-benefits__side>strong{
    margin-bottom:9px;
    color:var(--mba-text);
    font-size:24px;
    line-height:1.15;
    white-space:nowrap;
}
body.masterbar-account-page .mba-dashboard-benefits__button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:10px 15px;
    border-radius:8px;
    background:var(--mba-primary);
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    font-weight:800;
    text-decoration:none!important;
    white-space:nowrap;
}
body.masterbar-account-page .mba-dashboard-benefits__button:hover{filter:brightness(.92)}

@media(max-width:700px){
    body.masterbar-account-page .mba-dashboard-benefits{
        grid-template-columns:1fr;
        gap:16px;
        padding:18px;
    }
    body.masterbar-account-page .mba-dashboard-benefits__side{
        min-width:0;
        align-items:flex-start;
    }
    body.masterbar-account-page .mba-dashboard-benefits__button{width:100%;}
}


/* ===== 0.1.3 – pewny kontrast przycisku weryfikacji e-mail ===== */
body.masterbar-account-page .woocommerce .woocommerce-info a.button,
body.masterbar-account-page .woocommerce .woocommerce-info .button,
body.masterbar-account-page .woocommerce-MyAccount-content .woocommerce-info a.button,
body.masterbar-account-page .woocommerce-MyAccount-content .woocommerce-info .button {
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
    text-decoration:none !important;
    opacity:1 !important;
    visibility:visible !important;
}
body.masterbar-account-page .woocommerce .woocommerce-info a.button:hover,
body.masterbar-account-page .woocommerce .woocommerce-info a.button:focus {
    color:#fff !important;
    -webkit-text-fill-color:#fff !important;
}


/* MASTERBAR Account 0.1.4 — Legal przy rejestracji */
body.masterbar-account-guest .mba-registration-legal{
    margin:18px 0 6px;
    padding:16px 18px;
    border:1px solid #dce3eb;
    border-radius:10px;
    background:#f8fafc;
}
body.masterbar-account-guest .mba-registration-legal .mba-legal-check{
    margin:0 0 9px!important;
}
body.masterbar-account-guest .mba-registration-legal .mba-legal-check label{
    display:flex;
    align-items:flex-start;
    gap:10px;
    font-weight:600;
    line-height:1.45;
}
body.masterbar-account-guest .mba-registration-legal input[type="checkbox"]{
    width:20px;
    height:20px;
    min-width:20px;
    margin-top:1px;
    accent-color:#1c4770;
}
body.masterbar-account-guest .mba-registration-legal a{
    text-decoration:underline;
}
body.masterbar-account-guest .mba-legal-privacy{
    margin:0;
    font-size:13px;
    line-height:1.55;
    color:#5a6574;
}


/* MASTERBAR Account 0.1.5 — uproszczona rejestracja */
body.masterbar-account-guest form.woocommerce-form-register .mba-register-intro{
    margin:0 0 20px;padding:18px;border:1px solid #dce3eb;border-radius:12px;background:#f8fafc;
}
body.masterbar-account-guest .mba-register-intro__eyebrow{
    display:block;margin-bottom:4px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#607086;
}
body.masterbar-account-guest .mba-register-intro h3{margin:0 0 6px;font-size:20px;line-height:1.25}
body.masterbar-account-guest .mba-register-intro>p{margin:0 0 12px;color:#5a6574;line-height:1.55}
body.masterbar-account-guest .mba-register-benefits{
    display:grid;grid-template-columns:1fr 1fr;gap:7px 16px;font-size:13px;font-weight:650;
}
body.masterbar-account-guest .mba-register-intro .mba-register-intro__note{
    margin:12px 0 0;padding-top:11px;border-top:1px solid #e1e7ee;font-size:12px;
}
body.masterbar-account-guest form.woocommerce-form-register .masterbar-registration-options{margin:16px 0 4px}
body.masterbar-account-guest form.woocommerce-form-register .masterbar-option-row{
    margin:0 0 9px!important;padding:12px 14px;border:1px solid #dce3eb;border-radius:10px;background:#fff;
}
body.masterbar-account-guest form.woocommerce-form-register .masterbar-option-row>label{
    display:flex;align-items:flex-start;gap:10px;margin:0;cursor:pointer;
}
body.masterbar-account-guest form.woocommerce-form-register .masterbar-option-row input[type="checkbox"]{
    width:19px;height:19px;min-width:19px;margin:1px 0 0;accent-color:#163e63;
}
body.masterbar-account-guest form.woocommerce-form-register .masterbar-option-row label span{
    display:flex;flex-direction:column;gap:2px;
}
body.masterbar-account-guest form.woocommerce-form-register .masterbar-option-row small{
    display:block;color:#657183;font-size:12px;line-height:1.45;font-weight:400;
}
body.masterbar-account-guest form.woocommerce-form-register .masterbar-registration-company-fields{padding:4px 2px 8px}
body.masterbar-account-guest form.woocommerce-form-register .masterbar-registration-company-fields[hidden]{display:none!important}
body.masterbar-account-guest form.woocommerce-form-register .masterbar-registration-half{width:48.5%}
body.masterbar-account-guest form.woocommerce-form-register .masterbar-confirm-password{margin-bottom:14px!important}
@media (max-width:768px){
    body.masterbar-account-guest .mba-register-benefits{grid-template-columns:1fr}
    body.masterbar-account-guest form.woocommerce-form-register .masterbar-registration-half{width:100%;float:none}
}

/* ===== 0.2.0 – mobile: zwijane Logowanie / Rejestracja ===== */
@media(max-width:900px){
    body.masterbar-account-guest #customer_login .mba-account-accordion > h2.mba-account-accordion__toggle{
        position:relative;
        margin:0!important;
        padding:15px 48px 15px 16px!important;
        border:1px solid var(--mba-border);
        border-radius:10px;
        background:#fff;
        color:var(--mba-text);
        font-size:20px!important;
        line-height:1.3;
        cursor:pointer;
        user-select:none;
        box-shadow:0 4px 16px rgba(15,23,42,.025);
    }
    body.masterbar-account-guest #customer_login .mba-account-accordion > h2.mba-account-accordion__toggle::after{
        content:"+";
        position:absolute;
        top:50%;
        right:17px;
        transform:translateY(-50%);
        color:var(--mba-primary);
        font-size:25px;
        font-weight:500;
        line-height:1;
    }
    body.masterbar-account-guest #customer_login .mba-account-accordion.is-open > h2.mba-account-accordion__toggle{
        margin-bottom:12px!important;
        border-color:color-mix(in srgb,var(--mba-primary) 30%,var(--mba-border));
        background:var(--mba-soft);
    }
    body.masterbar-account-guest #customer_login .mba-account-accordion.is-open > h2.mba-account-accordion__toggle::after{
        content:"−";
    }
    body.masterbar-account-guest #customer_login .mba-account-accordion > h2.mba-account-accordion__toggle:focus-visible{
        outline:0;
        box-shadow:0 0 0 3px color-mix(in srgb,var(--mba-primary) 14%,transparent);
    }
    body.masterbar-account-guest #customer_login .mba-account-accordion > form{
        display:none!important;
    }
    body.masterbar-account-guest #customer_login .mba-account-accordion.is-open > form{
        display:block!important;
    }
    body.masterbar-account-guest #customer_login.u-columns.col2-set{
        gap:14px!important;
    }
}

/* ===== 0.2.2 – mobile: skrócone korzyści rejestracji ===== */
body.masterbar-account-guest .mba-register-benefits__more{
    display:contents;
}
body.masterbar-account-guest .mba-register-benefits__toggle{
    display:none;
}
@media(max-width:768px){
    body.masterbar-account-guest .mba-register-intro{
        padding:16px!important;
    }
    body.masterbar-account-guest .mba-register-intro h3{
        font-size:19px;
    }
    body.masterbar-account-guest .mba-register-benefits{
        gap:7px;
    }
    body.masterbar-account-guest .mba-register-benefits__more{
        display:none;
    }
    body.masterbar-account-guest .mba-register-benefits__more.is-open{
        display:grid;
        gap:7px;
        margin-top:1px;
    }
    body.masterbar-account-guest .mba-register-benefits__toggle{
        display:inline-flex;
        align-items:center;
        justify-content:flex-start;
        gap:8px;
        width:max-content;
        max-width:100%;
        margin-top:5px;
        padding:2px 0;
        border:0;
        border-radius:0;
        box-shadow:none;
        background:transparent;
        color:var(--mba-primary);
        font:inherit;
        font-size:12px;
        font-weight:700;
        line-height:1.4;
        text-decoration:none;
        cursor:pointer;
        appearance:none;
        -webkit-appearance:none;
    }
    body.masterbar-account-guest .mba-register-benefits__toggle::after{
        content:"↓";
        display:inline-block;
        font-size:14px;
        font-weight:700;
        line-height:1;
    }
    body.masterbar-account-guest .mba-register-benefits__toggle[aria-expanded="true"]::after{
        content:"↑";
    }
    body.masterbar-account-guest .mba-register-intro .mba-register-intro__note{
        margin:5px 0 0;
        padding-top:10px;
    }
}
