/* Cookie consent — Fondazione O.A.S.I. OMG */
.oasi-cc {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 100000;
  padding: 0;
  pointer-events: none;
}

.oasi-cc__panel {
  pointer-events: auto;
  max-width: 720px;
  margin: 0 auto 1rem;
  margin-inline: max(1rem, calc((100% - 720px) / 2));
  background: #0f1f36;
  color: #f4f7fb;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(8, 18, 34, 0.35);
  padding: 1.15rem 1.25rem 1.2rem;
}

.oasi-cc__title {
  margin: 0 0 0.45rem;
  font-family: var(--oasi-font-title, Georgia, serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}

.oasi-cc__text {
  margin: 0 0 1rem;
  font-family: var(--oasi-font-body, system-ui, sans-serif);
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(244, 247, 251, 0.86);
}

.oasi-cc__text a {
  color: #9ec5f7;
  text-underline-offset: 2px;
}

.oasi-cc__text a:hover {
  color: #fff;
}

.oasi-cc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.oasi-cc__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--oasi-font-body, system-ui, sans-serif);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.oasi-cc__btn:focus-visible {
  outline: 2px solid #9ec5f7;
  outline-offset: 2px;
}

.oasi-cc__btn--solid {
  background: #c0392b;
  color: #fff;
}

.oasi-cc__btn--solid:hover {
  background: #a22a1e;
}

.oasi-cc__btn--line {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.oasi-cc__btn--line:hover {
  border-color: #fff;
}

.oasi-cc__btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.oasi-cc__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.oasi-cc__list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.oasi-cc__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.oasi-cc__item strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.oasi-cc__item span,
.oasi-cc__item label span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(244, 247, 251, 0.72);
}

.oasi-cc__item label {
  cursor: pointer;
  flex: 1;
}

.oasi-cc__lock {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244, 247, 251, 0.55);
}

.oasi-cc__item input[type='checkbox'] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #c0392b;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .oasi-cc__panel {
    margin: 0;
    border-radius: 16px 16px 0 0;
    max-width: none;
  }

  .oasi-cc__actions {
    flex-direction: column-reverse;
  }

  .oasi-cc__btn {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oasi-cc__btn {
    transition: none;
  }
}
