/*
 Theme Name: Bakel B2B Portal
 Theme URI:  https://bakel.it/
 Description: Child theme for Shopire Pro by WPFable.
 Author:      m:gnu
 Author URI:  https://mgnu.net/
 Template:    shopire-pro
 Version:     1.0.0
 Text Domain: bakel-b2b-portal
 Domain Path: /languages
*/

/* Cart: hide thumbnail column (header + cells, all breakpoints) */
.woocommerce-cart table.shop_table th.product-thumbnail,
.woocommerce-cart table.shop_table td.product-thumbnail,
.woocommerce-cart .product-thumbnail {
    display: none !important;
}

/* Mini cart: hide images */
.woocommerce-mini-cart-item img,
.widget_shopping_cart img {
    display: none !important;
}

.wf_user_btn {
    display: inline-flex;
    align-items: center;
}
.wf_user_company {
    font-size: 1em;
    white-space: nowrap;
    padding: 0 10px;
}

/* Smartphone: hide company name in header */
@media (max-width: 767px) {
    .wf_navbar-user-item .wf_user_company {
        display: none !important;
    }
}

/* =========================
   CLASSIC CART (table cart)
   ========================= */

/* EXPLICIT: remove column */
.woocommerce-cart table.shop_table th.product-remove {
    width: 10% !important;
}

/* EXPLICIT: remove cell */
.woocommerce-cart table.shop_table td.product-remove {
    width: 10% !important;
}

a.button.bakel-empty-cart {
    margin: 6px 0 6px 0;
    padding: 0.618em 1em;
}
.b2bking_add_cart_to_purchase_list_button {
    padding: 0.618em 1em !important;
}

/* Desktop/tablet cart column sizing (avoid conflicts with mobile card layout) */
@media (min-width: 768px) {

    /* Other columns (kept wide; theme can still manage internal layout) */
    .woocommerce-cart table.shop_table th.product-name,
    .woocommerce-cart table.shop_table td.product-name,
    .woocommerce-cart table.shop_table th.product-price,
    .woocommerce-cart table.shop_table td.product-price,
    .woocommerce-cart table.shop_table th.product-quantity,
    .woocommerce-cart table.shop_table td.product-quantity,
    .woocommerce-cart table.shop_table th.product-subtotal,
    .woocommerce-cart table.shop_table td.product-subtotal {
        width: 100% !important;
    }

    a.button.bakel-empty-cart {
        margin: 6px 0 6px 0;
        padding: 0.618em 1em;
    }
    .b2bking_add_cart_to_purchase_list_button {
        margin-right: 8px !important;
        padding: 0.618em 1em !important;
    }
}

/* =========================
   CART MOBILE (<= 767px)
   Card layout + action row
   ========================= */
@media (max-width: 767px) {

    /* Hide table header */
    .woocommerce-cart .woocommerce-cart-form table.shop_table thead {
        display: none !important;
    }

    /* Turn rows into cards */
    .woocommerce-cart .woocommerce-cart-form table.shop_table,
    .woocommerce-cart .woocommerce-cart-form table.shop_table tbody,
    .woocommerce-cart .woocommerce-cart-form table.shop_table tr,
    .woocommerce-cart .woocommerce-cart-form table.shop_table td {
        display: block !important;
        width: 100% !important;
    }

    .woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item {
        border: 1px solid rgba(0,0,0,.10) !important;
        border-radius: 14px !important;
        padding: 12px !important;
        margin: 0 0 14px 0 !important;
        background: #fff !important;
        position: relative !important;
    }

    /* Hard hide thumbnail area (prevents “ghost space” on some themes) */
    .woocommerce-cart .woocommerce-cart-form table.shop_table td.product-thumbnail,
    .woocommerce-cart .woocommerce-cart-form table.shop_table th.product-thumbnail {
        display: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        width: 0 !important;
        height: 0 !important;
    }

    /* EXPLICIT: product-remove (cell + anchor) */
    .woocommerce-cart .woocommerce-cart-form table.shop_table td.product-remove {
        padding: 0 !important;
        margin: 0 !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .woocommerce-cart .woocommerce-cart-form table.shop_table td.product-remove a.remove {
        float: none !important;
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        margin: 0 !important;
        line-height: 1 !important;
        z-index: 2 !important;
        font-size: 18px !important;
        padding: 2px 6px !important;
    }

    /* Give title room so it never goes under the remove "X" */
    .woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name {
        padding-right: 44px !important;
    }

    /* Product name block */
    .woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name {
        padding: 6px 0 10px 0 !important;
        border-bottom: 1px dashed rgba(0,0,0,.10) !important;
        margin-bottom: 10px !important;
    }
    .woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name a {
        display: block !important;
        font-weight: 800 !important;
        line-height: 1.25 !important;
    }

    /* "Save for later" compact */
    .woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name .woosl-btn {
        margin-top: 6px !important;
    }
    .woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name .woosl-button {
        display: inline-block !important;
        width: auto !important;
        max-width: 100% !important;
        font-size: 12px !important;
        padding: 6px 10px !important;
        line-height: 1.1 !important;
    }

    /* Price/qty/subtotal as 2-col grid with labels */
    .woocommerce-cart .woocommerce-cart-form table.shop_table td.product-price,
    .woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity,
    .woocommerce-cart .woocommerce-cart-form table.shop_table td.product-subtotal {
        padding: 6px 0 !important;
        border: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        gap: 8px !important;
        align-items: center !important;
    }

    .woocommerce-cart .woocommerce-cart-form table.shop_table td.product-price::before,
    .woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity::before,
    .woocommerce-cart .woocommerce-cart-form table.shop_table td.product-subtotal::before {
        content: attr(data-title) !important;
        font-size: 12px !important;
        opacity: .70 !important;
        font-weight: 700 !important;
        line-height: 1.1 !important;
    }

    /* Quantity input: smaller */
    .woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity .quantity {
        display: inline-flex !important;
        justify-content: flex-end !important;
        width: auto !important;
    }
    .woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity input.qty {
        width: 76px !important;
        max-width: 76px !important;
        height: 36px !important;
        padding: 6px 8px !important;
        box-sizing: border-box !important;
    }

    /* Subtotal emphasis bottom-right */
    .woocommerce-cart .woocommerce-cart-form table.shop_table td.product-subtotal {
        margin-top: 8px !important;
        padding-top: 10px !important;
        border-top: 1px solid rgba(0,0,0,.08) !important;
    }
    .woocommerce-cart .woocommerce-cart-form table.shop_table td.product-subtotal .woocommerce-Price-amount {
        justify-self: end !important;
        text-align: right !important;
        white-space: nowrap !important;
        font-size: 16px !important;
        font-weight: 900 !important;
    }

    /* Actions card */
    .woocommerce-cart .woocommerce-cart-form table.shop_table td.actions {
        border: 1px solid rgba(0,0,0,.10) !important;
        border-radius: 12px !important;
        padding: 10px !important;
        background: #fff !important;
        margin-top: 10px !important;
    }

    .woocommerce-cart .woocommerce-cart-form table.shop_table td.actions .coupon {
        display: block !important;
        width: 100% !important;
        margin: 0 0 12px 0 !important;
    }
    .woocommerce-cart .woocommerce-cart-form table.shop_table td.actions .coupon input#coupon_code {
        width: 100% !important;
        height: 40px !important;
        padding: 8px 10px !important;
        margin: 0 0 8px 0 !important;
        box-sizing: border-box !important;
    }
    .woocommerce-cart .woocommerce-cart-form table.shop_table td.actions .coupon button,
    .woocommerce-cart .woocommerce-cart-form table.shop_table td.actions button[name="update_cart"],
    .woocommerce-cart .woocommerce-cart-form table.shop_table td.actions .b2bking_add_cart_to_purchase_list_button {
        width: 100% !important;
        height: 42px !important;
        padding: 10px 12px !important;
        line-height: 1.1 !important;
        margin: 0 0 10px 0 !important;
        box-sizing: border-box !important;
    }

    /* Hide extra loaders spacing if it messes up */
    .woocommerce-cart .woocommerce-cart-form table.shop_table td.actions .b2bking_loader_hidden {
        display: none !important;
    }

    a.button.bakel-empty-cart {
        margin: 0 0 10px 0;
    }
    button.b2bking_add_cart_to_purchase_list_button.button {
        padding: 0.618em 1em !important;
        margin-right: 8px;
    }
}

/* =========================================
   CART MOBILE: micro-override vs theme/WC responsive table styles
   ========================================= */
@media (max-width: 767px) {

    .woocommerce-cart .woocommerce-cart-form table.shop_table_responsive.cart tr.cart_item td::before {
        content: none !important;
        display: none !important;
    }

    .woocommerce-cart .woocommerce-cart-form table.shop_table_responsive.cart tr.cart_item td {
        padding-left: 0 !important;
        text-align: left !important;
        float: none !important;
        display: block !important;
    }

    /* Ensure thumbnail never reserves space (again, for stubborn themes) */
    .woocommerce-cart .woocommerce-cart-form table.shop_table_responsive.cart tr.cart_item td.product-thumbnail {
        display: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        width: 0 !important;
        height: 0 !important;
    }
}

/* =========================
   CLASSIC MINI CART (widget)
   ========================= */

.woocommerce-mini-cart .woocommerce-mini-cart-item img,
.widget_shopping_cart .woocommerce-mini-cart-item img {
    display: none !important;
}

/* Remove any reserved left space / min-height often used for thumbnails */
.woocommerce-mini-cart .woocommerce-mini-cart-item,
.widget_shopping_cart .woocommerce-mini-cart-item {
    min-height: 0 !important;
    padding-left: 0 !important;
}

/* Ensure the link doesn’t keep a thumbnail offset */
.woocommerce-mini-cart .woocommerce-mini-cart-item > a,
.widget_shopping_cart .woocommerce-mini-cart-item > a,
.widget_shopping_cart ul.product_list_widget li {
    padding-left: 0 !important;
    margin-left: 0 !important;
    text-indent: 0 !important;
}

/* =========================
   MY ACCOUNT
   ========================= */

td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions > a.woocommerce-button.button.view,
td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions > a.woocommerce-button.button.cancel {
    margin: 2px 0;
    width: 100%;
}
@media (max-width: 1023px) {
    td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions > a.woocommerce-button.button.view,
    td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions > a.woocommerce-button.button.cancel {
        padding: 6px 0;
    }
}
@media (max-width: 768px) {
    td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions > a.woocommerce-button.button.view,
    td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions > a.woocommerce-button.button.cancel {
        margin: 0 0 0 2px;
        width: 34%;
    }
}

/* /my-account/purchase-lists/ */
ul#select2-shipping_address_book-results li[id$='add_new'] {
    display: none !important;
}

div#b2bking_purchase_lists_table_wrapper {
    background-color: transparent;
}
#b2bking_purchase_lists_table_length > label {
    width: 100% !important;
}
#b2bking_purchase_lists_table_length > label > select {
    width: 70px !important;
}
#b2bking_purchase_lists_table_filter > label {
    width: 101% !important;
}
#b2bking_purchase_lists_table_filter > label > input {
    width: 80% !important;
}

/* /my-account/edit-address/ */
.woocommerce-Address-title.title a,
.add.button.wc-address-book-add-shipping-button {
    display: none;
}
.wc-address-book-edit,
.wc-address-book-delete {
    display: none !important;
}

/* =========================
   SEARCH RESULTS (AJAX)
   ========================= */

/* Desktop */
@media (min-width: 1025px) {
    .search-results.active {
        width: 120% !important;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .search-results.active {
        width: 98% !important;
    }
}

/* Smartphone */
@media (max-width: 767.98px) {
    .search-results.active {
        width: 82% !important;
    }
}

/* Hide the "View cart" link added after AJAX add-to-cart (search results only) */
.search-results .added_to_cart.wc-forward {
    display: none !important;
}

/* Stable row layout: title flexes, price + form fixed to the right */
.search-results .shopire_result_link{
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.search-results .shopire_result_link .product-data{
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
.search-results .shopire_result_link .product-title{
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.search-results .shopire_result_link .product-price{
    flex: 0 0 auto !important;
    margin-left: auto !important;
    white-space: nowrap !important;
}

.search-results .shopire_result_link form.cart{
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

/* Quantity group default (tablet/desktop: edge buttons allowed) */
.search-results form.cart .quantity{
    display: inline-flex !important;
    align-items: stretch !important;
}

/* Hide native spinners (optional) */
.search-results form.cart input.qty::-webkit-outer-spin-button,
.search-results form.cart input.qty::-webkit-inner-spin-button{
    -webkit-appearance: none;
    margin: 0;
}
.search-results form.cart input.qty{
    -moz-appearance: textfield;
}

/* Edge buttons [-][+] (tablet/desktop) */
.search-results form.cart .quantity .qty-btn{
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 1px solid rgba(0,0,0,.20) !important;
    background: transparent !important;
    width: 34px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.search-results form.cart .quantity .qty-minus{
    border-radius: 10px 0 0 10px !important;
    border-right: 0 !important;
}
.search-results form.cart .quantity .qty-plus{
    border-radius: 0 10px 10px 0 !important;
    border-left: 0 !important;
}

/* Input in the middle (tablet/desktop) */
.search-results form.cart .quantity input.qty{
    width: 64px !important;
    max-width: 64px !important;
    text-align: center !important;
    border-radius: 0 !important;
    border: 1px solid rgba(0,0,0,.20) !important;
    margin: 0 !important;
    padding: 6px 8px !important;
    box-sizing: border-box !important;
}

.search-results form.cart .quantity .qty-btn:active{
    transform: translateY(1px);
}

/* Smartphone: DO NOT use edge selectors, keep things small + keep add-to-cart visible */
@media (max-width: 767px) {

    .search-results .shopire_result_link{
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .search-results .shopire_result_link .product-data{
        flex: 1 1 100% !important;
    }

    .search-results .shopire_result_link .product-price{
        margin-left: 0 !important;
        font-size: 13px !important;
        line-height: 1.1 !important;
    }

    .search-results .shopire_result_link form.cart{
        margin-left: auto !important;
        gap: 6px !important;
    }

    /* Disable edge buttons on smartphone */
    .search-results form.cart .quantity .qty-btn{
        display: none !important;
    }

    /* Make qty input smaller (and standalone) */
    .search-results form.cart .quantity{
        border: 0 !important;
        background: transparent !important;
    }

    .search-results form.cart .quantity input.input-text.qty,
    .search-results form.cart .quantity input.qty{
        width: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;
        height: 28px !important;
        font-size: 14px !important;
        line-height: 28px !important;
        padding: 0 6px !important;
        border-radius: 10px !important;
        border: 1px solid rgba(0,0,0,.20) !important;
        box-sizing: border-box !important;
    }

    .search-results form.cart button.ajax_add_to_cart{
        min-width: 36px !important;
        height: 28px !important;
        padding: 0 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* remove margin-right from icon (wf-mr-2) so it doesn't waste space */
    .search-results form.cart button.ajax_add_to_cart i.wf-mr-2{
        margin-right: 0 !important;
    }
}

tr.mgnu-samples-tester-allowance {
}
tr.mgnu-samples-tester-allowance > td > span.amount > ul {
    padding-top: 20px;
    list-style-type: none;
}

/* Reset transitions that slow down/bug the menu (header/nav only) */
header a,
header button,
header input,
header label,
header select,
header summary,
header textarea,
header area {
    transition: none !important;
}

.mgnu-vat-note {
    font-size: 0.9em;
    opacity: 0.85;
}

/* returns form */
.mgnu-field {
    margin: 0 0 10px 0;
}
.mgnu-field label {
    font-weight: bold;
    text-transform: uppercase;
}

.mgnu-button {
    margin: 10px 0;
}

/**
 * WC Product Table PRO - child rows (cross-sells) styling.
 */
/* WCPT child rows (cross-sells) */
.wcpt tr.mgnu-wcpt-child-row {
    background: rgba(0,0,0,0.03);
}

.wcpt tr.mgnu-wcpt-child-row td:first-child {
    padding-left: 1.75rem;
    position: relative;
}

.wcpt tr.mgnu-wcpt-child-row td:first-child::before {
    content: "↳\00a0"; /* NBSP, avoids trimming */
    position: absolute;
    left: 0.5rem;
    opacity: 0.55;
}

/* Optional: different shades by type */
.wcpt tr.mgnu-wcpt-child--campioncino {
    background: rgba(0, 0, 0, 0.025);
    font-size: .8em;
    ;
}

.wcpt tr.mgnu-wcpt-child--tester {
    background: rgba(0, 0, 0, 0.045);
    font-size: .8em;
}

.wcpt tr.mgnu-wcpt-child--marketing {
    background: rgba(0, 0, 0, 0.035);
    font-size: .8em;
}

.wcpt tr[data-mgnu-child-type="tester"] td:nth-child(2) {
    font-style: italic;
}
.wcpt tr[data-mgnu-child-type="campioncino"] td:nth-child(2) {
    font-style: italic;
}
.wcpt tr[data-mgnu-child-type="marketing"] td:nth-child(2) {
    font-style: italic;
}

/**
 * WCPT - Badge (pill) near SKU for child rows (all devices)
 * Uses: tr[data-mgnu-child-type="..."] + .wcpt-sku::after
 */

/* Base pill (shows only when a type sets the content) */
.wcpt tr.mgnu-wcpt-child-row .wcpt-sku::after,
.wcpt tr.mgnu-wcpt-case-refill .wcpt-sku::after {
  display: inline-block;
  margin-left: .5rem;
  padding: .12rem .5rem;
  border-radius: 999px;
  font-size: .75em;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: .02em;
  background: rgba(0,0,0,0.08);
  opacity: .9;
  vertical-align: middle;
  content: "";
}

/* Text per type */
.wcpt tr[data-mgnu-child-type="tester"] .wcpt-sku::after {
  content: "Tester";
  background: rgba(0,0,0,0.12);
}

.wcpt tr[data-mgnu-child-type="campioncino"] .wcpt-sku::after {
  content: "Campioncino";
  background: rgba(0,0,0,0.09);
}

.wcpt tr[data-mgnu-child-type="marketing"] .wcpt-sku::after {
  content: "Marketing";
  background: rgba(0,0,0,0.10);
}

.wcpt tr[data-mgnu-case-refill="case"] .wcpt-sku::after {
  content: "Case";
  background: rgba(242,245,39,0.8);
}

.wcpt tr[data-mgnu-case-refill="refill"] .wcpt-sku::after {
  content: "Refill";
  background: rgba(242,245,39,0.8);
}

/**
 * WC Product Table PRO - child rows (cross-sells) styling - MOBILE override
 * Works with WCPT "stacked" mobile layout (single <td> containing sku/title/price/qty/button).
 */
@media (max-width: 767px) {

    /* Base child-row background (same as desktop) */
    .wcpt tr.mgnu-wcpt-child-row {
        background: rgba(0,0,0,0.03);
    }

    /* Indent + arrow on the only/first cell (mobile collapses to 1 cell anyway) */
    .wcpt tr.mgnu-wcpt-child-row td:first-child,
    .wcpt tr.mgnu-wcpt-child-row td[data-wcpt-column-index="0"] {
        padding-left: 1.75rem;
        position: relative;
    }

    .wcpt tr.mgnu-wcpt-child-row td:first-child::before,
    .wcpt tr.mgnu-wcpt-child-row td[data-wcpt-column-index="0"]::before {
        content: "↳\00a0"; /* NBSP, avoids trimming */
        position: absolute;
        left: 0.5rem;
        top: 0.8rem !important;
        opacity: 0.55;
        line-height: 1;
        pointer-events: none;
    }

    /* Optional: different shades by type (same intent as desktop) */
    .wcpt tr.mgnu-wcpt-child--campioncino {
        background: rgba(0, 0, 0, 0.025);
        font-size: .8em !important;
    }

    .wcpt tr.mgnu-wcpt-child--tester {
        background: rgba(0, 0, 0, 0.045);
        font-size: .8em !important;
    }

    .wcpt tr.mgnu-wcpt-child--marketing {
        background: rgba(0, 0, 0, 0.035);
        font-size: .8em !important;
    }

    /* Title italic on mobile:
       nth-child(2) is not present, so target the title span directly */
    .wcpt tr[data-mgnu-child-type="tester"] .wcpt-title,
    .wcpt tr[data-mgnu-child-type="campioncino"] .wcpt-title,
    .wcpt tr[data-mgnu-child-type="marketing"] .wcpt-title {
        font-style: italic;
    }

    /* --- Small mobile layout polish (optional but useful) --- */

    /* Reduce vertical spacing between stacked rows inside the cell */
    .wcpt tr.mgnu-wcpt-child-row td .wcpt-item-row {
        margin: 0.15rem 0;
    }

    /* Make SKU a bit “label-like” */
    .wcpt tr.mgnu-wcpt-child-row .wcpt-sku {
        opacity: 0.85;
        font-size: 0.8em !important;
    }

    /* Give the title a touch more prominence */
    .wcpt tr.mgnu-wcpt-child-row .wcpt-title {
        display: inline-block;
        line-height: 1.2;
    }

    /* The row that contains price/qty/button on mobile is the third item-row in your markup.
       Without stable IDs, we just make sure quantity + button align nicely. */
    .wcpt tr.mgnu-wcpt-child-row .wcpt-quantity {
        margin-left: 0.35rem;
        vertical-align: middle;
    }

    .wcpt tr.mgnu-wcpt-child-row .wcpt-button {
        margin-left: 0.35rem;
        vertical-align: middle;
    }

    /* Slightly smaller cart badge for tight spaces */
    .wcpt tr.mgnu-wcpt-child-row .wcpt-cart-badge-number {
        transform: scale(0.9);
        transform-origin: center;
    }
}

/**
 * WCPT - Mobile badge (pill) near SKU for child rows
 */
@media (max-width: 767px) {

    /* Pill base (hidden until a type sets content) */
    .wcpt tr.mgnu-wcpt-child-row .wcpt-sku::after,
    .wcpt tr.mgnu-wcpt-case-refill .wcpt-sku::after {
        display: inline-block;
        margin-left: .5rem;
        padding: .12rem .5rem;
        border-radius: 999px;
        font-size: .75em;
        line-height: 1.2;
        font-weight: 600;
        letter-spacing: .02em;
        background: rgba(0,0,0,0.08);
        opacity: .9;
        vertical-align: middle;
        content: "";
    }

    /* Text per type */
    .wcpt tr[data-mgnu-child-type="tester"] .wcpt-sku::after {
        content: "Tester";
    }

    .wcpt tr[data-mgnu-child-type="campioncino"] .wcpt-sku::after {
        content: "Campioncino";
    }

    .wcpt tr[data-mgnu-child-type="marketing"] .wcpt-sku::after {
        content: "Marketing";
    }

    .wcpt tr[data-mgnu-case-refill="case"] .wcpt-sku::after {
        content: "Case";
    }

    .wcpt tr[data-mgnu-case-refill="refill"] .wcpt-sku::after {
        content: "Refill";
    }

    /* (Optional) Slightly different tint per type */
    .wcpt tr[data-mgnu-child-type="tester"] .wcpt-sku::after {
        background: rgba(0,0,0,0.12);
    }

    .wcpt tr[data-mgnu-child-type="campioncino"] .wcpt-sku::after {
        background: rgba(0,0,0,0.09);
    }

    .wcpt tr[data-mgnu-child-type="marketing"] .wcpt-sku::after {
        background: rgba(0,0,0,0.10);
    }

    .wcpt tr[data-mgnu-case-refill="case"] .wcpt-sku::after {
        background: rgba(242,245,39,0.8);
    }

    .wcpt tr[data-mgnu-case-refill="refill"] .wcpt-sku::after {
        background: rgba(242,245,39,0.8);
    }
}

/* Mobile footer: hide ONLY the search icon (magnifier) */
@media (max-width: 1024px) {
    .header-search-button i,
    .header-search-button {
        display: none !important;
    }

    .header-search-button {
        gap: 0 !important;
    }

    .header-search-button i + span {
        margin-left: 0 !important;
    }
}

/* Just for the tahnkyou page, for offers and dynamic promos (driven by mu-plugin) */

/* Re-show children totals (you already fixed this) */
.woocommerce-order-received .b2bking-cart-item-child .product-total,
.woocommerce-view-order   .b2bking-cart-item-child .product-total {
  display: table-cell !important;
}
