/* Artwork Cookies GDPR — banner + centro preferenze + tabella cookie */
.awc-root { position: relative; z-index: 99999; }
.awc-btn { font: inherit; font-size: 14px; font-weight: 600; padding: 11px 20px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.awc-btn--primary { background: #c4a95b; color: #fff; }
.awc-btn--primary:hover { background: #b3974a; }
.awc-btn--ghost { background: transparent; color: #1d1d1f; border-color: #cfcfcf; }
.awc-btn--ghost:hover { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }

/* Accetta e Rifiuta: stesso peso grafico (Garante 2021, EDPB cookie banner taskforce 2023) */
.awc-btn--choice { background: #1d1d1f; color: #fff; border-color: #1d1d1f; min-width: 140px; }
.awc-btn--choice:hover { background: #000; border-color: #000; }
.awc-btn--link { background: transparent; color: #1d1d1f; border-color: transparent; text-decoration: underline; text-underline-offset: 3px; padding-left: 8px; padding-right: 8px; }
.awc-btn--link:hover { color: #000; }
.awc-btn:focus-visible, .awc-banner__close:focus-visible, .awc-tab:focus-visible { outline: 2px solid #0a84ff; outline-offset: 2px; }

/* Banner in basso */
.awc-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 1100px;
  background: #fff; color: #1d1d1f; border: 1px solid #e6e6e6; border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.22); padding: 20px 44px 20px 22px; display: flex; gap: 20px;
  align-items: center; flex-wrap: wrap; }
.awc-banner__close { position: absolute; top: 8px; right: 10px; width: 32px; height: 32px; border: 0; background: none;
  font-size: 24px; line-height: 1; color: #6e6e73; cursor: pointer; border-radius: 50%; }
.awc-banner__close:hover { background: #f2f2f4; color: #1d1d1f; }
.awc-banner__body { flex: 1 1 420px; min-width: 260px; }
.awc-banner__title { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.awc-banner__text { font-size: 13.5px; line-height: 1.55; margin: 0; color: #3a3a3c; }
.awc-banner__text a { color: inherit; text-decoration: underline; }
.awc-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
@media (max-width: 640px) {
  .awc-banner { padding: 18px; }
  .awc-banner__actions { width: 100%; }
  .awc-banner__actions .awc-btn { flex: 1 1 auto; text-align: center; }
}

/* Modale preferenze */
.awc-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.awc-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.awc-modal__dialog { position: relative; background: #fff; color: #1d1d1f; width: 100%; max-width: 560px;
  border-radius: 16px; padding: 26px; box-shadow: 0 24px 60px rgba(0,0,0,.3); max-height: 90vh; overflow: auto; }
.awc-modal__dialog h2 { font-size: 20px; margin: 0 0 18px; }
.awc-modal__close { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 26px;
  line-height: 1; cursor: pointer; color: #888; }
.awc-modal__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 22px; }

.awc-cat-row { border-top: 1px solid #eee; padding: 16px 0; }
.awc-cat-row:first-of-type { border-top: 0; }
.awc-cat-row__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.awc-cat-row strong { font-size: 15px; }
.awc-cat-row p { font-size: 13px; color: #666; margin: 6px 0 0; line-height: 1.5; }
.awc-always { font-size: 12px; color: #00a651; font-weight: 600; }

/* switch */
.awc-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.awc-switch input { opacity: 0; width: 0; height: 0; }
.awc-switch span { position: absolute; inset: 0; background: #ccc; border-radius: 999px; transition: .2s; cursor: pointer; }
.awc-switch span::before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .2s; }
.awc-switch input:checked + span { background: #1d1d1f; }
.awc-switch input:checked + span::before { transform: translateX(20px); }

/* linguetta di riapertura */
.awc-tab { position: fixed; left: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%;
  background: #1d1d1f; color: #fff; border: 0; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.25); z-index: 99998; }
.awc-tab:hover { background: #000; }

/* tabella cookie (shortcode) */
.awc-cookie-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 12px 0; }
.awc-cookie-table th, .awc-cookie-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; vertical-align: top; }
.awc-cookie-table th { background: #f6f6f7; font-weight: 600; }
.awc-cookie-table code { font-size: 12.5px; }
.awc-cat { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.awc-cat--necessary { background: #e8f5e9; color: #2e7d32; }
.awc-cat--statistics { background: #e3f2fd; color: #1565c0; }
.awc-cat--marketing { background: #fff3e0; color: #e65100; }

/* widget shortcode gestione consenso */
.awc-consent-widget { margin: 16px 0; }
.awc-open-prefs { font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 999px;
  background: #1d1d1f; color: #fff; border: 0; cursor: pointer; }
.awc-open-prefs:hover { background: #000; }
.awc-consent-state { font-size: 13px; color: #666; margin: 8px 0 0; }

/* Il banner resta nascosto finché il JS non decide (anche senza reboot Bootstrap) */
.awc-root[hidden], .awc-root [hidden] { display: none !important; }

/* Tabella cookie scorrevole su schermi stretti */
.awc-cookie-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0; }
.awc-cookie-table-wrap .awc-cookie-table { margin: 0; min-width: 640px; }
