/**
Theme Name: Baratto
Author: DIagramma
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: baratto
Template: astra
*/


/* Forza Dokan a usare il font del body/theme */
.dokan-dashboard-wrap {
  font-family: var(--ast-body-font-family);
}

.woocommerce-js #respond input#submit, .woocommerce-js a.button, .woocommerce-js button.button, .woocommerce-js input.button {
  text-align: center;
}

.ast-on-card-button.ast-select-options-trigger.product_type_simple.add_to_cart_button.ajax_add_to_cart,
.ast-on-card-button.ast-select-options-trigger.product_type_simple 
{
  display: none;
}

/* ------------------------------------------------------------
RIMOZIONE PULSANTE AGGIUNGI AL CARRELLO (oltre al codice PHP)
-------------------------------------------------------------*/
/* Shop + Categorie */
.post-type-archive-product .add_to_cart_button,
.tax-product_cat .add_to_cart_button,
.post-type-archive-product a.product_type_simple,
.tax-product_cat a.product_type_simple,
.post-type-archive-product a.product_type_variable,
.tax-product_cat a.product_type_variable {
    display: none !important;
}

/* Correlati + crossselling + upselling */
.related .add_to_cart_button,
.upsells .add_to_cart_button,
.cross-sells .add_to_cart_button,
.related a.product_type_simple,
.upsells a.product_type_simple,
.cross-sells a.product_type_simple,
.related a.product_type_variable,
.upsells a.product_type_variable,
.cross-sells a.product_type_variable {
    display: none !important;
}

/* Tab Dokan: Altri prodotti del venditore */
.more_seller_product_tab .add_to_cart_button,
.more_seller_product_tab a.product_type_simple,
.more_seller_product_tab a.product_type_variable,
.more_seller_product_tab a.product_type_grouped,
.more_seller_product_tab a.product_type_external {
    display: none !important;
}

/* Pagina Store Dokan */
.dokan-store .add_to_cart_button,
.dokan-store a.product_type_simple,
.dokan-store a.product_type_variable,
.dokan-store a.product_type_grouped,
.dokan-store a.product_type_external {
    display: none !important;
}

.button.product_type_simple.add_to_cart_button {display:none !important;}

/* ------------------------------------------------------------
        /RIMOZIONE PULSANTE AGGIUNGI AL CARRELLO
-------------------------------------------------------------*/



/* DOKAN DASHBOARD */
/*.dokan-dashboard .ast-article-single {
	padding: 0;
	background-color: var(--ast-global-color-4)!important;
}*/

.ast-above-header.ast-above-header-bar {
	background-color:var(--ast-global-color-1)!important;
}
.ast-primary-header-bar {
	background-color:var(--ast-global-color-0) !important;
}
.home .ast-below-header-wrap {
	/*background-color:rgba(0,0,0,0.2);*/
}
.home .ast-builder-grid-row.ast-grid-center-col-layout-only {padding:40px 8px;}

.dokan-dashboard .dokan-table tbody td[data-title="Guadagno"], .dokan-dashboard .dokan-table tbody td[data-title="Tipo"] {
	/*display: none;*/
}

.dokan-dashboard .dokan-table thead th:nth-last-child(3), .dokan-dashboard .dokan-table thead th:nth-last-child(4) {
	/*display: none;*/
}

/* MENÙ HEADER */
.ast-desktop .ast-builder-menu-1 .menu-item .sub-menu .menu-link {
    border-style: solid;
    padding: 10px;
}

.ast-site-header-cart i.astra-icon:after {
	top: -8px;
	right: -9px;
	font-size: 10px;
	padding-right: 1px;
	line-height: 14px;
	height: 14px;
	min-width: 14px;
}

.ast-header-search, .ast-header-search *:not(button) {
	width: 100%!important;
}

.ast-search-menu-icon {
	z-index: unset;
}

/* Nasconde il campo per il prezzo scontato in fase di creazione prodotto */
 .dokan-add-new-product-popup .sale-price {
    display: none;
}

.product-edit-container .wp-editor-wrap {
  border:none !important;
}

/* Popup creazione prodotto Dokan */
#dokan-add-product-popup .dokan-form-group:has(> label[for="product_brand"]),
#dokan-add-product-popup .dokan-form-group:has(> label[for="product_tag_search"]) {
    display: none !important;
}

.woocommerce-tabs .tabs.wc-tabs .shipping_tab {display:none !important;}

/* GRAFICA PAGINA CHAT */
.page-id-101 .entry-content ul {
	list-style: none;
}
.page-id-101 .entry-content ul li {
	font-size: 18px;	
	transition: .5s ease;
}
.page-id-101 .entry-content ul li:hover {
	background-color: var(--ast-border-color);
}
.page-id-101 .entry-content ul li a {
	border-bottom: 1px solid var(--ast-border-color);
	text-decoration: none;
	padding: 15px 10px;
	display: block;
	width: 100%;
}
.page-id-101 .entry-content ul li a:hover {
	color: var(--ast-global-color-2);
}
/* /GRAFICA PAGINA CHAT */

/* FORM PAGINA LOGIN */
.show_if_seller {
	display: block!important;
}
/* /FORM PAGINA LOGIN */

/* PAGINA STORE */
@media (min-width: 1000px) {
	.dokan-store-wrap .dokan-store-sidebar {
		flex: 0 1 35%;
		background-color: #fff;
		padding: 20px;
	}
}

.search-results .woocommerce-breadcrumb {display:none;}

/*.dokan-store .ast-woocommerce-container {
	padding: 0;
	background-color: unset;
}

.dokan-single-store .profile-frame.profile-frame-no-banner .profile-layout-layout3 .profile-info-summery-wrapper .profile-info-summery {
	background-color: unset;
}

.dokan-single-store .profile-frame.profile-frame-no-banner .profile-layout-layout3 .profile-info-summery-wrapper {
	background-color: #fff;
} */

.ast-header-account-wrap .ast-header-account-text {
    font-size: 0.8rem;
}


/* White background for the mega menu panel */
.ast-builder-menu-1 .astra-full-megamenu-wrapper,
.ast-builder-menu-1 .astra-full-megamenu-wrapper ul {
    background-color: #ffffff !important;
}

/* Remove divider/border lines from mega menu and sub menus */
.ast-builder-menu-1 .astra-full-megamenu-wrapper,
.ast-builder-menu-1 .astra-full-megamenu-wrapper ul,
.ast-builder-menu-1 .sub-menu {
    border: none !important;
    box-shadow: none !important;
}

/* Style for all menu links inside the mega menu */
.ast-builder-menu-1 .astra-full-megamenu-wrapper a.menu-link {
    color: var( --e-global-color-astglobalcolor0 ) !important; /* use the theme’s green */
    font-size: 14px !important;
    line-height: 1.2 !important;     /* tighter line spacing */
    font-weight: normal !important;  /* remove bold */
    text-transform: none;
    border: none !important;
}

/* Style for heading items within the mega menu (items that have sub‑menus) */
.ast-builder-menu-1 .astra-full-megamenu-wrapper li.menu-item-has-children > a.menu-link {
    color: var(--ast-global-color-3) !important; /* dark palette colour for headings */
    font-weight: bold !important;
    pointer-events: none; /* headings act as labels, not links */
	margin-bottom: 5px;
}

/* Optional: ensure that hovering headings doesn’t change colour */
.ast-builder-menu-1 .astra-full-megamenu-wrapper li.menu-item-has-children > a.menu-link:hover,
.ast-builder-menu-1 .astra-full-megamenu-wrapper li.menu-item-has-children > a.menu-link:focus {
    color: var(--ast-global-color-3) !important;
}

/* Optional: adjust padding/margins to reduce vertical spacing further */
.ast-builder-menu-1 .astra-full-megamenu-wrapper li > a.menu-link {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

/*-----------------------------------------------------
	HOMEPAGE
------------------------------------------------------*/
.elementor-shortcode .woocommerce ul.products li.product {
  height:100%;
}
.elementor-shortcode .woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
  margin-top: 1em;
}
.elementor-shortcode .woocommerce ul.products li.product.desktop-align-left .button {
    margin-top: auto;
    width: 100%;
    align-self: center;
    text-align: center;
    margin-bottom: 0;
}


/*-----------------------------------------------------
	PAGINA ELENCO PRODOTTI/NEGOZIO
------------------------------------------------------*/
/* 1. Rendiamo il contenitore del prodotto un flexbox verticale */
.site .products .product.type-product {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    /*background-color: #fff; /* Assicura lo sfondo bianco se serve */
    padding-bottom: 15px;    /* Spazio extra in fondo alla card */
}

/* 2. Facciamo in modo che il riepilogo (Titolo e Prezzo) occupi tutto lo spazio disponibile */
.astra-shop-summary-wrap {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: 15px; /* Spazio tra prezzo e bottone */
}

/* 3. Spingiamo il bottone "Richiedi Baratto" esattamente in fondo */
.product.type-product a.button {
    margin-top: auto !important; /* Il trucco magico: spinge l'elemento in fondo al contenitore flex */
    display: block;
    text-align: center;
    width: 100%; /* Opzionale: rende i bottoni tutti della stessa larghezza */
}

/* 4. Opzionale: allineamento titoli se sono di lunghezze molto diverse */
.woocommerce-loop-product__title {
    min-height: 2.5em; /* Assicura che i titoli occupino almeno due righe visive */
    margin-bottom: 5px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__link, 
.woocommerce-page ul.products li.product .woocommerce-loop-product__link {
  margin-top: 10px;
}

/*-----------------------------------------------------
  RICERCA PRODOTTI CUSTOM - ALLINEAMENTO ORIZZONTALE
------------------------------------------------------*/

.search_custom_baratto {
  margin: 1em 0;
  display: flex;
  flex-direction: row; /* Forza l'allineamento in riga */
  flex-wrap: nowrap;   /* Impedisce categoricamente di andare a capo su desktop */
  gap: 10px;           /* Spazio tra i blocchi */
  width: 100%;
  align-items: stretch;
}

/* Applichiamo lo stesso stile a tutti e 4 i figli diretti */
.search_custom_baratto_cgen,
.search_custom_baratto_province,
.search_custom_baratto #categoria.postform,
.search_custom_baratto_invio {
  flex: 1;            /* Ognuno prende esattamente 1/4 dello spazio disponibile */
  width: 0;           /* Necessario in alcuni browser per forzare la parità col flex-grow */
  min-width: 0;       /* Rimuove vincoli che potrebbero spingere il pulsante fuori riga */
  height: 40px;       /* Altezza uniforme */
  font-size: 12px;
  padding: 5px 10px;
  box-sizing: border-box;
  border-radius: 3px !important;
}

/* Stile specifico per il bottone per differenziarlo */
.search_custom_baratto_invio {
  cursor: pointer;
  color: white;
  border: none;
  font-weight: bold;
}

.woocommerce-ordering select.orderby {
  border-bottom:1px solid #6f6f6f;
  font-size:12px;
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
  .search_custom_baratto {
    flex-wrap: wrap; /* Su mobile tornano a impilarsi */
  }
  
  .search_custom_baratto_cgen,
  .search_custom_baratto_province,
  .search_custom_baratto #categoria.postform,
  .search_custom_baratto_invio {
    flex: 1 1 100%;   /* Ogni elemento occupa il 100% della larghezza */
    width: 100%;
  }
}

/*-----------------------------------------------------
	SIDEBAR PAGINA PRODOTTI
------------------------------------------------------*/

@media (min-width: 993px) {
    .ast-left-sidebar #secondary {
      padding-right:inherit !important; 
    }
}

.widget-area .wp-block-heading {
  color:#067647;
}

/* --- Sfondo bianco per l'intera area sidebar --- */
.widget-area.secondary {
    background-color: #ffffff !important;
    padding: 25px;
    border-radius: 3px;
    /* Opzionale: un'ombra leggerissima per dare profondità sullo sfondo grigio del sito */
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

/* --- Reset liste --- */
.wc-block-product-categories-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* --- Voci Parent (Livello 0) --- */
.wc-block-product-categories-list--depth-0 > .wc-block-product-categories-list-item {
    margin-bottom: 30px !important; /* Margine ampio tra un gruppo e l'altro */
    /*padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0; /* Linea di chiusura per ogni blocco parent */
}

.wc-block-product-categories-list li {
  padding-left: 0 !important;
}

.wc-block-product-categories-list--depth-0 > .wc-block-product-categories-list-item > a {
    display: block;
    font-weight: 700; /* Grassetto per i parent */
    font-size: 14px;
    color: #111;
    text-decoration: none;
    margin-bottom: 12px; /* Spazio prima delle sottocategorie */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Sottocategorie (Livello 1) --- */
.wc-block-product-categories-list--depth-1 {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.wc-block-product-categories-list--depth-1 .wc-block-product-categories-list-item {
    border-bottom: 1px solid #f7f7f7; /* Border bottom su ogni singola sottovoce */
    padding: 8px 0;
}

/* Rimuoviamo il bordo dall'ultima sottovoce per non sovrapporsi a quello del parent */
.wc-block-product-categories-list--depth-1 .wc-block-product-categories-list-item:last-child {
    border-bottom: none;
}

.wc-block-product-categories-list--depth-1 .wc-block-product-categories-list-item a {
    font-weight: 400; /* Normale per le sottovoci */
    font-size: 14px;
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wc-block-product-categories-list--depth-1 .wc-block-product-categories-list-item a:hover {
    color: #1b9c85 !important; /* Colore al passaggio */
}

/* --- Titolo Widget (se presente) --- */
.wp-block-heading {
    font-weight: 800;
    margin-bottom: 25px;
    color: #000;
}

/*-----------------------------------------------------
	Dokan
------------------------------------------------------*/
#dokan-store-listing-filter-wrap .right .item .sort-by.item {
	display: none;
}

@media (max-width: 768px) {
    .ast-separate-container .entry-header {
        padding-top: 1em;
    }
}

@media (max-width: 1199px) {
    .dokan-single-store .profile-frame .profile-info-box.profile-layout-layout3 .profile-info-summery-wrapper .profile-info-summery .profile-info {
        padding: 0 0 0 0px;
    }
}










/* =========================================
   MOBILE UX PULITA - TABELLA PRODOTTI DOKAN
   ========================================= */

  .dokan-products-page-custom .dokan-w12 {display: none;}

  /* contenitore tabella */
  .dokan-products-page-custom #dokan-product-list-table {
    width: 100% !important;
    table-layout: fixed !important;
    border: 0 !important;
    background: transparent !important;
    display: block;
  }

  .dokan-products-page-custom #dokan-product-list-table thead {
    display: none !important;
  }

  .dokan-products-page-custom #dokan-product-list-table tbody {
    display: block;
    width: 100%;
  }

  /* ogni riga prodotto come card */
  .dokan-products-page-custom #dokan-product-list-table tbody tr:not(.dokan-product-list-inline-edit-form) {
    display: block;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e3e8e4;
    border-radius: 8px;
    margin: 0 0 12px 0;
    padding: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
  }

  /* quick edit sempre nascosto */
  .dokan-products-page-custom #dokan-product-list-table tbody tr.dokan-product-list-inline-edit-form {
    display: none !important;
  }

  /* reset celle */
  .dokan-products-page-custom #dokan-product-list-table tbody td,
  .dokan-products-page-custom #dokan-product-list-table tbody th {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
    border: 0 !important;
    padding: 0;
    margin: 0;
    background: transparent !important;
    white-space: normal !important;
	  margin-left: 0 !important;
  }

  /* prima riga visibile: checkbox + immagine + nome */
  .dokan-products-page-custom #dokan-product-list-table tbody th.check-column,
  .dokan-products-page-custom #dokan-product-list-table tbody td.column-thumb,
  .dokan-products-page-custom #dokan-product-list-table tbody td.column-primary {
    display: inline-block;
    vertical-align: top;
  }

  /* struttura header card */
  .dokan-products-page-custom #dokan-product-list-table tbody tr:not(.dokan-product-list-inline-edit-form) {
    position: relative;
    padding: 12px 12px 10px 12px;
  }

  /* checkbox */
  .dokan-products-page-custom #dokan-product-list-table tbody th.check-column,
  .dokan-products-page-custom #dokan-product-list-table tbody td.check-column,
  .dokan-products-page-custom #dokan-product-list-table tbody th.dokan-product-select,
  .dokan-products-page-custom #dokan-product-list-table tbody td.dokan-product-select {
    width: 22px !important;
    min-width: 22px;
    margin-right: 6px;
    padding-top: 4px;
  }

  .dokan-products-page-custom #dokan-product-list-table tbody th.check-column input,
  .dokan-products-page-custom #dokan-product-list-table tbody td.check-column input {
    transform: scale(0.95);
  }

  /* thumb */
  .dokan-products-page-custom #dokan-product-list-table tbody td.column-thumb {
    width: 46px !important;
    min-width: 46px;
    margin-right: 10px;
  }

  .dokan-products-page-custom #dokan-product-list-table tbody td.column-thumb::before {
    display: none !important;
  }

  .dokan-products-page-custom #dokan-product-list-table tbody td.column-thumb img {
    width: 42px !important;
    height: 42px !important;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e3e8e4;
    display: block;
    background: #fff;
  }

  /* titolo prodotto */
  .dokan-products-page-custom #dokan-product-list-table tbody td.column-primary {
    width: calc(100% - 90px) !important;
    min-width: 0;
    padding-right: 28px;
    margin-top: 10px;
  }

  .dokan-products-page-custom #dokan-product-list-table tbody td.column-primary::before {
    display: none !important;
  }

  .dokan-products-page-custom #dokan-product-list-table tbody td.column-primary strong,
  .dokan-products-page-custom #dokan-product-list-table tbody td.column-primary strong a {
    display: block;
    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    margin: 0;
  }

  /* azioni sotto il titolo */
  .dokan-products-page-custom #dokan-product-list-table .row-actions {
    display: block !important;
    margin-top: 6px;
    font-size: 11px !important;
    line-height: 1.35;
    color: #64748b;
    white-space: normal !important;
    margin-bottom: 10px;
  }

  .dokan-products-page-custom #dokan-product-list-table .row-actions a {
    font-size: 11px !important;
    color: #0f766e;
    text-decoration: none;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .dokan-products-page-custom #dokan-product-list-table .row-actions a:hover {
    text-decoration: underline;
  }

  /* pulsante espandi nativo */
  .dokan-products-page-custom #dokan-product-list-table .toggle-row {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 12px;
    right: 10px;
    width: 20px;
    height: 20px;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
  }

  /* i dettagli sono nascosti di default su mobile */
  .dokan-products-page-custom #dokan-product-list-table tbody td.post-status,
  .dokan-products-page-custom #dokan-product-list-table tbody td[data-title="SKU"],
  .dokan-products-page-custom #dokan-product-list-table tbody td[data-title="Disponibilità"],
  .dokan-products-page-custom #dokan-product-list-table tbody td[data-title="Prezzo"],
  .dokan-products-page-custom #dokan-product-list-table tbody td[data-title="Visualizzazioni"],
  .dokan-products-page-custom #dokan-product-list-table tbody td[data-title="Guadagno"],
  .dokan-products-page-custom #dokan-product-list-table tbody td[data-title="Tipo"],
  .dokan-products-page-custom #dokan-product-list-table tbody td.post-date {
    display: none;
  }

  /* quando la riga è aperta, i dettagli compaiono */
  .dokan-products-page-custom #dokan-product-list-table tbody tr.is-expanded td.post-status,
  .dokan-products-page-custom #dokan-product-list-table tbody tr.is-expanded td[data-title="SKU"],
  .dokan-products-page-custom #dokan-product-list-table tbody tr.is-expanded td[data-title="Disponibilità"],
  .dokan-products-page-custom #dokan-product-list-table tbody tr.is-expanded td[data-title="Prezzo"],
  .dokan-products-page-custom #dokan-product-list-table tbody tr.is-expanded td[data-title="Visualizzazioni"],
  .dokan-products-page-custom #dokan-product-list-table tbody tr.is-expanded td[data-title="Guadagno"],
  .dokan-products-page-custom #dokan-product-list-table tbody tr.is-expanded td[data-title="Tipo"],
  .dokan-products-page-custom #dokan-product-list-table tbody tr.is-expanded td.post-date {
    display: block;
    width: 100% !important;
    padding: 7px 0;
    margin-left: 28px;
    border-top: 1px dashed #e8ece9 !important;
  }

  /* etichette dei campi nei dettagli */
  .dokan-products-page-custom #dokan-product-list-table tbody tr.is-expanded td[data-title]::before,
  .dokan-products-page-custom #dokan-product-list-table tbody tr.is-expanded td.post-date::before {
    content: attr(data-title);
    display: inline-block;
    min-width: 92px;
    margin-right: 8px;
    font-size: 11px !important;
    font-weight: 600;
    color: #475569;
    vertical-align: top;
  }

  /* badge */
  .dokan-products-page-custom #dokan-product-list-table .post-status .dokan-label,
  .dokan-products-page-custom #dokan-product-list-table mark.instock,
  .dokan-products-page-custom #dokan-product-list-table mark.outofstock {
    display: inline-block;
    font-size: 10px !important;
    line-height: 1;
    padding: 4px 7px;
    border-radius: 999px;
    font-weight: 700;
  }

  .dokan-products-page-custom #dokan-product-list-table .dokan-label-success,
  .dokan-products-page-custom #dokan-product-list-table mark.instock {
    background: #e8f7ec;
    color: #15803d;
  }

  .dokan-products-page-custom #dokan-product-list-table mark.outofstock {
    background: #fdecec;
    color: #b91c1c;
  }

  /* prezzo, sku, visualizzazioni */
  .dokan-products-page-custom #dokan-product-list-table tbody tr.is-expanded td[data-title="SKU"],
  .dokan-products-page-custom #dokan-product-list-table tbody tr.is-expanded td[data-title="Prezzo"],
  .dokan-products-page-custom #dokan-product-list-table tbody tr.is-expanded td[data-title="Visualizzazioni"],
  .dokan-products-page-custom #dokan-product-list-table tbody tr.is-expanded td.post-date {
    color: #334155;
    font-size: 11px !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* nasconde del tutto i campi che non vuoi vedere */
  .dokan-products-page-custom #dokan-product-list-table tbody td[data-title="Guadagno"],
  .dokan-products-page-custom #dokan-product-list-table tbody td[data-title="Tipo"],
  .dokan-products-page-custom #dokan-product-list-table tbody td.post-date,
  .dokan-products-page-custom #dokan-product-list-table tbody tr.is-expanded td[data-title="Guadagno"],
  .dokan-products-page-custom #dokan-product-list-table tbody tr.is-expanded td[data-title="Tipo"],
  .dokan-products-page-custom #dokan-product-list-table tbody tr.is-expanded td.post-date {
    display: none !important;
  }

  /* riduci rumore visivo */
  .dokan-products-page-custom #dokan-product-list-table .product-type {
    display: none !important;
  }

  /* filtri mobile */
  .dokan-products-page-custom .product-listing-top,
  .dokan-products-page-custom .dokan-product-date-filter,
  .dokan-products-page-custom .dokan-product-search-form,
  .dokan-products-page-custom .product-listing-top form {
    width: 100% !important;
    display: block !important;
    float: none !important;
  }

  .dokan-products-page-custom .product-listing-top select,
  .dokan-products-page-custom .product-listing-top input[type="search"],
  .dokan-products-page-custom .product-listing-top input[type="text"],
  .dokan-products-page-custom .dokan-product-search-form input[type="search"],
  .dokan-products-page-custom .dokan-product-search-form input[type="text"],
  .dokan-products-page-custom .dokan-product-date-filter select {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    margin: 0 0 8px 0 !important;
    font-size: 12px !important;
  }

  .dokan-products-page-custom .product-listing-top .dokan-btn,
  .dokan-products-page-custom .product-listing-top button,
  .dokan-products-page-custom .product-listing-top input[type="submit"] {
    font-size: 12px !important;
  }

  /* niente larghezze rigide ereditate */
  .dokan-products-page-custom .dokan-w5,
  .dokan-products-page-custom .dokan-w6,
  .dokan-products-page-custom .dokan-w7,
  .dokan-products-page-custom .dokan-w8,
  .dokan-products-page-custom .dokan-w4,
  .dokan-products-page-custom .dokan-dashboard-content .dokan-form-inline {
    width: 100% !important;
    float: none !important;
  }



  


/*------------------------------------------------------------
  OTTIMIZZAZIONE PAGINA E POPUP INSERIMENTO PRODOTTI
-----------------------------------------------------------*/
  .dokan-edit-row.dokan-catalog-mode, 
  .dokan-other-options.dokan-edit-row, 
  .dokan-linked-product-options.dokan-edit-row,
  .dokan-product-inventory.dokan-edit-row, 
  .dokan-product-shipping-tax.dokan-edit-row,
  .dokan-external-product-content,
  .edit-slug-box
  {
    display: none !important;
  }

  .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li:hover:not(.active) ul.navigation-submenu {
    padding: 5px !important;
    background-color: #0f172a !important;
  }

  .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.active:after {
    border-color: transparent #edf6ee transparent transparent !important;
    border-left-color: #edf6ee !important;
  }

  .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li:hover:not(.active).has-submenu:after {
    border-color: transparent #0f172aed transparent transparent;
    border-left-color: #0f172aed;
  }

  

  .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li ul.navigation-submenu li a {
    background:#0f172a !important; 
  }

  .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li ul.navigation-submenu li:hover:before {
    border:none !important;
  }

  .dokan-dashboard header.dokan-dashboard-header h1 {
    font-size: 28px;
  }

  .dokan-theme-astra .dokan-dashboard-wrap .dokan-select-product-category {
    background-color:#ffffff;
  }

  .product-edit-new-container .dokan-attribute-variation-options .dokan-product-attribute-wrapper .dokan-attribute-type select {
    margin-bottom: 10px;
  }

.dokan-theme-astra .dokan-dashboard-wrap .dokan-btn:not(.tips), .dokan-theme-astra .dokan-dashboard-wrap input:not([type=checkbox]):not([type=radio]) {
  font-size: 15px;
}

  input[type='submit'].dokan-btn-lg {
    border-radius: 3px;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  }

  .dokan-attribute-variation-options.dokan-edit-row {
    margin-bottom: 10px;
  }
  .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.active:after {
    top: 1.4rem !important;
  }



.dokan-dashboard-menu li.active > a {
    color: #fff !important;
}

.dokan-dashboard-menu li.active {
    background: #1b9c85 !important;
}



/*--------------- MENU SIDEBAR PAGINE ESTERNE A DOKAN: Wallet e Messaggi -------------------*/
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.active, 
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li:hover, 
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.active, 
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.dokan-common-links a:hover {
    background: #1b9c85 !important;
}
.dokan-dashboard .dokan-dash-sidebar, .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu {
    background: #0f172a !important;
}

.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.active:after {
    left: 93%;
    top: 1.3rem;
    border: transparent solid;
    content: ' ';
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: transparent #fff transparent transparent;
    border-left-color: #fff;
    border-width: 16px 16px 16px 0;
    margin-top: -16px;
}
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li:hover:not(.active).has-submenu:after {
    border-color: transparent #0f172aed transparent transparent !important;
    border-left-color: #0f172aed !important;
}
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li:hover:not(.active).has-submenu:after {
    right: 0;
    top: 1.3rem;
    border: transparent solid;
    content: ' ';
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: transparent var(--dokan-sidebar-background-color, #322067) transparent transparent;
    border-left-color: var(--dokan-sidebar-background-color, #322067);
    border-width: 16px 16px 16px 0;
    margin-top: -16px;
    z-index: 990;
}
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.active, 
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li:hover, 
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.active {
    background-color: #1b9c85 !important;
}
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li:hover {
    color: #fff;
}
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li:hover {
    color: #ffffff !important;
}
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li a {
    border-bottom:0;
}
.page-id-101 .entry-content ul li a:hover {
    color: #ffffff !important;
    background:#1b9c85;
}


.baratto-chat-list { list-style: none; padding-left: 0; margin: 20px 0 0; }
.baratto-chat-list li { margin: 8px 0; }
.baratto-chat-list a {
    display: block;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e3e8e4;
    border-radius: 8px;
    text-decoration: none;
}
.baratto-chip {
    display: inline-block;
    min-width: 16px;
    padding: 0 6px;
    line-height: 16px;
    background: #e11;
    color: #fff;
    border-radius: 8px;
    font-size: 12px;
    margin-left: 6px;
}
/*--------------- /MENU SIDEBAR PAGINE ESTERNE A DOKAN: Wallet e Messaggi -------------------*/

/*--------------- PAGINA WALLET -------------------*/
.woo-wallet-my-wallet-container .woo-wallet-balance-card {
  background-color:#1b9c85 !important;
}

.woo-wallet-my-wallet-container .woo-wallet-nav-tab.active {
  color:#1b9c85 !important;
}

.woo-wallet-nav-tabs {
  display: none !important;
}

.woo-wallet-my-wallet-container .woo-wallet-balance-card .woo-wallet-price {
  font-size:2.5rem !important;
}

.woo-wallet-my-wallet-container .woo-wallet-transactions-table td {
  font-size: 12px !important;
}

@media (max-width: 768px) {
    .woo-wallet-my-wallet-container .woo-wallet-balance-card .woo-wallet-price {
        font-size: 1.5rem !important;
    }
    .woo-wallet-my-wallet-container .woo-wallet-referral-stats table, .woo-wallet-my-wallet-container .woo-wallet-transactions-table {
        min-width: auto !important;
    }
}


/* =========================================================
   WALLET - tabella transazioni responsive mobile
   Scope solo pagina wallet Dokan / Woo Wallet
   ========================================================= */

.wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-list {
  width: 100%;
  overflow: hidden;
}

.wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}

.wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table th,
.wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table td {
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid #e6ece8;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table th {
  font-weight: 600;
  color: #0F172A;
  background: #f7faf8;
}

.wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table td.amount,
.wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table th:last-child {
  text-align: right !important;
  white-space: nowrap;
}

.wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table td.amount.debit {
  color: #b42318;
  font-weight: 600;
}

.wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table td.amount.credit {
  color: #067647;
  font-weight: 600;
}

/* ---------- TABLET ---------- */
@media (max-width: 921px) {
  .wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table th,
  .wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table td {
    padding: 12px 14px;
    font-size: 13px;
  }
}

/* ---------- MOBILE: tabella trasformata in card ---------- */
@media (max-width: 767px) {

  .wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table,
  .wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table thead,
  .wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table tbody,
  .wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table tr,
  .wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table th,
  .wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table td {
    display: block;
    width: 100%;
  }

  .wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table {
    border: 0;
    background: transparent;
  }

  .wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table thead {
    display: none;
  }

  .wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table tbody {
    display: block;
  }

  .wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table tbody tr {
    background: #ffffff;
    border: 1px solid #dfe8e2;
    border-radius: 12px;
    margin-bottom: 14px;
    padding: 10px 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  }

  .wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table tbody td {
    border: 0;
    padding: 8px 0;
    text-align: left !important;
    white-space: normal;
  }

  .wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table tbody td:not(:last-child) {
    border-bottom: 1px dashed #e6ece8;
  }

  /* label colonna simulate */
  .wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table tbody td:nth-child(1)::before {
    content: "Data";
  }

  .wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table tbody td:nth-child(2)::before {
    content: "Descrizione";
  }

  .wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table tbody td:nth-child(3)::before {
    content: "Importo";
  }

  .wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table tbody td::before {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
  }

  .wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table tbody td:nth-child(1) {
    font-weight: 600;
    color: #0F172A;
  }

  .wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table tbody td:nth-child(3) {
    font-size: 15px;
    font-weight: 700;
  }
}

/* ---------- MOBILE PICCOLO ---------- */
@media (max-width: 480px) {
  .wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table tbody tr {
    padding: 10px;
    border-radius: 10px;
  }

  .wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table tbody td {
    font-size: 12px;
  }

  .wp-wallet-dokan-page .woo-wallet-my-wallet-container .woo-wallet-transactions-table tbody td:nth-child(3) {
    font-size: 14px;
  }
}

/*--------------- /PAGINA WALLET -------------------*/