/* Banner e pannello dei cookie (plugin CookieYes): forme e caratteri del tema.
   I colori si impostano nel plugin (contenuti/cookieyes-config.php), qui solo la forma. */

.cky-consent-container .cky-consent-bar,
.cky-preference-center {
  border-radius: 0 !important;
  border: 1px solid var(--bt-c-inchiostro) !important;
  box-shadow: .35rem .35rem 0 color-mix(in srgb, var(--bt-c-inchiostro) 22%, transparent) !important;
}

.cky-title,
.cky-preference-title {
  font-size: var(--bt-fs-l) !important;
  font-weight: 700 !important;
  font-stretch: var(--bt-stretch-titoli);
  line-height: 1.15 !important;
}

.cky-notice-des, .cky-notice-des p,
.cky-preference-content-wrapper, .cky-preference-content-wrapper p,
.cky-accordion-header-des, .cky-accordion-header-des p { font-size: var(--bt-fs-s) !important; line-height: 1.5 !important; }

.cky-notice-des a, .cky-preference-content-wrapper a,
.cky-btn-readmore { color: var(--bt-c-bordeaux) !important; text-decoration: underline; text-underline-offset: .2em; }

/* Pulsanti: angoli tagliati come .bt-btn */
.cky-btn {
  border-radius: 0 !important;
  font-weight: 600 !important;
  font-stretch: var(--bt-stretch-titoli);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: background var(--bt-ease), color var(--bt-ease);
}
.cky-btn:hover { opacity: 1 !important; }
.cky-btn-accept:hover { background: var(--bt-c-bordeaux-scuro) !important; border-color: var(--bt-c-bordeaux-scuro) !important; }
.cky-btn-reject:hover { background: var(--bt-c-bordeaux) !important; border-color: var(--bt-c-bordeaux) !important; }
.cky-btn-customize:hover, .cky-btn-preferences:hover { background: var(--bt-c-sabbia) !important; }

.cky-accordion-btn { font-weight: 600 !important; font-stretch: var(--bt-stretch-titoli); color: var(--bt-c-inchiostro) !important; }
.cky-preference-center .cky-accordion { border-color: var(--bt-c-cenere) !important; }
.cky-audit-table { border-radius: 0 !important; }

/* Pulsante per riaprire le preferenze: quadrato come .bt-square */
.cky-btn-revisit-wrapper { border-radius: 0 !important; }
.cky-btn-revisit-wrapper .cky-btn-revisit { border-radius: 0 !important; }

/* Tabella dei cookie nella pagina /cookie-policy/ (shortcode [cky_outside_audit_table]) */
.bt-prose .cky-table-wrapper { margin-block: var(--bt-sp-3); overflow-x: auto; }
.bt-prose .cky-cookie-audit-table { width: 100%; border-collapse: collapse; font-size: var(--bt-fs-s); line-height: 1.4; }
.bt-prose .cky-cookie-audit-table th,
.bt-prose .cky-cookie-audit-table td { padding: .6rem .75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bt-c-cenere); }
.bt-prose .cky-cookie-audit-table th { font-weight: 700; font-stretch: var(--bt-stretch-titoli); border-bottom: 2px solid var(--bt-c-inchiostro); }
.bt-prose .cky-cookie-audit-table td:first-child { font-family: ui-monospace, Consolas, monospace; font-size: .92em; white-space: nowrap; }

/* Link "Preferenze cookie" nel piè di pagina e nelle pagine legali */
button.bt-cookie-prefs {
  padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: .2em;
}
