/*
 * Banbamboo shop: stili del negozio (Weblogging, novembre 2026).
 * Caricato per ultimo da inc/negozio.php. Colori: verde marchio #4dae65, verde azione #2e7d46 (contrasto 5:1 su bianco).
 */

/* ---------- Prodotti su richiesta ---------- */
.bb-prezzo-richiesta { font-size: .95em; font-weight: 600; color: #2e7d46; }
.bb-su-richiesta .elementor-2256 .elementor-element-7901ae8,
.bb-su-richiesta .elementor-2256 .elementor-element-d363e65,
.bb-su-richiesta .product_meta .product-stock,
.bb-su-richiesta .product-summary-wrap .stock { display: none !important; }

.bb-richiesta { margin: 8px 0 20px; padding: 18px; border: 1px solid #d9e2d6; border-radius: 8px; background: #f6f9f4; color: #333a35; font-size: 15px; line-height: 1.5; }
.bb-richiesta__titolo { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: #1f3b28; }
.bb-richiesta__testo { margin: 0 0 14px; }
.bb-richiesta__griglia { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.bb-richiesta__griglia p { margin: 0; }
.bb-richiesta__largo { grid-column: 1 / -1; }
.bb-richiesta label { display: block; margin: 0 0 3px; font-size: 13px; font-weight: 600; color: #333a35; }
.bb-richiesta input[type=text], .bb-richiesta input[type=email], .bb-richiesta input[type=tel], .bb-richiesta input[type=number], .bb-richiesta textarea {
  width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #b9c4b5; border-radius: 6px; background: #fff; font-size: 16px; color: #222; box-shadow: none; }
.bb-richiesta textarea { min-height: 80px; resize: vertical; }
.bb-richiesta input:focus, .bb-richiesta textarea:focus { border-color: #2e7d46; outline: 2px solid rgba(46,125,70,.25); outline-offset: 0; }
.bb-richiesta .bb-errore { border-color: #b3261e !important; color: #b3261e; }
.bb-richiesta__privacy { margin: 12px 0; }
.bb-richiesta__privacy label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 13px; }
.bb-richiesta__privacy input { margin-top: 3px; flex: 0 0 auto; width: 18px; height: 18px; }
.bb-richiesta__privacy a, .bb-richiesta__contatti a { color: #2e7d46; text-decoration: underline; }
.bb-richiesta .bb-richiesta__invia { display: block; width: 100%; min-height: 48px; border: 0; border-radius: 6px; background: #2e7d46; color: #fff; font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer; }
.bb-richiesta .bb-richiesta__invia:hover, .bb-richiesta .bb-richiesta__invia:focus { background: #256639; color: #fff; }
.bb-richiesta .bb-richiesta__invia:disabled { opacity: .7; cursor: wait; }
.bb-richiesta__esito { margin: 12px 0 0; padding: 10px 12px; border-radius: 6px; font-weight: 600; }
.bb-richiesta__esito.ok { background: #e8f3eb; color: #1f5c33; }
.bb-richiesta__esito.ko { background: #fbeceb; color: #8a1c14; }
.bb-richiesta__contatti { margin: 14px 0 0; font-size: 14px; }
.bb-richiesta__trappola { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 575px) {
  .bb-richiesta { padding: 14px; }
  .bb-richiesta__griglia { grid-template-columns: 1fr; }
}

/* ---------- Banner cookie (Complianz): colori del sito, più compatto da telefono ---------- */
html:root {
  --cmplz_button_accept_background_color: #2e7d46;
  --cmplz_button_accept_border_color: #2e7d46;
  --cmplz_button_accept_text_color: #ffffff;
  --cmplz_hyperlink_color: #2e7d46;
  --cmplz_slider_active_color: #2e7d46;
}
@media (max-width: 767px) {
  .cmplz-cookiebanner { padding: 12px 14px !important; gap: 8px !important; max-height: 60vh; }
  .cmplz-cookiebanner .cmplz-logo { display: none !important; }
  .cmplz-cookiebanner .cmplz-title { font-size: 14px !important; }
  .cmplz-cookiebanner .cmplz-message { font-size: 12px !important; line-height: 1.4 !important; }
  .cmplz-cookiebanner .cmplz-body { margin: 0 !important; }
  .cmplz-cookiebanner .cmplz-buttons { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; margin: 0 !important; }
  .cmplz-cookiebanner .cmplz-buttons .cmplz-btn { width: auto !important; height: auto !important; min-height: 42px; padding: 8px 10px !important; margin: 0 !important; font-size: 14px !important; }
  .cmplz-cookiebanner .cmplz-buttons .cmplz-accept { grid-column: 1 / -1; }
  .cmplz-cookiebanner .cmplz-buttons .cmplz-btn[hidden], .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-hidden { display: none !important; }
  .cmplz-cookiebanner .cmplz-documents, .cmplz-cookiebanner .cmplz-links { margin: 0 !important; }
}
/* Linguetta «Gestisci consenso»: non più fissa sopra i contenuti, ma in fondo alla pagina sotto il piè di pagina. */
#cmplz-manage-consent { position: static !important; text-align: center; background: #f4f5f2; padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px)); }
#cmplz-manage-consent .cmplz-manage-consent {
  position: static !important; inset: auto !important; transform: none !important; animation: none !important;
  display: inline-block; width: auto !important; height: auto !important; min-height: 32px; margin: 0 !important; padding: 6px 12px !important;
  border: 0 !important; border-radius: 4px !important; background: transparent !important; box-shadow: none !important;
  color: #3d4a3f !important; font-size: 13px !important; text-decoration: underline; }
#cmplz-manage-consent .cmplz-manage-consent.cmplz-hidden { display: none !important; }

/* Voci di menu «Imprint» (doppione delle pagine legali) e «Wishlist» (plugin non installato): nascoste in attesa di toglierle dal menu (R7). */
#nav-menu-item-4982, #nav-menu-item-3954, #accordion-menu-item-4982, #accordion-menu-item-3954 { display: none !important; }

/* ---------- Carrello da telefono: il blocco «Procedi con l'ordine» + PayPal era fisso in basso (431 px) e copriva i prodotti ---------- */
@media (max-width: 991px) {
  .woocommerce-cart .wc-proceed-to-checkout.sticky-checkout-bottom {
    position: static !important; inset: auto !important; transform: none !important; width: auto !important;
    margin: 0 !important; padding: 12px 0 0 !important; box-shadow: none !important; background: transparent !important; z-index: auto !important; }
  .woocommerce-cart .wc-ppcp-cart-payments__container, .woocommerce-cart .wc-stripe-cart-checkout-container { max-width: 100%; }
}

/* ---------- Checkout: icone carte su una riga che va a capo dentro il proprio metodo (il Diners finiva sopra «Bonifico») ---------- */
.woocommerce-checkout .wc_payment_methods > li { clear: both; }
.woocommerce-checkout .wc_payment_methods .wc-stripe-card-icons-container { display: flex !important; flex-wrap: wrap; gap: 4px; float: none !important; max-width: 100%; margin: 4px 0 0 !important; }
.woocommerce-checkout .wc_payment_methods .wc-stripe-card-icons-container img { height: 22px !important; width: auto !important; max-width: none; margin: 0 !important; }

/* ---------- Scheda prodotto (Fase 2) ---------- */
/* Vecchio riquadro sconti (tutte le categorie, bordo rosso) e frase consegna in maiuscolo: sostituiti da .bb-sconti e .bb-fiducia. */
.elementor-2256 .elementor-element-7901ae8, .elementor-2256 .elementor-element-d363e65 { display: none !important; }

.bb-misure { margin: 4px 0 16px; }
.bb-misure__titolo { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #333a35; }
.bb-misure__titolo span { font-weight: 400; color: #5c6660; }
.bb-misure__elenco { display: flex; flex-wrap: wrap; gap: 6px; }
.bb-misura { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 76px; min-height: 48px; padding: 6px 10px; border: 1px solid #c9d1c5; border-radius: 6px; background: #fff; color: #222 !important; font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none !important; }
.bb-misura small { font-size: 12px; font-weight: 400; color: #5c6660; }
.bb-misura:hover, .bb-misura:focus { border-color: #2e7d46; }
.bb-misura--attiva { border: 2px solid #2e7d46; background: #f1f7f2; }

.bb-sconti { margin: 14px 0 0; padding: 10px 12px; border-radius: 6px; background: #f6f9f4; border: 1px solid #d9e2d6; font-size: 14px; color: #333a35; }
.bb-sconti p { margin: 0; }
.bb-sconti__titolo { font-weight: 700; color: #1f3b28; }
.bb-sconti__scaglioni { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 !important; }
.bb-sconti__scaglioni b { color: #2e7d46; }
.bb-sconti__nota { font-size: 12px; color: #5c6660; }

.bb-fiducia { list-style: none; margin: 12px 0 0 !important; padding: 0 !important; font-size: 14px; color: #333a35; }
.bb-fiducia li { position: relative; margin: 0 0 6px; padding-left: 22px; line-height: 1.45; }
.bb-fiducia li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 11px; height: 6px; border-left: 2px solid #2e7d46; border-bottom: 2px solid #2e7d46; transform: rotate(-45deg); }
.bb-fiducia a { color: #2e7d46; text-decoration: underline; }

.bb-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; display: flex; align-items: center; gap: 10px; padding: 8px max(12px, env(safe-area-inset-left, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) 12px; background: #fff; border-top: 1px solid #d9ddd5; box-shadow: 0 -4px 14px rgba(0,0,0,.08); }
.bb-barra[hidden] { display: none !important; }
.bb-barra__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.bb-barra__nome { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; color: #333a35; }
.bb-barra__prezzo { font-size: 16px; font-weight: 700; color: #1f3b28; }
.bb-barra__prezzo small { font-size: 11px; font-weight: 400; color: #5c6660; }
.bb-barra__pulsante { flex: 0 0 auto; min-height: 46px; padding: 0 16px; border: 0; border-radius: 6px; background: #2e7d46; color: #fff; font-size: 15px; font-weight: 700; }
body.bb-barra-visibile { padding-bottom: 72px; }
@media (min-width: 768px) { .bb-barra { display: none !important; } }
/* Le 4 icone (spedizione, pagamenti, supporto, sconto) ripetono le righe .bb-fiducia: da telefono restano solo le righe. */
@media (max-width: 767px) {
  .elementor-2256 .elementor-element-36cdae2, .elementor-2256 .elementor-element-ecdda74, .elementor-2256 .elementor-element-c76f76f, .elementor-2256 .elementor-element-b45d46c { display: none !important; }
}

/* ---------- Grafica: interventi solo CSS (Fase 4 anticipata, L1 L4 L6) ---------- */
/* L1 telefono: logo da 150×168 px a 64 px di larghezza, intestazione più bassa. */
@media (max-width: 991px) {
  #header .logo img, #header .logo .standard-logo { width: 64px !important; max-width: 64px !important; height: auto !important; }
  #header .logo { margin-top: 0 !important; margin-bottom: 0 !important; }
}
/* L1 briciole di pane da telefono: una riga compatta, senza ripetere il nome del prodotto (c'è già il titolo). */
@media (max-width: 767px) {
  .page-top { padding-top: 6px !important; padding-bottom: 6px !important; min-height: 0 !important; }
  .page-top .breadcrumbs-wrap, .page-top .breadcrumb { font-size: 12px !important; line-height: 1.5 !important; margin: 0 !important; }
  .single-product .page-top .breadcrumb > li:last-child { display: none !important; }
  .page-top .page-title { font-size: 20px !important; line-height: 1.25 !important; margin: 4px 0 !important; }
}
/* L6 testo più leggibile: grigio #777 (contrasto 4,48) → #4a4a44 (8,9); da telefono corpo 15 px. */
body { color: #4a4a44; }
@media (max-width: 575px) {
  body { font-size: 15px; line-height: 1.55; }
}
/* L4 recensioni spente: niente stelline vuote. Etichette categoria nelle schede prodotto leggibili. */
.star-rating, .woocommerce-product-rating, .elementor-widget-porto_cp_rating { display: none !important; }
ul.products .category-list, ul.products .category-list a, .products .category-list a { font-size: 12px !important; color: #5c6660 !important; letter-spacing: .02em; }

/* D1 doppio prezzo: netto + IVA in evidenza, IVA inclusa sotto. */
.bb-iva { font-size: 12px; font-weight: 500; color: #5c6660; white-space: nowrap; letter-spacing: 0; }
.bb-iva-lordo { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; line-height: 1.3; color: #4a4a44; letter-spacing: 0; }
.bb-iva-lordo .woocommerce-Price-amount { font-weight: 700; color: #333a35; }
.product-summary-wrap .price .bb-iva, .summary .price .bb-iva { font-size: 14px; }
.product-summary-wrap .price .bb-iva-lordo, .summary .price .bb-iva-lordo { font-size: 16px; margin-top: 4px; }
.cart_totals .bb-iva, .woocommerce-checkout-review-order .bb-iva, .woocommerce-mini-cart__total .bb-iva { font-size: 12px; font-weight: 400; }
/* S5 riga spedizione */
.bb-fiducia__sped strong { color: #1f3b28; }
.cart-head .cart-price .bb-iva { display: none; }

/* S4 carrello: quanto manca allo scaglione di sconto successivo (09/11). */
.bb-sconti-carrello { display: grid; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border-radius: 6px; background: #f6f9f4; border: 1px solid #d9e2d6; font-size: 14px; color: #333a35; }
.bb-sconti-carrello p { margin: 0; }
.bb-sconti-carrello b { color: #1f3b28; }
.bb-sconti-carrello__riga { display: grid; gap: 6px; }
.bb-sconti-carrello__barra { display: block; height: 6px; border-radius: 3px; background: #dfe7dc; overflow: hidden; }
.bb-sconti-carrello__barra > span { display: block; height: 100%; border-radius: 3px; background: #2e7d46; }
.bb-sconti-carrello__nota { font-size: 12px; color: #5c6660; }

/* C2 checkout da telefono: riepilogo richiudibile in cima (09/11). */
.bb-riepilogo { margin: 0 0 18px; border: 1px solid #d9e2d6; border-radius: 6px; background: #f6f9f4; color: #333a35; font-size: 14px; }
.bb-riepilogo > summary { display: block; list-style: none; cursor: pointer; padding: 12px 40px 12px 14px; position: relative; }
.bb-riepilogo > summary::-webkit-details-marker { display: none; }
.bb-riepilogo > summary::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid #1f3b28; border-bottom: 2px solid #1f3b28; transform: rotate(45deg); transition: transform .2s; }
.bb-riepilogo[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.bb-riepilogo > summary:focus-visible { outline: 2px solid #2e7d46; outline-offset: 2px; }
.bb-riepilogo__somma { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.bb-riepilogo__etichetta { font-weight: 700; color: #1f3b28; }
.bb-riepilogo__etichetta small, .bb-riepilogo small { font-size: 12px; font-weight: 400; color: #5c6660; }
.bb-riepilogo__totale { font-size: 17px; font-weight: 700; color: #1f3b28; white-space: nowrap; }
.bb-riepilogo__corpo { padding: 0 14px 12px; border-top: 1px solid #d9e2d6; }
.bb-riepilogo__prodotti { list-style: none; margin: 10px 0 !important; padding: 0 !important; display: grid; gap: 8px; }
.bb-riepilogo__prodotti li, .bb-riepilogo__conti { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.bb-riepilogo__prodotti li > span:last-child, .bb-riepilogo__conti dd { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bb-riepilogo__conti { margin: 0; padding-top: 10px; border-top: 1px solid #e3e9e0; }
.bb-riepilogo__conti dt, .bb-riepilogo__conti dd { margin: 0; font-weight: 400; }
.bb-riepilogo__conti .bb-riepilogo__fine { font-weight: 700; color: #1f3b28; padding-top: 6px; }
.bb-riepilogo .bb-iva { font-size: 12px; font-weight: 400; }
@media (min-width: 768px) { .bb-riepilogo { display: none; } }

/* C5 tabella spedizioni (pagina «Spedizioni e resi»). */
.bb-tab-sped { overflow-x: auto; margin: 0 0 8px; border: 1px solid #d9e2d6; border-radius: 6px; -webkit-overflow-scrolling: touch; }
.bb-tab-sped table { width: 100%; min-width: 620px; margin: 0 !important; border-collapse: collapse; font-size: 14px; color: #333a35; font-variant-numeric: tabular-nums; }
.bb-tab-sped th, .bb-tab-sped td { padding: 9px 10px !important; border: 0 !important; border-bottom: 1px solid #e3e9e0 !important; text-align: right; white-space: nowrap; vertical-align: top; }
.bb-tab-sped thead th { background: #f6f9f4; color: #1f3b28; font-weight: 700; font-size: 13px; text-transform: none; }
.bb-tab-sped th[scope="row"], .bb-tab-sped thead th:first-child { text-align: left; white-space: normal; min-width: 150px; position: sticky; left: 0; background: #fff; font-weight: 600; color: #1f3b28; }
.bb-tab-sped thead th:first-child { background: #f6f9f4; }
.bb-tab-sped tbody tr:last-child > * { border-bottom: 0 !important; }
.bb-tab-sped__nota { font-size: 13px; color: #5c6660; }

/* C4: avviso privacy sotto l'email (Cart Abandonment Recovery) leggibile al posto di xx-small */
#wcf_cf_gdpr_message_block > span {
  display: block;
  margin-top: 6px;
  font-size: 13px !important;
  line-height: 1.45;
  letter-spacing: normal;
  color: #5c6660;
}
#wcf_ca_gdpr_no_thanks {
  color: #2e7d46;
  text-decoration: underline;
  white-space: nowrap;
}
