/* Banner cookie Cuello — palette brand */
:root {
  --cc-viola: #62109F;
  --cc-arancione: #FE6244;
  --cc-beige: #FFDEB9;
  --cc-rosso: #DC0E0E;
  --cc-ink: #2a0a42;
  --cc-cartoncino: #fff9f0;
}

#cuello-cookie-root {
  position: fixed;
  z-index: 2147483646;
  font-family: Outfit, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#cuello-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem;
  pointer-events: none;
}

#cuello-cookie-banner .cc-panel {
  pointer-events: auto;
  max-width: 520px;
  margin: 0 auto;
  background: var(--cc-cartoncino);
  border: 3px solid var(--cc-viola);
  border-radius: 18px;
  box-shadow: 0 0 0 4px rgba(255, 222, 185, 0.75), 0 16px 40px rgba(42, 10, 66, 0.18);
  padding: 1rem 1.1rem;
}

#cuello-cookie-banner .cc-brand {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cc-arancione);
  margin-bottom: 0.25rem;
}

#cuello-cookie-banner h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cc-viola);
  line-height: 1.25;
}

#cuello-cookie-banner p {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(42, 10, 66, 0.82);
}

#cuello-cookie-banner p a {
  color: var(--cc-arancione);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(254, 98, 68, 0.4);
}

#cuello-cookie-banner .cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#cuello-cookie-banner .cc-btn {
  flex: 1 1 auto;
  min-width: 7.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: none;
  font: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
}

#cuello-cookie-banner .cc-btn--primary {
  background: linear-gradient(135deg, var(--cc-arancione), #e54a2e);
  color: #fff;
  box-shadow: 0 4px 14px rgba(254, 98, 68, 0.35);
}

#cuello-cookie-banner .cc-btn--ghost {
  background: transparent;
  color: var(--cc-viola);
  border: 2px solid rgba(98, 16, 159, 0.35);
}

#cuello-cookie-banner .cc-btn--text {
  background: rgba(98, 16, 159, 0.08);
  color: var(--cc-viola);
}

/* Modale preferenze */
#cuello-cookie-modal.cc-hidden,
#cuello-cookie-banner.cc-hidden {
  display: none !important;
}

#cuello-cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(42, 10, 66, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: auto;
}

#cuello-cookie-modal .cc-dialog {
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--cc-cartoncino);
  border: 3px solid var(--cc-viola);
  border-radius: 20px;
  padding: 1.15rem;
  box-shadow: 0 20px 50px rgba(42, 10, 66, 0.2);
}

#cuello-cookie-modal h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--cc-viola);
}

#cuello-cookie-modal .cc-cat {
  border: 2px dashed rgba(98, 16, 159, 0.22);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.55rem;
}

#cuello-cookie-modal .cc-cat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

#cuello-cookie-modal .cc-cat h3 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--cc-viola);
}

#cuello-cookie-modal .cc-cat p {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(42, 10, 66, 0.75);
}

#cuello-cookie-modal .cc-cat--locked {
  opacity: 0.85;
  background: rgba(255, 222, 185, 0.35);
}

#cuello-cookie-modal .cc-toggle {
  flex-shrink: 0;
  width: 2.75rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 2px solid rgba(98, 16, 159, 0.35);
  background: #e8e0ef;
  position: relative;
  cursor: pointer;
  padding: 0;
}

#cuello-cookie-modal .cc-toggle[aria-checked="true"] {
  background: var(--cc-arancione);
  border-color: var(--cc-arancione);
}

#cuello-cookie-modal .cc-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

#cuello-cookie-modal .cc-toggle[aria-checked="true"]::after {
  transform: translateX(1.15rem);
}

#cuello-cookie-modal .cc-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

#cuello-cookie-modal .cc-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

@media (min-width: 640px) {
  #cuello-cookie-banner {
    padding: 1rem 1.25rem 1.25rem;
  }
  #cuello-cookie-banner .cc-panel {
    max-width: 640px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
  }
  #cuello-cookie-banner .cc-copy {
    flex: 1 1 280px;
  }
  #cuello-cookie-banner .cc-actions {
    flex: 1 1 240px;
    justify-content: flex-end;
  }
}
