/* B2B Panel Styles for PrestaShop 9 */
/* Uses CSS variables for customizable colors */

/* --b2b-main-color and --b2b-main-color-dark are injected dynamically by b2bpanel hookDisplayHeader */

/* ===================================================================
   B2B HEADER
   =================================================================== */

/* ---- Header wrapper ---- */
.b2b-header {
    background: #fff !important;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border-bottom: 1px solid #e5e5e5;
}
.b2b-header .container-md {
    max-width: none;
    padding-left: 150px;
    padding-right: 150px;
}
@media (max-width: 1400px) {
    .b2b-header .container-md {
        padding-left: 40px;
        padding-right: 40px;
    }
}
@media (max-width: 992px) {
    .b2b-header .container-md {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ---- Grid layout ---- */
.b2b-header__row {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 60px auto;
    grid-template-areas:
        "logo search actions"
        "menu menu menu";
    align-items: center;
    gap: 0 20px;
}

/* ---- Logo ---- */
.b2b-header__logo {
    grid-area: logo;
    display: flex;
    align-items: center;
    padding: 8px 0;
}
.b2b-header__logo img {
    max-height: 44px;
    width: auto;
}
.b2b-header__logo h1 { margin:0; line-height:1; }

/* ---- Center: display:contents so children participate in grid ---- */
.b2b-header__center { display: contents; }

/* ---- Search bar ---- */
.b2b-header #_desktop_search {
    grid-area: search;
    display: flex !important;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 !important;
    padding: 0 !important;
    order: unset;
}
.b2b-header #_desktop_search .search-widgets { width: 100%; }
.b2b-header #_desktop_search .search-widgets form {
    display: flex !important;
    align-items: center;
    background: #f5f5f5 !important;
    border-radius: 8px !important;
    height: 40px !important;
    border: 1px solid #ddd !important;
    overflow: hidden;
    position: relative;
}
.b2b-header #_desktop_search .search-widgets input[type="text"],
.b2b-header #_desktop_search .search-widgets .js-search-input {
    flex: 1 !important;
    border: none !important;
    outline: none !important;
    padding: 8px 14px 8px 40px !important;
    font-size: 14px !important;
    background: transparent !important;
    color: #333 !important;
    height: 100% !important;
    box-shadow: none !important;
    min-width: 0 !important;
}
.b2b-header #_desktop_search .search-widgets input::placeholder,
.b2b-header #_desktop_search .search-widgets .js-search-input::placeholder {
    color: #999 !important;
}
.b2b-header #_desktop_search .search-widgets .js-search-icon {
    color: #555 !important;
    padding: 0 10px !important;
    cursor: pointer;
    font-size: 22px !important;
    flex-shrink: 0;
}
.b2b-header #_desktop_search .search-widgets .clear { color:#999; padding:0 8px; }
.b2b-header #_desktop_search .search-widgets__dropdown {
    top: 100%;
    margin-top: 4px;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ---- Main menu row ---- */
.b2b-header .main-menu {
    grid-area: menu;
    width: 100%;
}
.b2b-header .main-menu .d-none.d-xl-block { display: block !important; }
.b2b-header .main-menu .d-xl-none { display: none !important; }
.b2b-header .main-menu .main-menu__tree {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0; margin: 0;
    list-style: none;
    height: 42px;
    border-top: 1px solid #e5e5e5;
}
.b2b-header .main-menu .main-menu__tree__item { height: 100%; }
.b2b-header .main-menu .main-menu__tree__link {
    color: #333 !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0 16px;
    display: flex;
    align-items: center;
    height: 100%;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.b2b-header .main-menu .main-menu__tree__link:hover {
    background: #f5f5f5;
    color: #000 !important;
}
.b2b-header .main-menu .main-menu__tree .current > .main-menu__tree__link {
    background: #f0f0f0;
    color: #000 !important;
    border-bottom: 2px solid #333;
}
.b2b-header .main-menu .menu-container {
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-top: 2px solid #333;
}
.b2b-header .main-menu .menu-container .dropdown-item { color:#333; padding:8px 16px; font-size:13px; }
.b2b-header .main-menu .menu-container .dropdown-item:hover { color:#000; background:#f8f9fa; }

/* ---- Right side actions ---- */
.b2b-header__actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    gap: 6px;
}
.b2b-header__actions .b2b-order-btn { order: 0; }
.b2b-header__actions #_desktop_language_selector { order: 1; }
.b2b-header__actions #_desktop_currency_selector { order: 2; }
.b2b-header__actions #b2b-header-wishlist { order: 3; }
.b2b-header__actions #_desktop_cart { order: 4; }
.b2b-header__actions #_desktop_user_info { order: 5; }

/* ---- Order button ---- */
.b2b-order-btn a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--b2b-main-color, #b12704);
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 6px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.2s, box-shadow 0.2s;
    line-height: 1;
}
.b2b-order-btn a:hover {
    background: var(--b2b-main-color-dark, #8e1f03);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.b2b-order-btn a:hover,
.b2b-order-btn a:hover .material-icons {
    color: #fff !important;
}
.b2b-order-btn a .material-icons {
    font-size: 16px;
    color: #fff !important;
}

.b2b-header .header-block__action-btn {
    color: #444 !important;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none !important;
    white-space: nowrap;
    font-size: 13px;
}
.b2b-header .header-block__action-btn:hover {
    background: #f0f0f0;
    color: #000 !important;
    text-decoration: none !important;
}
.b2b-header .header-block__icon { font-size: 22px; color: inherit !important; }
.b2b-header .header-block__title { color: inherit; font-size: 12px; font-weight: 500; }

.b2b-header .header-block__badge {
    background: #333;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
    padding: 0 5px;
}

/* ---- Currency/Language selectors ---- */
.b2b-header .language-selector__wrapper,
.b2b-header .currency-selector__wrapper {
    display: flex;
    align-items: center;
}
.b2b-header .language-selector__wrapper .form-select,
.b2b-header .currency-selector__wrapper .form-select {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    padding: 4px 24px 4px 8px;
    height: 28px;
    line-height: 1;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fafafa;
    background-size: 12px;
    background-position: right 4px center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    min-width: 0;
    -webkit-appearance: none;
}
.b2b-header .language-selector__wrapper .form-select:hover,
.b2b-header .currency-selector__wrapper .form-select:hover {
    border-color: #bbb;
    background-color: #f0f0f0;
    color: #333;
}
.b2b-header .language-selector__wrapper .form-select:focus,
.b2b-header .currency-selector__wrapper .form-select:focus {
    border-color: var(--b2b-main-color, #b12704);
    box-shadow: 0 0 0 2px rgba(177,39,4,0.15);
    outline: none;
}

/* ---- User dropdown ---- */
.b2b-header .user-info .dropdown-menu {
    border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border:1px solid #eee; margin-top: 8px;
}
.b2b-header .user-info .dropdown-item { color:#333; font-size:13px; padding:8px 16px; }
.b2b-header .user-info .dropdown-item:hover { color:#000; background:#f8f9fa; }

/* ---- Hide old header-top ---- */
.header-top { display: none !important; }

/* ---- Header responsive ---- */
@media (max-width: 991px) {
    .b2b-header__row { gap: 0 12px; }
    .b2b-header #_desktop_search { max-width: 350px; }
    .b2b-header .header-block__title { display: none !important; }
    .b2b-header .main-menu .main-menu__tree__link { padding: 0 10px; font-size: 12px; }
    .b2b-order-btn a { font-size: 10px; padding: 6px 10px; }
    .b2b-order-btn a .material-icons { font-size: 14px; }
}
@media (max-width: 767px) {
    .b2b-header { display: none !important; }
}

/* ===================================================================
   CART MODAL — "Product added to cart" (ps_shoppingcart)
   =================================================================== */

.blockcart-modal .modal-dialog { max-width: 950px; }
.blockcart-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.18);
}
.blockcart-modal .modal-header {
    align-items: center;
    gap: 0.25rem;
    padding: 1.15rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}
.blockcart-modal .modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
}
.blockcart-modal .modal-title .material-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0 !important;
    border-radius: 50%;
    background: var(--b2b-main-color, #b12704);
    color: #fff;
    font-size: 1.25rem;
}
.blockcart-modal .btn-close { opacity: 0.5; transition: opacity 0.2s ease; }
.blockcart-modal .btn-close:hover { opacity: 1; }
.blockcart-modal .modal-body { padding: 1.5rem; }
.blockcart-modal .product-image {
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    background: #fafafa;
}
.blockcart-modal .product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}
.blockcart-modal .product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--b2b-main-color, #b12704);
    margin-bottom: 0.5rem;
}
.blockcart-modal .blockcart-modal__property,
.blockcart-modal .product-quantity {
    font-size: 0.875rem;
    color: #6b7280;
}
.blockcart-modal .product-quantity strong,
.blockcart-modal .blockcart-modal__property strong { color: #1a1a1a; }
.blockcart-modal .blockcart-modal__summery {
    background: #f8f9fb;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
    height: 100%;
}
.blockcart-modal .blockcart-modal__summery > p {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.85rem;
}
.blockcart-modal .blockcart-modal__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.3rem 0;
    font-size: 0.9rem;
    color: #374151;
}
.blockcart-modal .blockcart-modal__total .label { color: #6b7280; }
.blockcart-modal .blockcart-modal__total .value {
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
}
.blockcart-modal .blockcart-modal__total.product-total {
    margin-top: 0.5rem;
    padding-top: 0.7rem;
    border-top: 1px solid #e5e7eb;
    font-size: 1.05rem;
}
.blockcart-modal .blockcart-modal__total.product-total .label {
    font-weight: 600;
    color: #1a1a1a;
}
.blockcart-modal .blockcart-modal__total.product-total .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--b2b-main-color, #b12704);
}
.blockcart-modal .modal-footer {
    padding: 1.15rem 1.5rem;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}
.blockcart-modal .btn-primary {
    background: var(--b2b-main-color, #b12704);
    border-color: var(--b2b-main-color, #b12704);
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}
.blockcart-modal .btn-primary:hover,
.blockcart-modal .btn-primary:focus {
    background: var(--b2b-main-color-dark, #9a2003);
    border-color: var(--b2b-main-color-dark, #9a2003);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
    transform: translateY(-1px);
}
.blockcart-modal .btn-outline-primary {
    color: var(--b2b-main-color, #b12704);
    border-color: var(--b2b-main-color, #b12704);
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}
.blockcart-modal .btn-outline-primary:hover,
.blockcart-modal .btn-outline-primary:focus {
    background: var(--b2b-main-color, #b12704);
    border-color: var(--b2b-main-color, #b12704);
    color: #fff;
}
@media (max-width: 575.98px) {
    .blockcart-modal .modal-body { padding: 1.15rem; }
    .blockcart-modal .blockcart-modal__summery { margin-top: 1rem; }
}

/* Collapse breadcrumb bar when only "Strona główna" (depth 1).
   Keep it in flow so the theme's margin-bottom: 2rem still spaces
   the header from the columns – display:none would eat that margin. */
.breadcrumb__wrapper[data-depth="1"] {
    height: 0;
    overflow: hidden;
    padding: 0;
    background: transparent;
}

/* B2B Consistent Layout - widen page container to match header */
#wrapper > .container {
    max-width: none;
    padding-left: 150px;
    padding-right: 150px;
}
@media (max-width: 1400px) {
    #wrapper > .container {
        padding-left: 40px;
        padding-right: 40px;
    }
}
@media (max-width: 992px) {
    #wrapper > .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* B2B Panel pages — edge-to-edge layout (no container padding).
   Uses :has() + ID fallback for module pages. */
body:has(.b2b-panel-layout) #wrapper > .container,
body[id^="module-b2bpanel"] #wrapper > .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
}
body:has(.b2b-panel-layout) #wrapper > .container > .row,
body[id^="module-b2bpanel"] #wrapper > .container > .row {
    margin: 0 !important;
}
body:has(.b2b-panel-layout) #wrapper > .container > .row > #left-column,
body:has(.b2b-panel-layout) #wrapper > .container > .row > #right-column,
body[id^="module-b2bpanel"] #wrapper > .container > .row > #left-column,
body[id^="module-b2bpanel"] #wrapper > .container > .row > #right-column {
    display: none !important;
}
body:has(.b2b-panel-layout) #wrapper > .container > .row > #content-wrapper,
body[id^="module-b2bpanel"] #wrapper > .container > .row > #content-wrapper {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}
body:has(.b2b-panel-layout) #content.page-content,
body[id^="module-b2bpanel"] #content.page-content {
    padding: 0 !important;
    margin: 0 !important;
}
body:has(.b2b-panel-layout) .breadcrumb__wrapper,
body[id^="module-b2bpanel"] .breadcrumb__wrapper {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}
body:has(.b2b-panel-layout) #wrapper,
body:has(.b2b-panel-layout) #wrapper.wrapper,
body[id^="module-b2bpanel"] #wrapper,
body[id^="module-b2bpanel"] #wrapper.wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
body:has(.b2b-panel-layout) #content-wrapper,
body[id^="module-b2bpanel"] #content-wrapper {
    margin: 0 !important;
    padding: 0 !important;
}
body:has(.b2b-panel-layout) .notifications-container,
body[id^="module-b2bpanel"] .notifications-container {
    display: none;
}
/* Remove white strip between panel and footer */
body:has(.b2b-panel-layout) #wrapper,
body[id^="module-b2bpanel"] #wrapper {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    background: #f8f9fb;
}

/* --- Logo centered over the sidebar column (panel pages, desktop only) ---
   Sidebar is 260px wide starting at x=0. Drop the header's left padding and
   make the logo column exactly 260px with centered content so the logo lines
   up over the sidebar. --- */
@media (min-width: 992px) {
    body:has(.b2b-panel-layout) .b2b-header .container-md,
    body[id^="module-b2bpanel"] .b2b-header .container-md {
        padding-left: 0 !important;
    }
    body:has(.b2b-panel-layout) .b2b-header__logo,
    body[id^="module-b2bpanel"] .b2b-header__logo {
        width: 260px;
        min-width: 260px;
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Left column on listing pages – wide enough for email / contact info */
#wrapper > .container > .row > #left-column {
    flex: 0 0 20%;
    max-width: 20%;
}
#wrapper > .container > .row > #content-wrapper {
    flex: 0 0 80%;
    max-width: 80%;
}
@media (max-width: 1200px) {
    #wrapper > .container > .row > #left-column {
        flex: 0 0 25%;
        max-width: 25%;
    }
    #wrapper > .container > .row > #content-wrapper {
        flex: 0 0 75%;
        max-width: 75%;
    }
}

/* Remove Hummingbird default left-column padding */
.layout-left-column #left-column {
    padding-right: 0 !important;
}

.customer-panel {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 20px 150px;
    width: 100%;
}

/* Left navigation column */
.customer-panel-nav {
    width: 280px;
    min-width: 280px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 20px;
}

/* Account Manager Block */
.b2b-manager-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.b2b-manager-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
}

.b2b-manager-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.b2b-manager-details {
    width: 100%;
}

.b2b-manager-title {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.b2b-manager-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.b2b-manager-email,
.b2b-manager-phone {
    font-size: 13px;
    margin-bottom: 5px;
}

.b2b-manager-email a,
.b2b-manager-phone a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.b2b-manager-email a:hover,
.b2b-manager-phone a:hover {
    color: var(--b2b-main-color);
}

.b2b-manager-icon {
    width: 14px;
    height: 14px;
}

/* Navigation Groups - SCOPED to .customer-panel */
.customer-panel .nav-group {
    margin-bottom: 20px;
}

.customer-panel .nav-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 2px solid var(--b2b-main-color);
    margin-bottom: 10px;
}

.customer-panel .nav-group-header svg {
    width: 24px;
    height: 24px;
    color: var(--b2b-main-color);
}

.customer-panel .nav-group-header span {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.customer-panel .nav-group-links {
    display: flex;
    flex-direction: column;
}

.customer-panel-option {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.customer-panel-option:hover {
    color: var(--b2b-main-color);
    padding-left: 5px;
}

.customer-panel-option div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.customer-panel-option-count {
    background: var(--b2b-main-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Discount Tier Badge */
.b2b-tier-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.b2b-tier--standard {
    background: #6c757d;
    color: #fff;
}

.b2b-tier--premium {
    background: #ffc107;
    color: #333;
}

.b2b-tier--vip {
    background: #28a745;
    color: #fff;
}

/* Right column - Tables */
.customer-panel > .d-flex:last-child {
    flex: 1;
}

.customer-panel-table {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.customer-panel-table-header {
    background: var(--b2b-main-color);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.customer-panel-table-header:hover {
    background: var(--b2b-main-color-dark);
    color: #fff;
    text-decoration: none;
}

.customer-panel-table-header i {
    font-size: 20px;
}

.customer-panel-table-header span {
    font-weight: 600;
}

.customer-panel-table-header-count {
    background: rgba(255,255,255,0.2);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: auto;
}

.customer-panel-table table {
    width: 100%;
    border-collapse: collapse;
}

.customer-panel-table thead td,
.customer-panel-table thead th {
    background: #f8f9fa;
    padding: 12px 15px;
    font-weight: 600;
    font-size: 13px;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    text-align: left;
}

.customer-panel-table tbody td {
    padding: 12px 15px;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.customer-panel-table tbody tr:hover {
    background: #f8f9fa;
}

.customer-panel-table .label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

/* More orders link - SCOPED to .customer-panel */
.customer-panel .more-orders-wrapper {
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.customer-panel .more-orders-wrapper .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Flexbox utilities - SCOPED to .customer-panel only */
.customer-panel .d-flex {
    display: flex;
}

.customer-panel .d-flex-row {
    flex-direction: row;
}

.customer-panel .d-flex-column {
    flex-direction: column;
}

.customer-panel .align-items-center {
    align-items: center;
}

.customer-panel .justify-content-center {
    justify-content: center;
}

.customer-panel .justify-content-space-between {
    justify-content: space-between;
}

/* Modal styles - SCOPED to #requestLimitModal only */
#requestLimitModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
}

#requestLimitModal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

#requestLimitModal .modal-dialog {
    background: #fff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
}

#requestLimitModal .modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#requestLimitModal .modal-title {
    margin: 0;
    font-size: 18px;
}

#requestLimitModal .modal-body {
    padding: 20px;
}

#requestLimitModal .modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

/* Invoice download icon */
.invoice-download-cell {
    text-align: center;
}

.invoice-download-cell a {
    color: var(--b2b-main-color);
}

.invoice-download-cell a:hover {
    color: var(--b2b-main-color-dark);
}

/* Responsive */
@media (max-width: 1400px) {
    .customer-panel {
        padding: 20px 40px;
    }
}

@media (max-width: 992px) {
    .customer-panel {
        flex-direction: column;
        padding: 20px 16px;
    }

    .customer-panel-nav {
        width: 100%;
        min-width: auto;
    }

    .customer-panel-table table {
        display: block;
        overflow-x: auto;
    }
}

/* Icons fallback */
.b2b-cart-white,
.b2b-truck-white {
    display: inline-block;
    width: 20px;
    height: 20px;
}

/* Details button in orders table */
.b2b-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--b2b-main-color, #b12704);
    border: 1px solid var(--b2b-main-color, #b12704);
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.b2b-details-btn:hover {
    background: var(--b2b-main-color, #b12704);
    color: #fff;
    text-decoration: none;
}

/* Prevent date columns from wrapping */
.customer-panel-table td.b2b-nowrap,
.customer-panel-table th.b2b-nowrap {
    white-space: nowrap;
}

/* ===== Checkout/Cart Account Manager Block ===== */
/* ===== B2B Checkout Manager Widget (matches contact page design) ===== */
body#checkout .b2b-checkout-manager {
    background: #fff;
    border: 1px solid #f0f0f3;
    border-radius: 12px;
    padding: 1.5rem !important;
    max-width: 280px;
    box-sizing: border-box;
}

.b2b-checkout-manager__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.b2b-checkout-manager__photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.6rem;
}

.b2b-checkout-manager__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    margin-bottom: 0.6rem;
}

.b2b-checkout-manager__label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #a1b71c;
    margin-bottom: 0.1rem;
}

.b2b-checkout-manager__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.45rem;
}

.b2b-checkout-manager__link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #6b7280;
    text-decoration: none;
    margin-top: 0.15rem;
    transition: color 0.15s ease;
}

.b2b-checkout-manager__link:hover {
    color: #a1b71c;
}

.b2b-checkout-manager__link svg {
    flex-shrink: 0;
    color: #9ca3af;
}

/* Cart Summary - Manager + Totals side by side */
@media (min-width: 992px) {
    body#checkout .cart-summary {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        gap: 15px;
    }

    body#checkout .cart-summary .b2b-checkout-manager {
        flex: 0 0 auto !important;
        order: -1 !important;
        margin: 0 !important;
    }

    body#checkout .cart-summary .cart-detailed-totals {
        flex: 0 0 430px !important;
        margin-left: auto !important;
        order: 1 !important;
    }
}

/* ===== B2B Checkout Simplification ===== */
/* Hide business/private customer toggle — only registered companies buy here */
body#checkout .business-private-checkboxes {
    display: none !important;
}
body#checkout .business-fields-separator,
body#checkout .private-fields-separator {
    display: none !important;
}

/* Always show delivery address block */
body#checkout #thecheckout-address-delivery {
    display: block !important;
}

/* Hide "Dostawa pod inny adres" / "Ship to different address" toggle */
body#checkout #thecheckout-address-invoice .second-address {
    display: none !important;
}

/* Invoice address: hide address dropdown (FV data is fixed from account) */
body#checkout #thecheckout-address-invoice .customer-addresses {
    display: none !important;
}

/* Invoice address: lock all form fields (CSS — survives AJAX refreshes) */
body#checkout #thecheckout-address-invoice .form-fields {
    position: relative;
}
body#checkout #thecheckout-address-invoice .form-fields::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: default;
}
body#checkout #thecheckout-address-invoice .form-fields input,
body#checkout #thecheckout-address-invoice .form-fields select.form-control,
body#checkout #thecheckout-address-invoice .form-fields textarea {
    background: #f8f9fa !important;
    border-color: #e9ecef !important;
    color: #495057 !important;
    pointer-events: none !important;
}

/* Hide id_address field in delivery form */
body#checkout #thecheckout-address-delivery .form-group.id_address {
    display: none !important;
}

/* Hide delivery block's own main header (redundant under TWOJE DANE) */
body#checkout #thecheckout-address-delivery .block-header.address-name-header {
    display: none !important;
}

/* B2B checkout sub-section labels via ::before on inner-wrapper */
body#checkout #thecheckout-address-invoice .inner-wrapper::before,
body#checkout #thecheckout-address-delivery .inner-wrapper::before {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    padding: 12px 15px 8px;
    border-bottom: 1px solid #f0f0f3;
    margin-bottom: 10px;
}
body#checkout #thecheckout-address-invoice .inner-wrapper::before {
    content: "Dane do faktury";
}
body#checkout #thecheckout-address-delivery .inner-wrapper::before {
    content: "Dane wysyłki";
}

/* ===== B2B Employees Management Panel ===== */
.b2b-employees-page {
    max-width: 1000px;
    margin: 0 auto;
}

.b2b-employees-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--b2b-main-color, #b12704);
}

.b2b-employees-stats {
    display: flex;
    gap: 20px;
}

.b2b-employees-stats .stat-item {
    font-size: 14px;
    color: #666;
}

.b2b-employees-stats .stat-item strong {
    color: #333;
    font-size: 16px;
}

.b2b-employees-stats .stat-pending {
    color: #dc3545;
}

.b2b-employees-stats .stat-pending strong {
    color: #dc3545;
}

.b2b-btn-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--b2b-main-color, #b12704);
    border-color: var(--b2b-main-color, #b12704);
}

.b2b-btn-add:hover {
    background: var(--b2b-main-color-dark, #9a2003);
    border-color: var(--b2b-main-color-dark, #9a2003);
}

/* Employees Table */
.b2b-employees-table-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.b2b-employees-table {
    width: 100%;
    border-collapse: collapse;
}

.b2b-employees-table thead th {
    background: #f8f9fa;
    padding: 12px 15px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
    text-align: left;
}

.b2b-employees-table tbody td {
    padding: 15px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.b2b-employees-table tbody tr:hover {
    background: #fafafa;
}

.b2b-employees-table tbody tr.inactive {
    opacity: 0.6;
}

.b2b-employees-table .employee-name strong {
    color: #333;
}

.b2b-employees-table .employee-email a {
    color: #666;
    text-decoration: none;
}

.b2b-employees-table .employee-email a:hover {
    color: var(--b2b-main-color, #b12704);
}

/* Role Badge */
.role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.role-badge.role-employee {
    background: #e9ecef;
    color: #495057;
}

.role-badge.role-manager {
    background: #d4edda;
    color: #155724;
}

/* Approval Badge */
.approval-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.approval-badge.requires {
    color: #856404;
}

.approval-badge.not-required {
    color: #155724;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Action Buttons */
.employee-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    color: #666;
    background: #f8f9fa;
    transition: all 0.2s;
}

.btn-action:hover {
    color: #fff;
    background: var(--b2b-main-color, #b12704);
}

.btn-action.btn-toggle:hover {
    background: #6c757d;
}

.btn-action.btn-delete:hover {
    background: #dc3545;
}

/* Empty State */
.b2b-employees-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.b2b-employees-empty svg {
    color: #dee2e6;
    margin-bottom: 20px;
}

.b2b-employees-empty h3 {
    color: #333;
    margin-bottom: 10px;
}

.b2b-employees-empty p {
    color: #666;
    margin-bottom: 20px;
}

/* Employee Form Page */
.b2b-employee-form-page {
    max-width: 700px;
    margin: 0 auto;
}

.b2b-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 14px;
}

.b2b-back-link:hover {
    color: var(--b2b-main-color, #b12704);
}

.b2b-employee-form-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 30px;
}

.employee-info-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.employee-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--b2b-main-color, #b12704);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.employee-info h4 {
    margin: 0 0 4px 0;
    color: #333;
}

.employee-info .employee-email {
    color: #666;
    font-size: 14px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.form-row {
    display: flex;
    gap: 15px;
    margin: 0 -7.5px;
}

.form-row .form-group {
    flex: 1;
    padding: 0 7.5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #333;
    margin-bottom: 6px;
}

.form-group label .required {
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--b2b-main-color, #b12704);
    outline: none;
}

.form-text {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* Role Selector */
.role-selector {
    display: flex;
    gap: 15px;
}

.role-option {
    flex: 1;
    cursor: pointer;
}

.role-option input {
    display: none;
}

.role-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid #eee;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s;
}

.role-card svg {
    color: #999;
    margin-bottom: 10px;
}

.role-card strong {
    color: #333;
    display: block;
    margin-bottom: 4px;
}

.role-card span {
    font-size: 12px;
    color: #888;
}

.role-option input:checked + .role-card {
    border-color: var(--b2b-main-color, #b12704);
    background: rgba(177, 39, 4, 0.05);
}

.role-option input:checked + .role-card svg {
    color: var(--b2b-main-color, #b12704);
}

/* Approval Checkbox */
.approval-checkbox .custom-control-label {
    display: flex;
    flex-direction: column;
}

.checkbox-description {
    font-weight: normal;
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.form-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.form-actions .btn-primary {
    background: var(--b2b-main-color, #b12704);
    border-color: var(--b2b-main-color, #b12704);
}

.form-actions .btn-primary:hover {
    background: var(--b2b-main-color-dark, #9a2003);
    border-color: var(--b2b-main-color-dark, #9a2003);
}

/* Alert Styles */
.b2b-employee-form-page .alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.b2b-employee-form-page .alert-success {
    background: #d4edda;
    color: #155724;
}

.b2b-employee-form-page .alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.b2b-employee-form-page .alert ul {
    margin: 0;
    padding-left: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .b2b-employees-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .role-selector {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
    }

    .b2b-employees-table {
        display: block;
        overflow-x: auto;
    }
}

/* ===== B2B Order Approvals Panel ===== */
.b2b-approvals-page {
    max-width: 1000px;
    margin: 0 auto;
}

.b2b-approvals-nav {
    margin-bottom: 20px;
}

.b2b-approvals-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    background: #f8f9fa;
    transition: all 0.2s;
}

.b2b-approvals-nav .nav-link:hover {
    color: var(--b2b-main-color, #b12704);
    background: #fff;
}

.b2b-section {
    margin-bottom: 30px;
}

.b2b-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--b2b-main-color, #b12704);
}

.b2b-section-title svg {
    color: var(--b2b-main-color, #b12704);
}

.badge-pending {
    background: #dc3545;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* Approvals Table */
.b2b-approvals-table-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.b2b-approvals-table {
    width: 100%;
    border-collapse: collapse;
}

.b2b-approvals-table thead th {
    background: #f8f9fa;
    padding: 12px 15px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
    text-align: left;
}

.b2b-approvals-table tbody td {
    padding: 15px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.b2b-approvals-table tbody tr:hover {
    background: #fafafa;
}

.b2b-approvals-table .order-ref strong {
    color: var(--b2b-main-color, #b12704);
}

.b2b-approvals-table .order-total strong {
    color: #333;
}

.b2b-approvals-table .employee-name small {
    font-size: 12px;
}

/* Approval Actions */
.approval-actions {
    display: flex;
    gap: 8px;
}

.approval-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
}

.approval-actions .btn-success {
    background: #28a745;
    border-color: #28a745;
}

.approval-actions .btn-danger {
    background: #dc3545;
    border-color: #dc3545;
}

/* Status Badges for History */
.b2b-approvals-table .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.b2b-approvals-table .status-badge.approved {
    background: #d4edda;
    color: #155724;
}

.b2b-approvals-table .status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}

.b2b-approvals-table .status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

/* Empty State */
.b2b-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.b2b-empty-state svg {
    color: #28a745;
    margin-bottom: 20px;
}

.b2b-empty-state h3 {
    color: #333;
    margin-bottom: 10px;
}

.b2b-empty-state p {
    color: #666;
}

/* Modal Styles */
.b2b-approvals-page .modal-content {
    border-radius: 8px;
}

.b2b-approvals-page .modal-header {
    border-bottom: 1px solid #eee;
}

.b2b-approvals-page .modal-footer {
    border-top: 1px solid #eee;
}

/* History Table */
.history-table tbody td {
    padding: 12px 15px;
}

.history-table .approval-date {
    color: #888;
    font-size: 13px;
}

/* Branch Checkboxes */
.form-hint {
    color: #666;
    font-size: 13px;
    margin-bottom: 10px;
}

.branch-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.branch-checkbox {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
}

.branch-checkbox:hover {
    border-color: var(--b2b-main-color, #b12704);
    background: #fff;
}

.branch-checkbox .custom-control-label {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.branch-checkbox .custom-control-label strong {
    color: #333;
    font-size: 14px;
}

.branch-checkbox .branch-address {
    color: #666;
    font-size: 12px;
    margin-top: 2px;
}

.branch-checkbox .custom-control-input:checked ~ .custom-control-label {
    color: var(--b2b-main-color, #b12704);
}

.branch-checkbox .custom-control-input:checked ~ .custom-control-label strong {
    color: var(--b2b-main-color, #b12704);
}

/* ==========================================================================
   CASHBACK B2B WIDGET – sidebar compact
   ========================================================================== */
.cbc-widget {
    padding: 12px 15px;
}

.cbc-widget-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.cbc-widget-balance-label {
    font-size: 12px;
    color: #666;
}

.cbc-widget-balance-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--b2b-main-color, #b12704);
}

.cbc-widget-progress {
    margin-bottom: 8px;
}

.cbc-widget-progress-label {
    font-size: 11px;
    color: #555;
    margin-bottom: 3px;
    display: block;
}

.cbc-widget-progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 2px;
}

.cbc-widget-progress-fill {
    height: 100%;
    background: var(--b2b-main-color, #b12704);
    border-radius: 3px;
    transition: width .4s ease;
}

.cbc-widget-progress-text {
    font-size: 10px;
    color: #888;
    text-align: right;
    display: block;
}

.cbc-widget-payout-alert {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.cbc-widget-payout-alert svg {
    flex-shrink: 0;
}

/* ==========================================================================
   CASHBACK B2B WIDGET – home right-column (full)
   ========================================================================== */
.cbc-home-targets {
    padding: 0;
}

.cbc-home-target-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.cbc-home-target-row:last-child {
    border-bottom: none;
}

.cbc-home-target-info {
    flex: 1;
    min-width: 0;
}

.cbc-home-target-name {
    font-weight: 600;
    font-size: 13px;
    color: #333;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cbc-home-target-amounts {
    font-size: 11px;
    color: #888;
}

.cbc-home-target-progress {
    flex: 0 0 120px;
}

.cbc-home-progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 3px;
}

.cbc-home-progress-fill {
    height: 100%;
    background: var(--b2b-main-color, #b12704);
    border-radius: 4px;
    transition: width .4s ease;
}

.cbc-home-progress-fill--success {
    background: #43a047;
}

.cbc-home-progress-fill--warning {
    background: #fb8c00;
}

.cbc-home-progress-pct {
    font-size: 10px;
    color: #888;
    text-align: right;
    display: block;
}

.cbc-home-target-cashback {
    flex: 0 0 90px;
    text-align: right;
}

.cbc-home-target-cashback-label {
    font-size: 10px;
    color: #999;
    display: block;
}

.cbc-home-target-cashback-amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--b2b-main-color, #b12704);
}

.cbc-home-widget-payout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #e8f5e9;
    border-radius: 0 0 8px 8px;
}

.cbc-home-widget-payout span {
    font-size: 13px;
    font-weight: 600;
    color: #2e7d32;
}

.cbc-home-payout-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #43a047;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background .2s;
}

.cbc-home-payout-btn:hover {
    background: #388e3c;
    color: #fff;
    text-decoration: none;
}

/* Responsive: stack target rows on small screens */
@media (max-width: 576px) {
    .cbc-home-target-row {
        flex-wrap: wrap;
    }
    .cbc-home-target-progress {
        flex: 1 1 100%;
        order: 3;
    }
    .cbc-home-target-cashback {
        text-align: left;
    }
}

/* ===================================================================
   B2B PANEL LAYOUT - Professional sidebar + content
   =================================================================== */

.b2b-panel-layout {
    display: flex;
    min-height: 100vh;
    background: #f8f9fb;
}

/* --- Home-page panel widget (under the slider) ---
   Self-contained card; deliberately NOT .b2b-panel-layout so the page-level
   edge-to-edge overrides don't affect the rest of the home page. --- */
.b2b-home-panel {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 0 2rem;
}
.b2b-home-panel .b2b-sidebar {
    position: static;
    height: auto;
    min-height: 0;
}
.b2b-home-panel .b2b-panel-content {
    min-height: 0;
}
@media (max-width: 991px) {
    .b2b-home-panel { flex-direction: column; }
}

/* --- Sidebar — Light clean theme (Streamline-inspired) --- */
.b2b-sidebar {
    width: 260px;
    min-width: 260px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}
.b2b-sidebar::-webkit-scrollbar { width: 4px; }
.b2b-sidebar::-webkit-scrollbar-track { background: transparent; }
.b2b-sidebar::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

/* --- Account manager widget (top of sidebar) --- */
.b2b-sidebar-manager {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.15rem;
    padding: 1.5rem 1.25rem 1.35rem;
    border-bottom: 1px solid #f0f0f3;
}
.b2b-sm-photo,
.b2b-sm-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
}
.b2b-sm-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #9ca3af;
}
.b2b-sm-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    font-weight: 500;
}
.b2b-sm-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.35rem;
}
.b2b-sm-contact {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: #6b7280;
    text-decoration: none;
    line-height: 1.6;
}
.b2b-sm-contact svg { stroke: #c0c5ce; flex-shrink: 0; margin-top: 2px; }
.b2b-sm-contact:hover { color: #a1b71c; text-decoration: none; }
.b2b-sm-contact:hover svg { stroke: #a1b71c; }
.b2b-sm-contact span { word-break: break-word; }

.b2b-sidebar-nav {
    padding: 0.75rem 0;
    flex: 1;
}

.b2b-sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.5;
    transition: all 0.15s ease;
    position: relative;
    border-left: none;
    border-radius: 7px;
    background: #f8f9fb;
}

.b2b-sidebar-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    stroke: #c0c5ce;
    transition: stroke 0.15s ease;
}

.b2b-sidebar-item:hover {
    background: #a1b71c;
    color: #fff;
    text-decoration: none;
    border-left: none;
}

.b2b-sidebar-item:hover svg {
    stroke: #fff;
}

.b2b-sidebar-item.active {
    background: #a1b71c;
    color: #fff;
    font-weight: 600;
    border-left: none;
}

.b2b-sidebar-item.active svg {
    stroke: #fff;
}

.b2b-sidebar-item.active:hover {
    background: #8fa518;
    color: #fff;
}

.b2b-sidebar-item--logout {
    color: #b0b5bf;
    margin-top: 0.25rem;
}

.b2b-sidebar-item--logout svg {
    stroke: #d1d5db;
}

.b2b-sidebar-item--logout span {
    font-size: 0.82rem;
}

.b2b-sidebar-item--logout:hover {
    background: #a1b71c;
    color: #fff;
    border-left: none;
}

.b2b-sidebar-item--logout:hover svg {
    stroke: #fff;
}

.b2b-sidebar-badge {
    margin-left: auto;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 10px;
    padding: 0 6px;
}

.b2b-sidebar-item.active .b2b-sidebar-badge {
    background: #ef4444;
    color: #fff;
}

.b2b-sidebar-divider {
    height: 1px;
    background: #f0f0f3;
    margin: 0.5rem 1.15rem;
}

/* --- Panel content area --- */
.b2b-panel-content {
    flex: 1;
    padding: 2.5rem 3rem;
    min-width: 0;
    background: #f8f9fb;
}

.b2b-page-heading {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1.75rem;
}

/* ===================================================================
   DASHBOARD
   =================================================================== */

.b2b-dash-welcome {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.b2b-dash-welcome h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.b2b-dash-tier {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Stats row */
.b2b-dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.b2b-dash-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}

.b2b-dash-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.b2b-dash-stat-icon--orders {
    background: #dbeafe;
}
.b2b-dash-stat-icon--orders svg { stroke: #2563eb; }

.b2b-dash-stat-icon--approvals {
    background: #fef3c7;
}
.b2b-dash-stat-icon--approvals svg { stroke: #d97706; }

.b2b-dash-stat-icon--employees {
    background: #d1fae5;
}
.b2b-dash-stat-icon--employees svg { stroke: #059669; }

.b2b-dash-stat-icon--cashback {
    background: #ede9fe;
}
.b2b-dash-stat-icon--cashback svg { stroke: #7c3aed; }

.b2b-dash-stat-data {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.b2b-dash-stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.b2b-dash-stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

/* Pending approvals alert */
.b2b-dash-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.b2b-dash-alert svg {
    stroke: #d97706;
    flex-shrink: 0;
}

.b2b-dash-alert strong {
    display: block;
    color: #92400e;
    font-size: 0.9rem;
}

.b2b-dash-alert a {
    color: #d97706;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}

.b2b-dash-alert a:hover {
    text-decoration: underline;
}

/* Section blocks */
.b2b-dash-section {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: none;
    margin-bottom: 1.75rem;
    overflow: hidden;
}

.b2b-dash-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid #f0f0f3;
}

.b2b-dash-section-header h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.b2b-dash-section-header h2 svg {
    stroke: #9ca3af;
    width: 18px;
    height: 18px;
}

.b2b-dash-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    background: #a1b71c;
    padding: 10px;
    border-radius: 7px;
}

.b2b-dash-link:hover {
    color: #fff;
    background: #8fa518;
    text-decoration: none;
}

/* Dashboard table */
.b2b-dash-table-wrap {
    overflow-x: auto;
}

.b2b-dash-table {
    width: 100%;
    border-collapse: collapse;
}

.b2b-dash-table th {
    padding: 0.75rem 1.5rem;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    background: transparent;
    border-bottom: 1px solid #f0f0f3;
    text-align: left;
}

.b2b-dash-table td {
    padding: 0.9rem 1.5rem;
    font-size: 0.875rem;
    color: #374151;
    border-bottom: 1px solid #f5f5f7;
    vertical-align: middle;
}

.b2b-dash-table tbody tr:hover {
    background: #f9fafb;
}

.b2b-dash-table tbody tr:last-child td {
    border-bottom: none;
}

.b2b-dash-status {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.b2b-dash-detail-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: none;
    border: 2px solid #a1b71c;
    padding: 5px 10px;
    border-radius: 7px;
    white-space: nowrap;
}

.b2b-dash-detail-link:hover {
    color: #fff;
    background: #a1b71c;
    text-decoration: none;
}

.b2b-dash-empty {
    padding: 3rem 2rem;
    text-align: center;
    color: #9ca3af;
}
.b2b-dash-empty svg {
    stroke: #d1d5db;
    margin-bottom: 0.85rem;
}
.b2b-dash-empty h4 {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
}
.b2b-dash-empty p {
    margin: 0;
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Count badge in section headers */
.b2b-dash-count {
    display: inline-block;
    min-width: 22px;
    padding: 0 7px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: #a1b71c;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    margin-left: 0.15rem;
}

/* "Placed by" badges (orders list) */
.b2b-placed-by {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 500;
}
.b2b-placed-by--own {
    background: #f1f5e8;
    color: #6b7e16;
}
.b2b-placed-by--employee {
    background: #f3f4f6;
    color: #6b7280;
}
.b2b-placed-by svg {
    stroke: currentColor;
    flex-shrink: 0;
}

/* ===================================================================
   ORDER DETAIL
   =================================================================== */

/* Top bar: back link */
.b2b-detail-top {
    margin-bottom: 1rem;
}
.b2b-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #9ca3af;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
}
.b2b-back-link:hover {
    color: #6b7280;
    text-decoration: none;
}

/* Header: title + reorder button */
.b2b-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}
.b2b-detail-header-title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}
.b2b-detail-header-title h1 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.b2b-detail-header-title h1 span {
    color: #6b7280;
    font-weight: 600;
}

/* Primary button (green) */
.b2b-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.1rem;
    background: #a1b71c;
    color: #fff;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    border: none;
    border-radius: 7px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease;
}
.b2b-btn-primary:hover {
    background: #8fa518;
    color: #fff;
    text-decoration: none;
}
.b2b-btn-primary:focus,
.b2b-btn-primary:active {
    outline: none;
    background: #8fa518;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(161, 183, 28, 0.25);
}
.b2b-btn-primary svg { stroke: #fff; }

.b2b-detail-employee-notice {
    margin-bottom: 1.75rem;
}

/* Two-column layout */
.b2b-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
}
.b2b-detail-main { min-width: 0; }
.b2b-detail-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.b2b-detail-side .b2b-dash-section { margin-bottom: 0; }

/* Product rows */
.b2b-detail-products th.text-right,
.b2b-detail-products td.text-right { text-align: right; }
.b2b-detail-products th.text-center,
.b2b-detail-products td.text-center { text-align: center; }
/* Secondary subtext line under a primary cell value (ref, email, postcode…) */
.b2b-detail-ref {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Totals */
.b2b-detail-totals {
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid #f0f0f3;
}
.b2b-detail-total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.875rem;
    color: #6b7280;
}
.b2b-detail-total-discount { color: #6b7e16; }
.b2b-detail-total-grand {
    margin-top: 0.4rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f3;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

/* Info rows (side) */
.b2b-detail-info {
    padding: 0.5rem 1.5rem 1rem;
}
.b2b-detail-info-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f5f5f7;
    font-size: 0.85rem;
}
.b2b-detail-info-row:last-child { border-bottom: none; }
.b2b-detail-info-label { color: #9ca3af; }
.b2b-detail-info-value { color: #374151; text-align: right; }

/* Address block */
.b2b-detail-address {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 1rem 1.5rem 1.25rem;
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.5;
}
.b2b-detail-address strong {
    color: #111827;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}
.b2b-detail-address-phone {
    margin-top: 0.4rem;
    color: #9ca3af;
}

/* Status history */
.b2b-detail-history {
    list-style: none;
    margin: 0;
    padding: 0.5rem 1.5rem 1rem;
}
.b2b-detail-history li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f5f5f7;
}
.b2b-detail-history li:last-child { border-bottom: none; }
.b2b-detail-history-date {
    color: #9ca3af;
    font-size: 0.82rem;
}

@media (max-width: 991px) {
    .b2b-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================================
   APPROVALS
   =================================================================== */

.b2b-approval-actions {
    display: inline-flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Small action buttons */
.b2b-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: all 0.15s ease;
    cursor: pointer;
}
.b2b-btn-approve {
    background: #a1b71c;
    color: #fff;
    border-color: #a1b71c;
}
.b2b-btn-approve:hover {
    background: #8fa518;
    border-color: #8fa518;
    color: #fff;
    text-decoration: none;
}
.b2b-btn-approve svg { stroke: #fff; }
.b2b-btn-reject {
    background: #fff;
    color: #b91c1c;
    border-color: #fca5a5;
}
.b2b-btn-reject:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
    text-decoration: none;
}
.b2b-btn-reject svg { stroke: currentColor; }

/* Approval status badges (subtle pills) */
.b2b-approval-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 600;
}
.b2b-approval-badge svg { flex-shrink: 0; }
.b2b-approval-badge--approved {
    background: #f1f5e8;
    color: #6b7e16;
}
.b2b-approval-badge--rejected {
    background: #fef2f2;
    color: #b91c1c;
}
.b2b-approval-badge--pending {
    background: #fffbeb;
    color: #b45309;
}
.b2b-approval-badge--muted {
    background: #f3f4f6;
    color: #6b7280;
}

/* ===================================================================
   BRANCHES (and shared row controls)
   =================================================================== */

/* Neutral count pill */
.b2b-pill {
    display: inline-block;
    min-width: 24px;
    padding: 0.15rem 0.5rem;
    text-align: center;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Row action icon buttons */
.b2b-row-actions {
    display: inline-flex;
    gap: 0.4rem;
    justify-content: flex-end;
}
.b2b-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #fff;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.15s ease;
}
.b2b-icon-btn:hover {
    border-color: #a1b71c;
    color: #a1b71c;
    text-decoration: none;
}
.b2b-icon-btn--danger:hover {
    border-color: #dc2626;
    color: #dc2626;
}

.b2b-branch-noaddr { color: #c0392b; font-size: 0.85rem; }

/* Secondary (cancel) button */
.b2b-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.1rem;
    background: #fff;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}
.b2b-btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
    text-decoration: none;
}

.b2b-settings-footer--split {
    justify-content: space-between;
}

/* Inline "add address first" warning inside a form field */
.b2b-inline-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    color: #92400e;
}
.b2b-inline-warning p { margin: 0 0 0.6rem; }
.b2b-btn-sm-inline {
    padding: 0.4rem 0.85rem !important;
    font-size: 0.8rem !important;
}

/* Native <select> styled like our inputs */
.b2b-panel-content select.b2b-form-input {
    appearance: auto;
    background-color: #fff;
    cursor: pointer;
}

/* ===================================================================
   EMPLOYEES
   =================================================================== */

.b2b-email-link { color: #6b7280; text-decoration: none; }
.b2b-email-link:hover { color: #a1b71c; text-decoration: none; }

/* "+N" badge for extra branches */
.b2b-branch-more {
    display: inline-block;
    margin-left: 0.2rem;
    padding: 0.05rem 0.4rem;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    vertical-align: middle;
}

/* Role pill in the list */
.b2b-role-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    background: #f3f4f6;
    color: #6b7280;
}
.b2b-role-pill--manager {
    background: #eef2d8;
    color: #6b7e16;
}

.b2b-empty-cta { margin-top: 1.25rem; }

/* Role selector cards (add/edit form) */
.b2b-role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    max-width: 520px;
}
.b2b-role-option { margin: 0; cursor: pointer; }
.b2b-role-option input { position: absolute; opacity: 0; pointer-events: none; }
.b2b-role-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 9px;
    transition: all 0.15s ease;
}
.b2b-role-card svg { stroke: #9ca3af; margin-bottom: 0.25rem; }
.b2b-role-card strong { font-size: 0.9rem; color: #111827; }
.b2b-role-card small { font-size: 0.78rem; color: #9ca3af; }
.b2b-role-option input:checked + .b2b-role-card {
    border-color: #a1b71c;
    background: #fafbf2;
}
.b2b-role-option input:checked + .b2b-role-card svg { stroke: #a1b71c; }
.b2b-role-option:hover .b2b-role-card { border-color: #d1d5db; }

/* Branch checkbox list */
.b2b-branch-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.b2b-branch-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    margin: 0;
    transition: border-color 0.15s ease;
}
.b2b-branch-check:hover { border-color: #d1d5db; }
.b2b-branch-check input {
    margin-top: 0.15rem;
    width: 17px;
    height: 17px;
    accent-color: #a1b71c;
    flex-shrink: 0;
}
.b2b-branch-check span { display: flex; flex-direction: column; gap: 0.1rem; }
.b2b-branch-check strong { font-size: 0.875rem; color: #111827; font-weight: 600; }
.b2b-branch-check small { font-size: 0.78rem; color: #9ca3af; }

/* Employee identity header (edit) */
.b2b-employee-id {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
}
.b2b-employee-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #eef2d8;
    color: #6b7e16;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.b2b-employee-id-info { display: flex; flex-direction: column; }
.b2b-employee-id-info strong { color: #111827; font-size: 0.95rem; }
.b2b-employee-id-info span { color: #9ca3af; font-size: 0.82rem; }

@media (max-width: 575.98px) {
    .b2b-role-selector { grid-template-columns: 1fr; }
}

/* ===================================================================
   CASHBACK (cbcashback account page)
   =================================================================== */

.b2b-cb-infobar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.b2b-cb-info {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.b2b-cb-info-label {
    font-size: 0.78rem;
    color: #9ca3af;
    font-weight: 500;
}
.b2b-cb-info-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
}

.b2b-cb-accent { color: #6b7e16; }

/* Clickable order reference in the rewards table */
.b2b-order-ref-link {
    color: #111827;
    text-decoration: none;
    border-bottom: 1px dashed #c0c5ce;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.b2b-order-ref-link:hover {
    color: #a1b71c;
    border-bottom-color: #a1b71c;
    text-decoration: none;
}

/* Target cards */
.b2b-cb-targets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    padding: 1.5rem;
}
.b2b-cb-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem 1.4rem;
}
.b2b-cb-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
}
.b2b-cb-card-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}
.b2b-cb-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
    margin-bottom: 1.15rem;
}
.b2b-cb-card-stats > div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.b2b-cb-card-stats span {
    font-size: 0.72rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.b2b-cb-card-stats strong {
    font-size: 0.95rem;
    color: #111827;
    font-weight: 700;
}

/* Progress bar */
.b2b-cb-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.b2b-cb-progress-bar {
    flex: 1;
    height: 8px;
    background: #eef0f3;
    border-radius: 6px;
    overflow: hidden;
}
.b2b-cb-progress-fill {
    height: 100%;
    background: #c7d23f;
    border-radius: 6px;
    transition: width 0.3s ease;
}
.b2b-cb-progress-fill.is-complete { background: #a1b71c; }
.b2b-cb-progress-pct {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6b7280;
    min-width: 38px;
    text-align: right;
}

.b2b-cb-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid #f0f0f3;
    font-size: 0.8rem;
    color: #6b7e16;
}
.b2b-cb-brands { margin-top: 0.75rem; font-size: 0.85rem; color: #6b7280; }

.b2b-cb-voucher {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    background: #f3f4f6;
    border-radius: 5px;
    font-family: monospace;
    font-size: 0.8rem;
    color: #111827;
}

@media (max-width: 575.98px) {
    .b2b-cb-targets { padding: 1rem; grid-template-columns: 1fr; }
}

/* Cashback payout / upload pages */
.b2b-alert--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}
.b2b-alert--block {
    display: block;
}
.b2b-alert--block strong { display: block; margin-bottom: 0.25rem; }
.b2b-alert--block p { margin: 0.35rem 0 0; }
.b2b-alert-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.35rem; }

/* Payout method cards (reuse role-card selection pattern) */
.b2b-pay-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.b2b-pay-option { margin: 0; cursor: pointer; }
.b2b-pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.b2b-pay-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    height: 100%;
    padding: 1.4rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    transition: all 0.15s ease;
}
.b2b-pay-card svg { stroke: #9ca3af; margin-bottom: 0.35rem; }
.b2b-pay-card strong { font-size: 0.95rem; color: #111827; }
.b2b-pay-desc { font-size: 0.83rem; color: #6b7280; line-height: 1.5; }
.b2b-pay-card small { font-size: 0.78rem; color: #9ca3af; margin-top: 0.15rem; }
.b2b-pay-option input:checked + .b2b-pay-card {
    border-color: #a1b71c;
    background: #fafbf2;
}
.b2b-pay-option input:checked + .b2b-pay-card svg { stroke: #a1b71c; }
.b2b-pay-option:hover .b2b-pay-card { border-color: #d1d5db; }

/* Invoice upload */
.b2b-upload-body { padding: 1.25rem 1.5rem 1.5rem; }
.b2b-upload-reqs {
    margin: 0 0 1.25rem;
    padding-left: 1.1rem;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.7;
}
.b2b-upload-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2.25rem 1.5rem;
    border: 2px dashed #dde1e6;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.15s ease;
}
.b2b-upload-dropzone:hover,
.b2b-upload-dropzone.is-hover { border-color: #a1b71c; color: #6b7e16; background: #fafbf2; }
.b2b-upload-dropzone.is-active { border-color: #a1b71c; border-style: solid; }
.b2b-upload-dropzone svg { stroke: currentColor; }
.b2b-upload-dropzone p { margin: 0; font-size: 0.9rem; font-weight: 600; color: #374151; }
.b2b-upload-dropzone small { font-size: 0.78rem; }
.b2b-upload-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.b2b-upload-filename {
    margin-top: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7e16;
}

/* ===================================================================
   INVOICES & PAYMENTS
   =================================================================== */

.b2b-credit-stats {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.b2b-credit-stat--overdue .b2b-dash-stat-icon {
    background: #fef2f2 !important;
}
.b2b-credit-stat--overdue .b2b-dash-stat-icon svg {
    stroke: #dc2626 !important;
}
.b2b-credit-stat--overdue .b2b-dash-stat-value {
    color: #b91c1c;
}

/* Credit usage bar */
.b2b-credit-bar-wrap {
    margin: -0.5rem 0 2rem;
}
.b2b-credit-bar {
    height: 8px;
    background: #eef0f3;
    border-radius: 6px;
    overflow: hidden;
}
.b2b-credit-bar-fill {
    height: 100%;
    background: #a1b71c;
    border-radius: 6px;
    transition: width 0.3s ease;
}
.b2b-credit-bar-fill--high {
    background: #dc2626;
}
.b2b-credit-bar-label {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: #9ca3af;
}

.b2b-invoice-nopdf {
    color: #d1d5db;
}

/* Pagination */
.b2b-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    border-top: 1px solid #f0f0f3;
}
.b2b-page-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
}
.b2b-page-btn:hover {
    background: #a1b71c;
    border-color: #a1b71c;
    color: #fff;
    text-decoration: none;
}
.b2b-page-info {
    font-size: 0.82rem;
    color: #9ca3af;
}

/* ===================================================================
   SETTINGS FORM (Account & Company data)
   =================================================================== */

.b2b-settings-form { width: 100%; }

.b2b-settings-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}
.b2b-settings-head h1 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

/* Card with title + description header */
.b2b-settings-card {
    margin-bottom: 1.5rem;
    padding-bottom: 0;
}
.b2b-settings-card-head {
    padding: 1.25rem 1.5rem 0.5rem;
}
.b2b-settings-card-head h2 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}
.b2b-settings-card-head p {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    color: #9ca3af;
}

/* Label-left / field-right rows with hairline dividers */
.b2b-form-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    align-items: start;
    padding: 1.15rem 1.5rem;
    border-top: 1px solid #f3f4f6;
}
.b2b-form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    padding-top: 0.55rem;
    margin: 0;
}
.b2b-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}
.b2b-form-field--split {
    flex-direction: row;
    gap: 0.75rem;
}
.b2b-form-field--split .b2b-form-input { flex: 1; min-width: 0; }

.b2b-form-input {
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-size: 0.875rem;
    color: #111827;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    height: auto;
}
.b2b-form-input:focus {
    outline: none;
    border-color: #a1b71c;
    box-shadow: 0 0 0 3px rgba(161, 183, 28, 0.12);
}
.b2b-form-input::placeholder { color: #c0c5ce; }
.b2b-form-input--locked {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}
.b2b-form-input--locked:focus {
    border-color: #e5e7eb;
    box-shadow: none;
}

.b2b-form-hint {
    font-size: 0.78rem;
    color: #9ca3af;
}
.b2b-form-hint--ok { color: #6b7e16; font-weight: 500; }

.b2b-form-check--required input { accent-color: #9ca3af; }
.b2b-consent-req {
    color: #9ca3af;
    font-style: normal;
    font-size: 0.78rem;
}
/* Consent labels may contain HTML (<p>, <br>) from the registration module —
   strip the theme's default paragraph margins that create empty space. */
.b2b-form-check p,
.b2b-form-check span > p:last-child {
    margin: 0;
}
.b2b-form-check span { line-height: 1.45; }

/* Checkbox rows */
.b2b-form-check-row {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.15rem 1.5rem;
    border-top: 1px solid #f3f4f6;
}
.b2b-form-check {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    margin: 0;
}
.b2b-form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #a1b71c;
    cursor: pointer;
}

.b2b-settings-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 0 1rem;
}

/* Alerts */
.b2b-alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}
.b2b-alert svg { flex-shrink: 0; }
.b2b-alert--success {
    background: #f1f5e8;
    border: 1px solid #d6e3a8;
    color: #586d12;
}
.b2b-alert--error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

@media (max-width: 767px) {
    .b2b-form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .b2b-form-label { padding-top: 0; }
    .b2b-form-field--split { flex-direction: column; }
}

/* Manager card */
.b2b-dash-manager {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: none;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
}

.b2b-dash-manager h3 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.b2b-dash-manager h3 svg {
    stroke: #6b7280;
}

.b2b-dash-manager-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.b2b-dash-manager-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.b2b-dash-manager-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.b2b-dash-manager-avatar svg {
    stroke: #9ca3af;
}

.b2b-dash-manager-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.b2b-dash-manager-info strong {
    font-size: 0.95rem;
    color: #1f2937;
}

.b2b-dash-manager-info a {
    font-size: 0.85rem;
    color: #6b7280;
    text-decoration: none;
}

.b2b-dash-manager-info a:hover {
    color: var(--b2b-main-color, #b12704);
}

/* Cashback row in dashboard */
.b2b-dash-cashback-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    padding: 1.25rem;
}

.b2b-dash-cashback-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.b2b-dash-cashback-card--highlight {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
}

.b2b-dash-cashback-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.b2b-dash-cashback-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.b2b-dash-cashback-card--highlight .b2b-dash-cashback-value {
    color: #065f46;
}

.b2b-dash-cashback-action {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.35rem 1rem;
    background: #059669;
    color: #fff;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.b2b-dash-cashback-action:hover {
    background: #047857;
    color: #fff;
    text-decoration: none;
}

/* ===================================================================
   RESPONSIVE - Sidebar layout
   =================================================================== */

@media (max-width: 991px) {
    .b2b-panel-layout {
        flex-direction: column;
        min-height: auto;
    }

    .b2b-sidebar {
        width: 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: none;
        position: static;
        height: auto;
    }

    .b2b-sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .b2b-sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .b2b-sidebar-item {
        white-space: nowrap;
        padding: 0.75rem 1rem;
        font-size: 0.7rem;
        min-width: max-content;
        border-left: none;
        border-bottom: 2px solid transparent;
    }

    .b2b-sidebar-item.active {
        border-left: none;
        border-bottom-color: #111827;
        background: #f9fafb;
    }

    .b2b-sidebar-item:hover {
        border-left: none;
    }

    .b2b-sidebar-item span {
        display: inline;
    }

    .b2b-sidebar-divider {
        width: 1px;
        height: auto;
        margin: 0.5rem 0;
        min-height: 20px;
        background: #e5e7eb;
    }

    .b2b-panel-content {
        padding: 1.25rem 1rem;
    }

    .b2b-dash-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .b2b-dash-welcome h1 {
        font-size: 1.2rem;
    }

    .b2b-dash-stats {
        grid-template-columns: 1fr;
    }

    .b2b-dash-stat {
        padding: 1rem;
    }

    .b2b-dash-table th,
    .b2b-dash-table td {
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
    }

    .b2b-order-payment {
        display: none;
    }

    .b2b-dash-cashback-row {
        grid-template-columns: 1fr;
    }

}

/* ===================================================================
   NATIVE PS PAGES - Sidebar integration
   Styles for native PrestaShop customer pages (identity, addresses,
   order-slip) when wrapped with our B2B sidebar layout via JS.
   =================================================================== */

/* Wrapper injected around #content-wrapper on native pages */
.b2b-native-page-wrapper {
    width: 100%;
    padding: 0;
}

/* Native page content inside our layout */
.b2b-panel-layout .page-header {
    margin-bottom: 1.5rem;
}

.b2b-panel-layout .page-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    padding: 0;
}

/* Page content: transparent — panel padding handles spacing */
.b2b-panel-content .page-content {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}
.b2b-panel-content .page-content .card {
    border: none;
    box-shadow: none;
}
.b2b-panel-content .page-footer { margin-top: 1.5rem; }

/* Hide default PS page title + mobile back link (we render our own heading) */
.b2b-panel-content > section > .page-header,
.b2b-panel-content > .page-header,
.b2b-panel-content .page-header,
.b2b-panel-content .account-menu__back {
    display: none;
}

/* --- Address list cards --- */
.b2b-panel-content .address.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.b2b-panel-content .address.card:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.04);
}
.b2b-panel-content .address .card-body {
    padding: 1.5rem;
    flex: 1;
}
.b2b-panel-content .address__alias {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.85rem;
}
.b2b-panel-content .address__content {
    font-style: normal;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #4b5563;
}
.b2b-panel-content .address__actions.card-footer {
    background: transparent;
    border-top: 1px solid #f0f0f3;
    padding: 0.85rem 1.5rem;
    display: flex;
    gap: 1.25rem;
}
.b2b-panel-content .address__edit,
.b2b-panel-content .address__delete {
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
}
.b2b-panel-content .address__edit { color: #6b7280; }
.b2b-panel-content .address__edit:hover { color: #a1b71c; }
.b2b-panel-content .address__delete { color: #c0392b; }
.b2b-panel-content .address__delete:hover { color: #dc2626; }

/* --- "Add new address" dashed card --- */
.b2b-panel-content .addresses__new-address {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    height: 100%;
    min-height: 170px;
    padding: 1.5rem;
    border: 1.5px dashed #dde1e6;
    border-radius: 10px;
    color: #9ca3af;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.b2b-panel-content .addresses__new-address:hover {
    border-color: #a1b71c;
    color: #6b7e16;
    background: transparent;
}
/* Single clean circle: neutralize the theme's <i> circle, style the wrapper */
.b2b-panel-content .new-address__icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.b2b-panel-content .addresses__new-address:hover .new-address__icon {
    background: #eef2d8;
}
.b2b-panel-content .addresses__new-address i,
.b2b-panel-content .new-address__icon .material-icons {
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    font-size: 26px;
    line-height: 1;
    color: inherit;
    transform: none !important;
    border-radius: 0;
}
.b2b-panel-content .addresses__new-address span,
.b2b-panel-content .new-address__text {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- Address form --- */
.b2b-panel-content .address-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.75rem 2rem;
    max-width: 900px;
}
.b2b-panel-content .address-form .mb-3 { margin-bottom: 1.1rem !important; }

/* Two-column field layout (avoids empty space on wide screens) */
@media (min-width: 768px) {
    .b2b-panel-content .address-form .form-fields {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 1.5rem;
    }
    /* Long fields span the full width */
    .b2b-panel-content .address-form .form-fields > .mb-3:has([name="alias"]),
    .b2b-panel-content .address-form .form-fields > .mb-3:has([name="address1"]),
    .b2b-panel-content .address-form .form-fields > .mb-3:has([name="address2"]),
    .b2b-panel-content .address-form .form-fields > .mb-3:has(textarea) {
        grid-column: 1 / -1;
    }
}
.b2b-panel-content .address-form .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
    text-transform: none;
}
.b2b-panel-content .address-form .form-label.required::after {
    content: " *";
    color: #c0392b;
}

/* Inputs / selects / textareas on native pages */
.b2b-panel-content .form-control,
.b2b-panel-content .form-select {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    padding: 0.6rem 0.85rem;
    font-size: 0.875rem;
    color: #111827;
    background-color: #fff;
    height: auto;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.b2b-panel-content .form-control:focus,
.b2b-panel-content .form-select:focus {
    border-color: #a1b71c;
    box-shadow: 0 0 0 3px rgba(161, 183, 28, 0.12);
}
.b2b-panel-content .form-control::placeholder { color: #c0c5ce; }
.b2b-panel-content .form-text {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}
.b2b-panel-content .has-error .form-control,
.b2b-panel-content .has-error .form-select {
    border-color: #fca5a5;
}

/* Password show button inside input group */
.b2b-panel-content .password-field .btn,
.b2b-panel-content .input-group .btn-primary {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-left: none;
    color: #6b7280;
    border-radius: 0 7px 7px 0;
    padding: 0 0.75rem;
}
.b2b-panel-content .password-field .btn:hover {
    background: #e5e7eb;
}

/* Submit + footer */
.b2b-panel-content .form-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f3f4f6;
}
.b2b-panel-content .btn-primary,
.b2b-panel-content .form-control-submit {
    background: #a1b71c;
    border: none;
    border-radius: 7px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.875rem;
    padding: 0.65rem 1.4rem;
    color: #fff;
    transition: background 0.15s ease;
}
.b2b-panel-content .btn-primary:hover,
.b2b-panel-content .form-control-submit:hover {
    background: #8fa518;
    border: none;
    color: #fff;
}

/* Links inside panel content */
.b2b-panel-content a.account-link,
.b2b-panel-content .page-footer a {
    color: #6b7280;
    font-weight: 500;
}
.b2b-panel-content a.account-link:hover,
.b2b-panel-content .page-footer a:hover {
    color: #a1b71c;
}

/* ===================================================================
   B2B LEFT SIDEBAR - Configurable sidebar for category/listing pages
   =================================================================== */

.b2b-left-sidebar {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: hidden;
    font-size: 13px;
    transition: width 0.3s ease, opacity 0.3s ease;
    position: sticky;
    top: 120px;
}

/* Hidden utility */
.b2b-ls__hidden { display: none !important; }

/* --- Section wrapper --- */
.b2b-ls__section {
    border-bottom: 1px solid #f0f0f0;
}

.b2b-ls__section:last-of-type {
    border-bottom: none;
}

/* --- Highlighted section (e.g. quick links) --- */
.b2b-ls__section--highlighted {
    background: #f0f4f8;
    border-left: 3px solid var(--b2b-main-color, #b12704);
}

.b2b-ls__section--highlighted .b2b-ls__section-header {
    font-weight: 700;
}

.b2b-ls__section--highlighted .b2b-ls__links li a:hover {
    background: rgba(255,255,255,0.6);
}

/* --- Section header (collapsible) --- */
.b2b-ls__section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 13px;
    color: #333;
    user-select: none;
}

.b2b-ls__section-header > .material-icons:first-child {
    font-size: 20px;
    color: #666;
}

.b2b-ls__section-header > span {
    flex: 1;
}

.b2b-ls__chevron {
    font-size: 20px !important;
    color: #999;
    transition: transform 0.2s;
}

/* --- Account Manager block (highlighted) --- */
.b2b-ls__manager {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1f5 100%);
    padding: 16px;
    text-align: center;
}

.b2b-ls__manager-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.b2b-ls__manager-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.b2b-ls__manager-info {
    margin-bottom: 10px;
}

.b2b-ls__manager-title {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.b2b-ls__manager-name {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.b2b-ls__tier-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.b2b-ls__manager-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.b2b-ls__manager-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #555;
    text-decoration: none;
    font-size: 12px;
    padding: 4px 0;
    transition: color 0.2s;
    min-width: 0;
}
.b2b-ls__manager-contact a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.b2b-ls__manager-contact a:hover {
    color: var(--b2b-main-color, #b12704);
}

.b2b-ls__manager-contact .material-icons {
    font-size: 16px;
}

/* --- Link lists (quick links, help links, manufacturers) --- */
.b2b-ls__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.b2b-ls__links li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px 9px 20px;
    color: #444;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, padding-left 0.15s;
    font-size: 13px;
}

.b2b-ls__links li a:hover {
    background: #f8f9fa;
    color: var(--b2b-main-color, #b12704);
    padding-left: 24px;
}

.b2b-ls__links li a .material-icons {
    font-size: 18px;
    color: #999;
    flex-shrink: 0;
}

.b2b-ls__links li a:hover .material-icons {
    color: var(--b2b-main-color, #b12704);
}

/* --- Category tree --- */
.b2b-ls__tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

.b2b-ls__tree-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 8px 20px;
    color: #444;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.15s, color 0.15s;
}

.b2b-ls__tree-link:hover {
    background: #f8f9fa;
    color: var(--b2b-main-color, #b12704);
}

.b2b-ls__tree-link--sub {
    padding-left: 36px;
    font-size: 12px;
    color: #666;
}

.b2b-ls__tree-link--subsub {
    padding-left: 52px;
    font-size: 12px;
    color: #888;
}

.b2b-ls__tree-toggle {
    font-size: 18px !important;
    color: #bbb;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    flex-shrink: 0;
}

.b2b-ls__tree-toggle:hover {
    color: #666;
}

.b2b-ls__tree-sub {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Active category highlighting */
.b2b-ls__tree-item--active > .b2b-ls__tree-link {
    color: var(--b2b-main-color, #b12704);
    font-weight: 600;
    background: rgba(177, 39, 4, 0.04);
    border-left: 3px solid var(--b2b-main-color, #b12704);
}

/* --- Cashback widget --- */
.b2b-ls__cashback {
    padding: 10px 16px;
}

.b2b-ls__cashback-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.b2b-ls__cashback-row span {
    font-size: 12px;
    color: #666;
}

.b2b-ls__cashback-row strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--b2b-main-color, #b12704);
}

.b2b-ls__cashback-alert {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.b2b-ls__cashback-alert .material-icons {
    font-size: 16px;
}

.b2b-ls__cashback-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--b2b-main-color, #b12704);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 0;
}

.b2b-ls__cashback-link:hover {
    text-decoration: underline;
}

.b2b-ls__cashback-link .material-icons {
    font-size: 16px;
}

/* --- Language switcher --- */
.b2b-ls__lang-section {
    padding: 10px 16px;
}

.b2b-ls__lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.b2b-ls__lang-switcher > .material-icons {
    font-size: 20px;
    color: #999;
}

.b2b-ls__lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 28px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    background: #f0f0f0;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.b2b-ls__lang-btn:hover {
    background: #e0e0e0;
    color: #333;
    text-decoration: none;
}

.b2b-ls__lang-btn--active {
    background: var(--b2b-main-color, #b12704);
    color: #fff;
}

.b2b-ls__lang-btn--active:hover {
    background: var(--b2b-main-color-dark, #9a2003);
    color: #fff;
}

/* --- Collapse toggle button --- */
.b2b-ls__collapse-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    cursor: pointer;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
    border-top: 1px solid #f0f0f0;
}

.b2b-ls__collapse-toggle:hover {
    background: #f5f5f5;
    color: #333;
}

.b2b-ls__collapse-toggle .material-icons {
    font-size: 18px;
}

.b2b-ls__collapse-label {
    white-space: nowrap;
}

/* =========== COLLAPSED STATE =========== */

/* Left column in collapsed state */
#left-column.b2b-lc--collapsed {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    overflow: visible;
    flex: 0 0 0 !important;
}

/* Collapsed: content-wrapper fills full width */
.b2b-sidebar-collapsed #content-wrapper {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

.b2b-sidebar-collapsed .b2b-left-sidebar {
    width: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.b2b-sidebar-collapsed .b2b-ls__section,
.b2b-sidebar-collapsed .b2b-ls__lang-section {
    display: none;
}

.b2b-sidebar-collapsed .b2b-ls__collapse-toggle {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--b2b-main-color, #b12704);
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.15);
    z-index: 100;
    padding: 10px 14px 10px 10px;
    flex-direction: row;
    gap: 4px;
    writing-mode: horizontal-tb;
}

.b2b-sidebar-collapsed .b2b-ls__collapse-toggle:hover {
    background: var(--b2b-main-color-dark, #9a2003);
    color: #fff;
}

.b2b-sidebar-collapsed .b2b-ls__collapse-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* =========== RESPONSIVE =========== */
@media (max-width: 991px) {
    .b2b-left-sidebar {
        position: static;
    }
    .b2b-ls__collapse-toggle {
        display: none;
    }
}

@media (max-width: 767px) {
    .b2b-left-sidebar {
        border-radius: 0;
    }
}

/* ===================================================================
   DASHBOARD — CLEAN STREAMLINE REFRESH
   Flat, minimal design. No shadows, no hover-lift, no colored
   icon backgrounds. White cards with hairline borders. Maximum
   whitespace. Simple text links.
   =================================================================== */

.b2b-panel-content {
    padding: 2.5rem 3rem;
    background: #f8f9fb;
}

/* --- Welcome header --- */
.b2b-panel-content .b2b-dash-welcome {
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2.25rem;
}
.b2b-panel-content .b2b-dash-welcome-text {
    display: flex;
    flex-direction: column;
}
.b2b-panel-content .b2b-dash-welcome h1 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}
.b2b-panel-content .b2b-dash-welcome-sub {
    margin: 0.35rem 0 0;
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
}
.b2b-panel-content .b2b-dash-tier {
    margin-top: 0.25rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    box-shadow: none;
}

/* --- Cards: flat white, thin border, no shadow --- */
.b2b-panel-content .b2b-dash-stat,
.b2b-panel-content .b2b-dash-section,
.b2b-panel-content .b2b-dash-manager {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: none;
}

/* --- Stat tiles --- */
.b2b-panel-content .b2b-dash-stats {
    gap: 1rem;
    margin-bottom: 2.25rem;
}
.b2b-panel-content .b2b-dash-stat {
    padding: 1.5rem 1.5rem;
    gap: 1rem;
    transition: none;
}
.b2b-panel-content .b2b-dash-stat:hover {
    transform: none;
    box-shadow: none;
}
.b2b-panel-content .b2b-dash-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f3f4f6 !important;
}
.b2b-panel-content .b2b-dash-stat-icon svg {
    stroke: #6b7280 !important;
    width: 22px;
    height: 22px;
}
.b2b-panel-content .b2b-dash-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}
.b2b-panel-content .b2b-dash-stat-label {
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
}

/* --- Section cards --- */
.b2b-panel-content .b2b-dash-section {
    margin-bottom: 1.75rem;
}
.b2b-panel-content .b2b-dash-section-header {
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid #f0f0f3;
}
.b2b-panel-content .b2b-dash-section-header h2 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}
.b2b-panel-content .b2b-dash-section-header h2 svg {
    stroke: #9ca3af;
    width: 18px;
    height: 18px;
}
.b2b-panel-content .b2b-dash-link {
    font-weight: 500;
    font-size: 0.82rem;
    color: #fff;
    text-decoration: none;
    background: #a1b71c;
    padding: 10px;
    border-radius: 7px;
}
.b2b-panel-content .b2b-dash-link:hover {
    color: #fff;
    text-decoration: none;
    background: #8fa518;
}

/* --- Table --- */
.b2b-panel-content .b2b-dash-table th {
    padding: 0.75rem 1.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: #9ca3af;
    background: transparent;
    border-bottom: 1px solid #f0f0f3;
    font-weight: 500;
    text-transform: uppercase;
}
.b2b-panel-content .b2b-dash-table td {
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid #f5f5f7;
    font-size: 0.875rem;
    color: #374151;
}
.b2b-panel-content .b2b-dash-table tbody tr:hover {
    background: #fafbfc;
}
.b2b-panel-content .b2b-dash-table tbody tr:last-child td {
    border-bottom: none;
}
.b2b-panel-content .b2b-dash-table td strong {
    color: #111827;
    font-weight: 600;
}
.b2b-panel-content .b2b-dash-status {
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: none;
    box-shadow: none;
}
.b2b-panel-content .b2b-dash-detail-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: none;
    border: 2px solid #a1b71c;
    padding: 5px 10px;
    border-radius: 7px;
}
.b2b-panel-content .b2b-dash-detail-link:hover {
    color: #fff;
    background: #a1b71c;
    text-decoration: none;
}

/* --- Manager card --- */
.b2b-panel-content .b2b-dash-manager {
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
}
.b2b-panel-content .b2b-dash-manager h3 {
    font-size: 0.82rem;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.b2b-panel-content .b2b-dash-manager-avatar {
    background: #f3f4f6;
    border-radius: 50%;
    width: 42px;
    height: 42px;
}
.b2b-panel-content .b2b-dash-manager-avatar svg {
    stroke: #9ca3af;
}
.b2b-panel-content .b2b-dash-manager-info strong {
    color: #111827;
    font-size: 0.9rem;
}
.b2b-panel-content .b2b-dash-manager-info a {
    color: #9ca3af;
    font-size: 0.82rem;
}

/* --- Alert: subtle --- */
.b2b-panel-content .b2b-dash-alert {
    border-radius: 10px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    margin-bottom: 1.75rem;
}

/* --- Cashback cards --- */
.b2b-panel-content .b2b-dash-cashback-card {
    border-radius: 8px;
}
.b2b-panel-content .b2b-dash-cashback-action {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.3rem 0.85rem;
    border-radius: 5px;
}

@media (max-width: 575.98px) {
    .b2b-panel-content {
        padding: 1.25rem 1rem;
    }
    .b2b-panel-content .b2b-dash-welcome h1 {
        font-size: 1.25rem;
    }
}

/* ===================================================================
   SIDEBAR — LIGHT THEME OVERRIDES
   Streamline-inspired clean sidebar with grouped sections.
   =================================================================== */

.b2b-sidebar-group-label {
    padding: 1.35rem 1.25rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #b0b5bf;
}

.b2b-sidebar-group:first-child .b2b-sidebar-group-label {
    padding-top: 0.5rem;
}

@media (min-width: 992px) {
    .b2b-sidebar-nav {
        padding: 0.5rem 0 1rem;
    }
    .b2b-sidebar-group {
        padding: 0.1rem 0;
    }
    .b2b-sidebar-group + .b2b-sidebar-group {
        border-top: none;
    }
    .b2b-sidebar-item {
        margin: 5px 20px;
        padding: 0.6rem 0.85rem;
        border-radius: 7px;
        line-height: 1.5;
    }
    .b2b-sidebar-footer {
        border-top: 1px solid #f0f0f3;
        margin-top: auto;
        padding-top: 0.5rem;
        padding-bottom: 0.75rem;
    }
}

/* --- Mobile: flatten groups into horizontal nav --- */
@media (max-width: 991px) {
    .b2b-sidebar-group,
    .b2b-sidebar-footer {
        display: contents;
    }
    .b2b-sidebar-group-label {
        display: none;
    }
    .b2b-sidebar {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
}

/* ===================================================================
   B2B NEWS (home/dashboard widget + popup)
   =================================================================== */

/* Cashback + News side by side (collapses to 1 column when narrow/single) */
.b2b-dash-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
    margin-bottom: 1.75rem;
    align-items: start;
}
.b2b-dash-2col > .b2b-dash-section {
    margin-bottom: 0;
}

/* News list */
.b2b-news-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}
.b2b-news-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f7;
    transition: background 0.12s ease;
}
.b2b-news-item:last-child { border-bottom: none; }
.b2b-news-item:hover { background: #fafbfc; }
.b2b-news-date {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: #9ca3af;
    width: 74px;
}
.b2b-news-title {
    flex: 1;
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
    line-height: 1.4;
}
.b2b-news-item:hover .b2b-news-title { color: #111827; }
.b2b-news-arrow { stroke: #d1d5db; flex-shrink: 0; }
.b2b-news-item:hover .b2b-news-arrow { stroke: #a1b71c; }

/* News popup */
.b2b-news-modal {
    position: fixed;
    inset: 0;
    z-index: 1040;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.b2b-news-modal.is-open { display: flex; }
.b2b-news-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(2px);
}
.b2b-news-modal-box {
    position: relative;
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem 2.25rem 2.25rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.b2b-news-modal-close {
    position: absolute;
    top: 0.85rem;
    right: 1rem;
    width: 34px;
    height: 34px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 22px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}
.b2b-news-modal-close:hover { background: #e5e7eb; color: #111827; }
.b2b-news-modal-title {
    margin: 0 2.5rem 1rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}
.b2b-news-modal-body {
    font-size: 0.92rem;
    color: #374151;
    line-height: 1.65;
}
.b2b-news-modal-body img { max-width: 100%; height: auto; border-radius: 8px; }
.b2b-news-modal-body a { color: #6b7e16; }
.b2b-news-modal-body h1,
.b2b-news-modal-body h2,
.b2b-news-modal-body h3 { color: #111827; margin: 1.1rem 0 0.5rem; }
.b2b-news-modal-body p { margin: 0 0 0.85rem; }
.b2b-news-modal-body ul,
.b2b-news-modal-body ol { margin: 0 0 0.85rem 1.25rem; }

/* Wider news popup when it embeds product rows, so they look like the listing */
.b2b-news-modal-box { max-width: 960px; }
/* Embedded product rows: drop the listing container chrome (border/bg/padding) */
.b2b-news-products {
    margin: 1rem 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}
.b2b-news-products .b2b-product-row { margin-bottom: 0.5rem; }

/* News: hidden (older) items + "show older" toggle */
.b2b-news-hidden { display: none; }
.b2b-news-more {
    display: block;
    width: 100%;
    padding: 0.7rem 1.5rem;
    border: none;
    border-top: 1px solid #f0f0f3;
    background: transparent;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: color 0.15s ease, background 0.15s ease;
}
.b2b-news-more:hover { color: #a1b71c; background: #fafbf5; }

/* ===================================================================
   B2B ORDER CONFIRMATION / THANK YOU PAGE
   =================================================================== */

body#order-confirmation .breadcrumb__wrapper { display: none !important; }
body#order-confirmation #wrapper.wrapper { padding-top: 0 !important; }
body#order-confirmation #left-column { display: none !important; }
body#order-confirmation #content-wrapper { flex: 0 0 100% !important; max-width: 100% !important; }
body#order-confirmation .page-content { padding: 0 !important; background: transparent !important; box-shadow: none !important; border: none !important; }

.b2b-confirmation {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.b2b-confirmation__header {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
}

.b2b-confirmation__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f0f9f0;
    color: #28a745;
    margin-bottom: 1rem;
}

.b2b-confirmation__header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem;
}

.b2b-confirmation__header p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

.b2b-confirmation__invoice-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #a1b71c;
    text-decoration: none;
    transition: color 0.15s ease;
}

.b2b-confirmation__invoice-link:hover {
    color: #8a9e18;
}

.b2b-confirmation__payment-info {
    background: #fff;
    border: 1px solid #f0f0f3;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.b2b-confirmation__payment-info .alert {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.b2b-confirmation__card {
    background: #fff;
    border: 1px solid #f0f0f3;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.b2b-confirmation__details-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f0f3;
}

.b2b-confirmation__details-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.b2b-confirmation__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f3;
}

.b2b-confirmation__meta-item {
    flex: 1 1 auto;
    min-width: 160px;
    padding: 0.5rem 1.5rem 0.5rem 0;
}

.b2b-confirmation__meta-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 0.15rem;
}

.b2b-confirmation__meta-item strong {
    display: block;
    font-size: 0.9rem;
    color: #1a1a1a;
}

.b2b-confirmation__meta-note {
    display: block;
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 0.1rem;
}

/* Override default order-confirmation table styles */
.b2b-confirmation .order-confirmation__table {
    padding: 0;
}

.b2b-confirmation .order-confirmation__items {
    padding: 0;
}

.b2b-confirmation .order-confirmation__items .item {
    padding: 1rem 1.5rem;
    margin: 0;
    border-bottom: 1px solid #f7f7f8;
    align-items: center;
}

.b2b-confirmation .order-confirmation__items .item:last-child {
    border-bottom: 1px solid #f0f0f3;
}

.b2b-confirmation .item__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.15rem;
}

.b2b-confirmation .item__reference {
    font-size: 0.78rem;
    color: #9ca3af;
    margin: 0;
}

.b2b-confirmation .item__prices {
    font-size: 0.85rem;
    color: #374151;
}

.b2b-confirmation .item__prices .text-md-end:last-child {
    font-weight: 700;
    color: #1a1a1a;
}

.b2b-confirmation .order-confirmation__subtotals,
.b2b-confirmation .order-confirmation__totals {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
}

.b2b-confirmation .order-confirmation__subtotals .row {
    padding: 0.25rem 0;
    color: #6b7280;
}

.b2b-confirmation .order-confirmation__totals .row {
    padding: 0.25rem 0;
}

.b2b-confirmation .order-confirmation__totals .fw-bold {
    font-size: 1rem;
    color: #1a1a1a;
}

.b2b-confirmation .order-confirmation__table hr {
    margin: 0;
    border-color: #f0f0f3;
    opacity: 1;
}

/* ===================================================================
   B2B CMS PAGES (regulations, privacy policy, about, etc.)
   =================================================================== */

body[id^="cms"] .breadcrumb__wrapper { display: none !important; }
body[id^="cms"] #wrapper.wrapper { padding-top: 0 !important; }

.b2b-cms {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

.b2b-cms__article {
    background: #fff;
    border: 1px solid #f0f0f3;
    border-radius: 12px;
    overflow: hidden;
}

.b2b-cms__header {
    padding: 2rem 2.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 1.5rem;
}

.b2b-cms__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

/* CMS content body — article typography */
.b2b-cms__body {
    padding: 2rem 2.5rem 2.5rem;
}

.b2b-cms__body h1,
.b2b-cms__body h2,
.b2b-cms__body h3,
.b2b-cms__body h4,
.b2b-cms__body h5,
.b2b-cms__body h6 {
    color: #1a1a1a;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.b2b-cms__body h1 { font-size: 1.35rem; }
.b2b-cms__body h2 { font-size: 1.15rem; }
.b2b-cms__body h3 { font-size: 1.05rem; }
.b2b-cms__body h4 { font-size: 0.95rem; }

.b2b-cms__body h1:first-child,
.b2b-cms__body h2:first-child,
.b2b-cms__body h3:first-child {
    margin-top: 0;
}

.b2b-cms__body p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 1rem;
}

.b2b-cms__body ul,
.b2b-cms__body ol {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #374151;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.b2b-cms__body li {
    margin-bottom: 0.35rem;
}

.b2b-cms__body a {
    color: #a1b71c;
    text-decoration: none;
    border-bottom: 1px solid rgba(161, 183, 28, 0.3);
    transition: border-color 0.15s ease;
}

.b2b-cms__body a:hover {
    border-bottom-color: #a1b71c;
}

.b2b-cms__body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
}

.b2b-cms__body table th,
.b2b-cms__body table td {
    padding: 0.65rem 0.85rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.b2b-cms__body table th {
    background: #f9fafb;
    font-weight: 600;
    color: #1a1a1a;
}

.b2b-cms__body blockquote {
    margin: 1.25rem 0;
    padding: 0.85rem 1.25rem;
    border-left: 3px solid #a1b71c;
    background: #fafbf5;
    color: #374151;
    font-size: 0.9rem;
}

.b2b-cms__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.b2b-cms__body hr {
    border: none;
    border-top: 1px solid #f0f0f3;
    margin: 1.5rem 0;
}

/* CMS category — link list */
.b2b-cms__links-section h2 {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af;
    margin: 0 0 0.75rem;
}

.b2b-cms__links {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.b2b-cms__links li {
    border-top: 1px solid #f3f4f6;
}

.b2b-cms__links li:last-child {
    border-bottom: 1px solid #f3f4f6;
}

.b2b-cms__links a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 0.5rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s ease, background 0.15s ease;
    border-radius: 6px;
}

.b2b-cms__links a:hover {
    color: #a1b71c;
    background: rgba(161, 183, 28, 0.04);
}

.b2b-cms__links svg {
    flex-shrink: 0;
    color: #9ca3af;
}

.b2b-cms__links a:hover svg {
    color: #a1b71c;
}

/* Responsive */
@media (max-width: 575px) {
    .b2b-cms {
        padding: 1.25rem 0.75rem 2rem;
    }
    .b2b-cms__header {
        padding: 1.5rem 1.25rem 1.25rem;
    }
    .b2b-cms__body {
        padding: 1.25rem;
    }
    .b2b-cms__title {
        font-size: 1.25rem;
    }
}

/* ===================================================================
   B2B CONTACT PAGE
   =================================================================== */

body#contact .breadcrumb__wrapper { display: none !important; }
body#contact #wrapper.wrapper { padding-top: 0 !important; }
body#contact #left-column { display: none !important; }
body#contact #content-wrapper { flex: 0 0 100% !important; max-width: 100% !important; }
body#contact .page-content { padding: 0 !important; background: transparent !important; box-shadow: none !important; border: none !important; }

.b2b-contact {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
}

.b2b-contact__header {
    margin-bottom: 2rem;
}

.b2b-contact__header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.35rem;
}

.b2b-contact__subtitle {
    font-size: 0.88rem;
    color: #6b7280;
    margin: 0;
}

.b2b-contact__grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Sidebar column (left) */
.b2b-contact__sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Manager card */
.b2b-contact__manager-card {
    background: #fff;
    border: 1px solid #f0f0f3;
    border-radius: 12px;
    padding: 1.75rem;
}

.b2b-contact__manager {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.b2b-contact__manager-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
}

.b2b-contact__manager-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.b2b-contact__manager-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #a1b71c;
    margin-bottom: 0.15rem;
}

.b2b-contact__manager-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.b2b-contact__manager-contact {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #6b7280;
    text-decoration: none;
    margin-top: 0.2rem;
    transition: color 0.15s ease;
}

.b2b-contact__manager-contact:hover {
    color: #a1b71c;
}

.b2b-contact__manager-contact svg {
    flex-shrink: 0;
    color: #9ca3af;
}

/* Info card (left) */
.b2b-contact__info-card {
    background: #fff;
    border: 1px solid #f0f0f3;
    border-radius: 12px;
    padding: 1.75rem;
}

.b2b-contact__info-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.25rem;
}

/* Hide duplicate title from the ps_contactinfo hook (we provide our own) */
.b2b-contact__info-card .contact__title,
.b2b-contact__info-card .h2 { display: none; }

/* Contact info items */
.b2b-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.b2b-contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 0;
    border-top: 1px solid #f3f4f6;
}

.b2b-contact-info__item:first-child {
    border-top: none;
    padding-top: 0;
}

.b2b-contact-info__item:last-child {
    padding-bottom: 0;
}

.b2b-contact-info__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(161, 183, 28, 0.08);
    border-radius: 8px;
    color: #a1b71c;
}

.b2b-contact-info__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.b2b-contact-info__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.b2b-contact-info__value {
    font-size: 0.88rem;
    color: #374151;
    line-height: 1.5;
}

.b2b-contact-info__link {
    color: #374151;
    text-decoration: none;
    transition: color 0.15s ease;
}

.b2b-contact-info__link:hover {
    color: #a1b71c;
}

/* Form card (right) */
.b2b-contact__form-card {
    background: #fff;
    border: 1px solid #f0f0f3;
    border-radius: 12px;
    padding: 1.75rem;
}

.b2b-contact-form .b2b-form-row {
    padding: 0.9rem 0;
}

.b2b-contact-form .b2b-form-row:first-child {
    padding-top: 0;
    border-top: none;
}

.b2b-contact-form textarea.b2b-form-input {
    resize: vertical;
    min-height: 120px;
}

.b2b-contact-form__footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 1.25rem;
    border-top: 1px solid #f3f4f6;
    margin-top: 0.5rem;
}

.b2b-contact-form__footer .b2b-btn-primary {
    gap: 0.5rem;
}

/* Alert inside contact form */
.b2b-contact-form .b2b-alert {
    margin-bottom: 1.25rem;
}

.b2b-contact-form .b2b-alert p {
    margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .b2b-contact__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .b2b-contact {
        padding: 1.5rem 1rem 2rem;
    }
    .b2b-contact-form .b2b-form-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}

/* ===================================================================
   B2B FOOTER  (colors via inline CSS vars: --bf-bg, --bf-text, --bf-heading)
   =================================================================== */

.b2b-footer {
    color: var(--bf-text, #7a8279);
    font-size: 0.85rem;
    line-height: 1.6;
}

.b2b-footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.b2b-footer__main {
    padding: 3rem 0 2rem;
}

.b2b-footer__main > .b2b-footer__container {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

/* Brand column (left) */
.b2b-footer__brand {
    flex: 0 0 280px;
    max-width: 280px;
}

.b2b-footer__logo {
    max-height: 36px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}
.b2b-footer--light .b2b-footer__logo {
    filter: none;
}

.b2b-footer__desc {
    margin: 0 0 1rem;
    color: var(--bf-text);
    font-size: 0.82rem;
    line-height: 1.65;
}

/* Contact info */
.b2b-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.b2b-footer__contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: var(--bf-text);
}

.b2b-footer__contact-item svg {
    flex-shrink: 0;
    color: #a1b71c;
    opacity: 0.75;
}

.b2b-footer__contact-item a {
    color: var(--bf-text);
    text-decoration: none;
    transition: color 0.15s ease;
}

.b2b-footer__contact-item a:hover {
    color: var(--bf-heading);
}

/* Social icons */
.b2b-footer__socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.b2b-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,0.06);
    color: var(--bf-text);
    transition: background 0.2s ease, color 0.2s ease;
}
.b2b-footer:not(.b2b-footer--light) .b2b-footer__social-link {
    background: rgba(255,255,255,0.08);
}

.b2b-footer__social-link:hover {
    background: #a1b71c;
    color: #fff;
}

/* Link columns (right) */
.b2b-footer__columns {
    flex: 1;
    display: flex;
    gap: 2.5rem;
    justify-content: flex-end;
}

.b2b-footer__column {
    min-width: 140px;
}

.b2b-footer__column-title {
    color: var(--bf-heading, #fff);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 1rem;
}

.b2b-footer__column-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.b2b-footer__column-links li {
    margin-bottom: 0.5rem;
}

.b2b-footer__column-links a {
    color: var(--bf-text);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.15s ease;
}

.b2b-footer__column-links a:hover {
    color: var(--bf-heading);
}

/* Copyright bar */
.b2b-footer__bottom {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 1rem 0;
}
.b2b-footer:not(.b2b-footer--light) .b2b-footer__bottom {
    border-top-color: rgba(255,255,255,0.08);
}

.b2b-footer__bottom > .b2b-footer__container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.b2b-footer__copyright {
    color: var(--bf-text);
    font-size: 0.78rem;
    opacity: 0.65;
}

/* Hide default footer content when B2B footer is active,
   but keep offcanvas elements (wishlist sidebar) accessible */
body.b2b-footer-active .footer__before {
    display: none !important;
}
body.b2b-footer-active .footer__main {
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}
body.b2b-footer-active .footer__main .offcanvas {
    overflow: visible;
}

body.b2b-footer-active .footer {
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove white strip between home-panel content and B2B footer */
body.b2b-footer-active#index #wrapper {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
body.b2b-footer-active#index #content-wrapper {
    padding-bottom: 0 !important;
}
body.b2b-footer-active#index .page-footer {
    display: none !important;
}
body.b2b-footer-active#index .b2b-home-panel {
    margin-bottom: 0 !important;
}
body.b2b-footer-active #footer.footer {
    margin-top: 0 !important;
}

/* Responsive */
@media (max-width: 991px) {
    .b2b-footer__main > .b2b-footer__container {
        flex-direction: column;
        gap: 2rem;
    }
    .b2b-footer__brand {
        flex: none;
        max-width: 100%;
    }
    .b2b-footer__columns {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 2rem;
    }
}

@media (max-width: 575px) {
    .b2b-footer__container {
        padding: 0 1.25rem;
    }
    .b2b-footer__columns {
        flex-direction: column;
        gap: 1.5rem;
    }
    .b2b-footer__main {
        padding: 2rem 0 1.5rem;
    }
}

/* ===== B2B Wishlist Page ===== */
.b2b-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 15px 0;
}
.b2b-wishlist-card {
    background: #fff;
    border: 1px solid #f0f0f3;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.b2b-wishlist-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.b2b-wishlist-card__img {
    position: relative;
    aspect-ratio: 1;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.b2b-wishlist-card__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}
.b2b-wishlist-card__no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.b2b-wishlist-card__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #eee;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    transition: color 0.2s, background 0.2s;
}
.b2b-wishlist-card__remove:hover {
    color: #dc3545;
    background: #fff;
}
.b2b-wishlist-card__body {
    padding: 12px;
}
.b2b-wishlist-card__name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.b2b-wishlist-card__name:hover {
    color: var(--b2b-main-color);
}
.b2b-wishlist-card__attr {
    display: block;
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
}
.b2b-wishlist-card__price {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}
.b2b-wishlist-card__cart {
    width: 100%;
    background: var(--b2b-main-color);
    color: #fff;
    border: none;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}
.b2b-wishlist-card__cart:hover {
    background: var(--b2b-main-color-dark);
    color: #fff;
}

/* ===================================================================
   WISHLIST LISTS PAGE – Vue container overrides for B2B panel
   =================================================================== */

/* Hide Vue's own h1 since we have our own in b2b-dash-welcome */
.b2b-panel-content .wishlist-container {
    margin: 0;
}
.b2b-panel-content .wishlist-container h1 {
    display: none;
}

/* --- Header: "Utwórz nową listę" button --- */
.b2b-panel-content .wishlist-container-header {
    margin-bottom: 0;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f0f3;
}
.b2b-panel-content .wishlist-add-to-new {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--b2b-main-color, #a1b71c) !important;
    text-decoration: none !important;
    padding: 8px 16px;
    border: 1.5px solid var(--b2b-main-color, #a1b71c);
    border-radius: 8px;
    transition: all 0.2s;
    background: transparent;
}
.b2b-panel-content .wishlist-add-to-new:hover {
    background: var(--b2b-main-color, #a1b71c);
    color: #fff !important;
    opacity: 1;
}
.b2b-panel-content .wishlist-add-to-new i.material-icons {
    font-size: 18px;
    margin: 0;
}

/* --- Card wrapper for the list section --- */
.b2b-panel-content .wishlist-container .card.page-content,
.b2b-panel-content .wishlist-container .page-content {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 !important;
    margin: 0;
}

/* --- List items --- */
.b2b-panel-content .wishlist-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.b2b-panel-content .wishlist-list-item {
    border-bottom: 1px solid #f0f0f3;
    transition: background 0.15s;
}
.b2b-panel-content .wishlist-list-item:last-child {
    border-bottom: none;
}
.b2b-panel-content .wishlist-list-item:hover {
    background: #f9fafb;
}
.b2b-panel-content .wishlist-list-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    text-decoration: none;
    cursor: pointer;
}
.b2b-panel-content .wishlist-list-item-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    letter-spacing: 0;
}
.b2b-panel-content .wishlist-list-item-title span {
    color: #9ca3af;
    font-weight: 400;
    font-size: 0.85rem;
    margin-left: 4px;
}
.b2b-panel-content .wishlist-list-item:hover .wishlist-list-item-title {
    color: var(--b2b-main-color, #a1b71c) !important;
}

/* --- Action buttons (share, rename dots, delete) --- */
.b2b-panel-content .wishlist-list-item-right {
    display: flex;
    align-items: center;
    gap: 4px;
}
.b2b-panel-content .wishlist-list-item-right > button {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s;
    padding: 0;
}
.b2b-panel-content .wishlist-list-item-right > button:hover {
    background: #f3f4f6;
    opacity: 1;
}
.b2b-panel-content .wishlist-list-item-right > button i.material-icons {
    font-size: 20px;
    color: #9ca3af;
}
.b2b-panel-content .wishlist-list-item-right > button:hover i.material-icons {
    color: #6b7280;
}

/* --- Dropdown menu (rename / share) --- */
.b2b-panel-content .wishlist-list-item-right .dropdown-menu.show {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 20;
    min-width: 160px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 4px 0;
    overflow: hidden;
}
.b2b-panel-content .wishlist-list-item-right .dropdown-menu.show > button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 16px;
    font-size: 0.85rem;
    color: #374151;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s;
}
.b2b-panel-content .wishlist-list-item-right .dropdown-menu.show > button:hover {
    background: #f3f4f6;
}

/* --- Empty state --- */
.b2b-panel-content .wishlist-list-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #9ca3af;
}

/* --- Default list separator --- */
.b2b-panel-content .wishlist-list-item-default {
    border-bottom: 1px solid #e5e7eb;
}

/* --- Modals (rename / share / delete / create) --- */
.b2b-panel-content ~ .wishlist-modal .modal-dialog,
.wishlist-modal .modal-dialog {
    max-width: 480px;
}
.wishlist-modal .modal-content {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.wishlist-modal .modal-header {
    padding: 1.25rem 1.5rem 0.75rem;
}
.wishlist-modal .modal-header h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}
.wishlist-modal .modal-body {
    padding: 0.75rem 1.5rem 1rem;
}
.wishlist-modal .modal-body .form-control {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
}
.wishlist-modal .modal-body .form-control:focus {
    border-color: var(--b2b-main-color, #a1b71c);
    box-shadow: 0 0 0 3px rgba(161,183,28,0.12);
}
.wishlist-modal .modal-footer {
    padding: 0.75rem 1.5rem 1.25rem;
}
.wishlist-modal .modal-footer .btn-primary,
.wishlist-modal .modal-footer .btn {
    background: var(--b2b-main-color, #a1b71c);
    border-color: var(--b2b-main-color, #a1b71c);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 20px;
    color: #fff;
}
.wishlist-modal .modal-footer .btn:hover {
    background: var(--b2b-main-color-dark, #8fa518);
    border-color: var(--b2b-main-color-dark, #8fa518);
}

/* ===================================================================
   WISHLIST DETAIL PAGE – B2B listing rows
   =================================================================== */

.b2b-wishlist-listing .b2b-wishlist-row {
    border-bottom: 1px solid #f0f0f3;
}
.b2b-wishlist-listing .b2b-wishlist-row:last-child {
    border-bottom: none;
}

/* Remove button (replaces wishlist heart) */
.b2b-wishlist-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    color: #9ca3af;
    padding: 0;
}
.b2b-wishlist-remove-btn:hover {
    background: #fef2f2;
    color: #dc2626;
}
.b2b-wishlist-remove-btn .material-icons {
    font-size: 20px;
}

/* =========== PACK CONFIGURATOR MODAL =========== */
.b2b-pack-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1070;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.b2b-pack-modal--open {
    display: flex;
}
.b2b-pack-modal__dialog {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}
.b2b-pack-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}
.b2b-pack-modal__title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}
.b2b-pack-modal__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #666;
    border-radius: 50%;
    cursor: pointer;
}
.b2b-pack-modal__close:hover {
    background: #f0f0f0;
}
.b2b-pack-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}
.b2b-pack-modal__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 0;
    color: #888;
    font-size: 14px;
}
.b2b-pack-modal__error {
    text-align: center;
    padding: 40px 0;
    color: #c62828;
    font-size: 14px;
}
.b2b-pack-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid #e5e5e5;
    flex-shrink: 0;
    gap: 12px;
}
.b2b-pack-modal__counter {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}
.b2b-pack-modal__actions {
    display: flex;
    gap: 8px;
}
.b2b-pack-modal__btn {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    white-space: nowrap;
}
.b2b-pack-modal__btn--cancel {
    background: #f0f0f0;
    color: #555;
}
.b2b-pack-modal__btn--cancel:hover {
    background: #e0e0e0;
}
.b2b-pack-modal__btn--confirm {
    background: var(--b2b-main-color, #b12704);
    color: #fff;
}
.b2b-pack-modal__btn--confirm:hover:not(:disabled) {
    background: var(--b2b-main-color-dark, #9a2003);
}
.b2b-pack-modal__btn--confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Pack item card */
.b2b-pack-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
}
.b2b-pack-item:last-child {
    margin-bottom: 0;
}
.b2b-pack-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.b2b-pack-item__name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}
.b2b-pack-item__qty-badge {
    font-size: 11px;
    font-weight: 700;
    background: var(--b2b-main-color, #b12704);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}
.b2b-pack-item__variants-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}
.b2b-pack-item__auto {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4caf50;
}
.b2b-pack-item__auto .material-icons {
    font-size: 18px;
}

/* Variant row */
.b2b-pack-variant {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
}
.b2b-pack-variant:last-child {
    border-bottom: none;
}
.b2b-pack-variant__label {
    font-size: 13px;
    color: #333;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 10px;
}

/* Stepper */
.b2b-pack-variant__stepper {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}
.b2b-pack-variant__btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: 1px solid #ddd;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.b2b-pack-variant__btn--minus {
    border-radius: 6px 0 0 6px;
}
.b2b-pack-variant__btn--plus {
    border-radius: 0 6px 6px 0;
}
.b2b-pack-variant__btn:hover {
    background: #e8e8e8;
}
.b2b-pack-variant__btn:active {
    background: #ddd;
}
.b2b-pack-variant__input {
    width: 44px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    -moz-appearance: textfield;
    outline: none;
}
.b2b-pack-variant__input::-webkit-inner-spin-button,
.b2b-pack-variant__input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Subtotal per item */
.b2b-pack-item__subtotal {
    margin-top: 8px;
    font-size: 12px;
    color: #888;
    text-align: right;
}
.b2b-pack-item__subtotal--ok {
    color: #4caf50;
}
.b2b-pack-item__subtotal--error {
    color: #c62828;
}

/* Out-of-stock variants */
.b2b-pack-variant--oos {
    opacity: 0.5;
    pointer-events: none;
}
.b2b-pack-variant--oos .b2b-pack-variant__label {
    color: #999;
    text-decoration: line-through;
}
.b2b-pack-variant__oos-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    background: #c62828;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    text-decoration: none;
}
.b2b-pack-variant__low-stock {
    font-size: 11px;
    color: #e65100;
    margin-left: 4px;
}
.b2b-pack-variant__btn:disabled,
.b2b-pack-variant__input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
}

/* Spin animation */
@keyframes b2b-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.b2b-spin {
    animation: b2b-spin 1s linear infinite;
}

/* Toast notification */
.b2b-pack-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    z-index: 1080;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    white-space: nowrap;
}
.b2b-pack-toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.b2b-pack-toast--error {
    background: #c62828;
}

/* Cart - pack selections display */
.b2b-cart-pack-selections {
    margin-top: 4px;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--b2b-main-color, #b12704);
}
.b2b-cart-pack-selections__title {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.b2b-cart-pack-selections__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.b2b-cart-pack-selections__item {
    font-size: 12px;
    color: #555;
    padding: 1px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.b2b-cart-pack-selections__label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.b2b-cart-pack-selections__qty {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}
.b2b-cart-pack-selections__unit-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--b2b-main-color, #b12704);
    margin-top: 6px;
    margin-bottom: 2px;
}
.b2b-cart-pack-selections__unit-title:first-child {
    margin-top: 0;
}
.b2b-cart-pack-selections__unconfigured {
    font-size: 11px;
    color: #999;
    font-style: italic;
    padding: 2px 0;
}

@media (max-width: 480px) {
    .b2b-pack-modal__dialog {
        max-height: 95vh;
        border-radius: 12px 12px 0 0;
        margin-top: auto;
    }
    .b2b-pack-modal {
        align-items: flex-end;
        padding: 0;
    }
    .b2b-pack-modal__footer {
        flex-direction: column;
        gap: 8px;
    }
    .b2b-pack-modal__actions {
        width: 100%;
    }
    .b2b-pack-modal__btn {
        flex: 1;
    }
}

/* B2B cart line meta (RSP + carton qty) in thecheckout cart */
.product-line-info.b2b-cart-meta {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.5;
}
.product-line-info.b2b-cart-rsp {
    color: #7c3aed;
    font-weight: 600;
}

/* Cart cross-sell: buy in a pack and save */
.b2b-crosssell {
    margin-top: 8px;
}
.b2b-crosssell-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--b2b-main-color, #a1b71c);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.15s;
}
.b2b-crosssell-btn:hover { background: var(--b2b-main-color-dark, #8fa518); }
.b2b-crosssell-btn .material-icons { font-size: 18px; }
.b2b-crosssell-panel {
    margin-top: 8px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    max-width: 480px;
}
.b2b-crosssell-info { font-size: 0.88rem; color: #374151; line-height: 1.5; margin-bottom: 10px; }
.b2b-crosssell-actions { display: flex; gap: 8px; }
.b2b-crosssell-confirm {
    background: var(--b2b-main-color, #a1b71c);
    color: #fff; border: none; border-radius: 8px;
    padding: 8px 16px; font-weight: 600; font-size: 0.82rem; cursor: pointer;
}
.b2b-crosssell-confirm:hover { background: var(--b2b-main-color-dark, #8fa518); }
.b2b-crosssell-confirm:disabled { opacity: 0.6; cursor: default; }
.b2b-crosssell-cancel {
    background: transparent; color: #6b7280; border: 1px solid #e5e7eb;
    border-radius: 8px; padding: 8px 16px; font-size: 0.82rem; cursor: pointer;
}
.b2b-crosssell-cancel:hover { background: #f9fafb; }

/* "Apply packs to all products" button next to the cart title */
.b2b-crosssell-apply-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--b2b-main-color, #a4c520);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 16px;
    min-width: 240px;
    vertical-align: middle;
    transition: background 0.15s ease;
    white-space: nowrap;
}
.b2b-crosssell-apply-all:hover { background: var(--b2b-main-color-dark, #8fa518); }
.b2b-crosssell-apply-all:disabled { opacity: 0.75; cursor: default; }
.b2b-crosssell-apply-all .material-icons { font-size: 15px; }
.b2b-crosssell-apply-all .b2b-spin { animation: b2b-spin 0.9s linear infinite; }
@keyframes b2b-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.b2b-crosssell-apply-all .b2b-caret { animation: b2b-blink 1s step-end infinite; margin-left: 1px; font-weight: 400; }
.b2b-crosssell-apply-all .b2b-type-count { opacity: 0.85; }
@keyframes b2b-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ===================================================================
   TRADE CREDIT WIDGET (sidebar)
   =================================================================== */
.b2b-credit-widget {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    margin: 0 0 1rem;
}
/* In the catalog sidebar the section itself provides the frame/separator,
   so the widget must not draw its own box (avoids overlapping borders). */
.b2b-ls__credit { padding: 12px 16px; }
.b2b-ls__credit .b2b-credit-widget {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}
.b2b-credit-widget__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.b2b-credit-widget__title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #111827;
}
.b2b-credit-widget__pct {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--b2b-main-color, #a1b71c);
}
.b2b-credit-widget__bar {
    height: 7px;
    background: #eef0f3;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}
.b2b-credit-widget__bar-fill {
    height: 100%;
    background: var(--b2b-main-color, #a1b71c);
    border-radius: 6px;
    transition: width 0.3s;
}
.b2b-credit-widget__bar-fill.is-high { background: #dc2626; }
.b2b-credit-widget__rows { display: flex; flex-direction: column; gap: 4px; }
.b2b-credit-widget__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #6b7280;
}
.b2b-credit-widget__row b { color: #111827; font-weight: 600; }
.b2b-credit-widget__row--avail b { color: var(--b2b-main-color, #a1b71c); }
.b2b-credit-widget__row--overdue b { color: #dc2626; }
.b2b-credit-widget__link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--b2b-main-color, #a1b71c);
    text-decoration: none;
}
.b2b-credit-widget__link:hover { text-decoration: underline; }

/* Sidebar: prominent "Cała Oferta" link at top of categories */
.b2b-ls__tree-item--all {
    border-bottom: 1px solid #f0f0f3;
    margin-bottom: 4px;
    padding-bottom: 4px;
}
.b2b-ls__all-offer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700 !important;
    color: var(--b2b-main-color, #a1b71c) !important;
}
.b2b-ls__all-offer .material-icons { font-size: 18px; }
.b2b-ls__all-offer:hover { color: var(--b2b-main-color-dark, #8fa518) !important; }
