/* Zona e partnerëve. Usa le variabili del tema AFSD se ci sono, altrimenti colori neutri. */
.afsd-type { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 20px; padding: 0; border: 0; }
.afsd-type legend { width: 100%; margin-bottom: 8px; font: 500 11px/1.3 var(--mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--mute, #6a6359); }
.afsd-type label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.afsd-biz[hidden] { display: none; }
.afsd-note { font-size: 13.5px; color: var(--mute, #6a6359); }

.afsd-status { margin: 0 0 28px; padding: 16px 20px; background: var(--paper-2, #eee7dc); border-left: 2px solid var(--line-2, #c9bfb0); font-size: 14.5px; line-height: 1.6; }
.afsd-status--ok { border-left-color: #2e6b45; }
.afsd-status--no { border-left-color: var(--accent, #8e1b23); }
.afsd-status a { margin-left: 6px; }
.afsd-dl { display: grid; gap: 0; margin: 0 0 16px; border-top: 1px solid var(--ink, #1a1815); }
.afsd-dl > div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line, #ddd5c8); }
.afsd-dl dt { font: 500 11px/1.6 var(--mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--mute, #6a6359); }
.afsd-dl dd { margin: 0; }

/* listino */
.afsd-list__top { display: grid; gap: 14px; margin-bottom: 24px; }
.afsd-list__top p { margin: 0; font-size: 14.5px; color: var(--mute, #6a6359); }
.afsd-list__tools { display: flex; gap: 10px; }
.afsd-list__tools input { flex: 1; }
.afsd-list__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.afsd-list__cats button { padding: 8px 14px; border: 1px solid var(--line-2, #c9bfb0); border-radius: 999px; background: none; color: var(--ink, #1a1815); font: 500 13px/1 var(--sans, system-ui, sans-serif); cursor: pointer; }
.afsd-list__cats button.is-on { background: var(--ink, #1a1815); border-color: var(--ink, #1a1815); color: var(--paper, #f6f2eb); }
.afsd-list__group { margin-bottom: 36px; }
.afsd-list__group[hidden] { display: none; }
.afsd-list__group h3 { margin: 0 0 8px; font: 400 1.35rem/1.2 var(--ff-display, Georgia, serif); }
.afsd-list__table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.afsd-list__table th { padding: 10px 10px 10px 0; text-align: left; font: 500 11px/1.3 var(--mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: var(--mute, #6a6359); border-top: 1px solid var(--ink, #1a1815); border-bottom: 1px solid var(--line, #ddd5c8); }
.afsd-list__table td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line, #ddd5c8); vertical-align: middle; }
.afsd-list__table tr[hidden] { display: none; }
.afsd-list__table tr.is-picked td { background: var(--paper-2, #eee7dc); }
.afsd-list__name { display: flex; align-items: center; gap: 12px; }
.afsd-list__name img, .afsd-list__noimg { flex: none; width: 44px; height: 52px; object-fit: contain; background: var(--paper-2, #eee7dc); }
.afsd-list__name a { border: 0 !important; font-weight: 500; }
.afsd-list__name small { display: block; color: var(--mute, #6a6359); font-size: 12.5px; }
.afsd-list__retail { color: var(--mute, #6a6359); white-space: nowrap; }
.afsd-list__mine { white-space: nowrap; }
.afsd-list__qty input { width: 76px; height: 40px; padding: 0 8px; text-align: center; border: 1px solid var(--line-2, #c9bfb0); border-radius: 2px; background: transparent; font: inherit; }
.afsd-list__out { font-size: 12.5px; color: var(--mute, #6a6359); }
.afsd-list__bar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 12px 12px 20px; background: var(--ink, #1a1815); color: var(--paper, #f6f2eb); box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.afsd-list__bar[hidden] { display: none; }
.afsd-list__bar .button.alt { background: var(--paper, #f6f2eb) !important; color: var(--ink, #1a1815) !important; border-color: var(--paper, #f6f2eb) !important; }
@media (max-width: 640px) {
  .afsd-list__table thead { display: none; }
  .afsd-list__table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line, #ddd5c8); }
  .afsd-list__table td { padding: 0; border: 0; }
  .afsd-list__name { grid-column: 1 / -1; }
  .afsd-list__retail { display: none; }
  .afsd-dl > div { grid-template-columns: 1fr; gap: 2px; }
}
@media print {
  .afsd-list__tools, .afsd-list__cats, .afsd-list__bar, .afsd-list__qty, .woocommerce-MyAccount-navigation, .nav, .topbar, .foot, .fab { display: none !important; }
  .afsd-list__group[hidden] { display: block; }
}

/* Scelta del tipo di account: due schede (Biznes / Person privat) con icona, titolo e una riga di spiegazione */
.afsd-type--cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.afsd-type--cards legend { grid-column: 1 / -1; }
.afsd-type--cards .afsd-type__opt { position: relative; display: block; margin: 0; cursor: pointer; }
.afsd-type--cards .afsd-type__opt > input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }
.afsd-type--cards .afsd-type__card { position: relative; display: flex; align-items: flex-start; gap: 12px; height: 100%; padding: 16px 40px 16px 16px; border: 1px solid var(--line-2, #c9bfb0); border-radius: 2px; background: var(--card, #fbf9f5); color: var(--ink, #1a1815); transition: border-color .2s, box-shadow .2s, background .2s; }
.afsd-type--cards .afsd-type__opt:hover .afsd-type__card { border-color: var(--mute, #6a6359); }
.afsd-type--cards .afsd-type__card::after { content: ""; position: absolute; top: 16px; right: 14px; width: 18px; height: 18px; border: 1.5px solid var(--line-2, #c9bfb0); border-radius: 50%; box-sizing: border-box; background: var(--card, #fbf9f5); transition: border-color .2s, background .2s, box-shadow .2s; }
.afsd-type--cards input:checked + .afsd-type__card { border-color: var(--ink, #1a1815); box-shadow: inset 0 0 0 1px var(--ink, #1a1815); background: var(--paper, #f5f0e8); }
.afsd-type--cards input:checked + .afsd-type__card::after { border-color: var(--accent, #8b1a1a); background: var(--accent, #8b1a1a); box-shadow: inset 0 0 0 4px var(--card, #fbf9f5); }
.afsd-type--cards input:focus-visible + .afsd-type__card { outline: 2px solid var(--accent, #8b1a1a); outline-offset: 2px; }
.afsd-type--cards .afsd-type__ico { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--mute, #6a6359); }
.afsd-type--cards input:checked + .afsd-type__card .afsd-type__ico { color: var(--accent, #8b1a1a); }
.afsd-type--cards .afsd-type__txt { display: grid; gap: 4px; min-width: 0; }
.afsd-type--cards .afsd-type__txt strong { font: 500 15px/1.3 var(--sans, inherit); }
.afsd-type--cards .afsd-type__txt small { font-size: 13px; line-height: 1.45; color: var(--mute, #6a6359); }
@media (max-width: 520px) { .afsd-type--cards { grid-template-columns: 1fr; } }

/* prezzi nuovi (inc/answers.php) */
.pl-news { margin: 22px 0 6px; padding: 22px 24px; border: 1px solid #2f8f5b; border-left-width: 4px; background: #f1f7f2; }
.pl-news__head { display: flex; gap: 14px; align-items: flex-start; }
.pl-news__ico { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #2f8f5b; color: #fff; }
.pl-news__ico svg { width: 20px; height: 20px; }
.pl-news h3 { margin: 0 0 4px; font: 400 1.5rem/1.15 var(--ff-display, Georgia, serif); color: var(--ink, #1a1815); }
.pl-news p { margin: 0; color: var(--mute, #6a6359); font-size: 14.5px; }
.pl-news p b { color: var(--ink, #1a1815); }
.pl-news__list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 28px; }
.pl-news__list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(47, 143, 91, .18); font-size: 14.5px; }
.pl-news__list b { white-space: nowrap; font-weight: 600; }
.pl-news__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.pl-news__acts form { margin: 0 0 0 auto; }
.pl-news__ok { padding: 8px 0; border: 0; background: none; color: var(--mute, #6a6359); font: 500 14px/1 var(--sans, sans-serif); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pl-news__ok:hover { color: var(--ink, #1a1815); }
.pl-new { display: inline-block; margin-right: 8px; padding: 3px 7px; border-radius: 999px; background: #2f8f5b; color: #fff; font: 600 10.5px/1 var(--mono, monospace); letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
tr[data-new] { background: #f6faf6; }
.afsd-status--new { border-color: #2f8f5b; background: #f1f7f2; }
.woocommerce-MyAccount-navigation-link.has-news a::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--red, #b3262d); vertical-align: middle; }
body.afsd-new-prices .nav__user { position: relative; }
body.afsd-new-prices .nav__user::after { content: ''; position: absolute; top: 4px; right: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--red, #b3262d); border: 2px solid var(--paper, #f6f2eb); box-sizing: content-box; }
@media (max-width: 640px) { .pl-news { padding: 18px 16px; } .pl-news__acts form { margin-left: 0; } }
.ac-news { display: inline-block; flex: 0 0 auto; width: 8px; height: 8px; margin: 0 auto 0 10px; border-radius: 50%; background: var(--red, #b3262d); }
.ac-news-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 16px 20px; border: 1px solid #2f8f5b; border-left-width: 4px; background: #f1f7f2; color: var(--ink, #1a1815); font-size: 15px; text-decoration: none; }
.ac-news-bar:hover { background: #e7f2ea; }
.ac-news-bar__dot { width: 10px; height: 10px; border-radius: 50%; background: #2f8f5b; box-shadow: 0 0 0 4px rgba(47, 143, 91, .18); }
.ac-news-bar > span:nth-of-type(2) { margin-left: auto; text-decoration: underline; text-underline-offset: 3px; color: var(--mute, #6a6359); }
@media (max-width: 640px) { .ac-news-bar { flex-wrap: wrap; } .ac-news-bar > span:nth-of-type(2) { margin-left: 22px; } }
