/* Studio77 Consent — UX modello Brenna (come Tentori), colori brand S77 */
.s77-consent-root { position: relative; z-index: 99999; font-family: system-ui, sans-serif; }

.s77-consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 100050;
  padding: 1rem;
  background: rgba(27, 38, 44, 0.42);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.s77-consent__panel {
  width: min(100%, 56rem);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 3px solid #ed6a1b;
  padding: 1.5rem 1.75rem 1.35rem;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.14);
  color: #1b262c;
}

.s77-consent__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1b262c;
}

.s77-consent__text {
  margin: 0 0 1rem;
  color: #445566;
  font-size: 0.98rem;
  line-height: 1.45;
}

.s77-consent__text a {
  color: #ed6a1b;
  text-decoration: underline;
}

.s77-consent__choices {
  display: none;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.s77-consent__choices.is-open { display: flex; }

.s77-consent__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e5e7eb;
  background: #f8fafb;
}

.s77-consent__row small {
  display: block;
  color: #667788;
  margin-top: 0.2rem;
  font-size: 0.85rem;
}

.s77-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.s77-btn {
  cursor: pointer;
  border: 0;
  border-radius: 4px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
}

.s77-btn--accept {
  background: #00a76f;
  color: #fff;
}
.s77-btn--accept:hover { background: #009460; }

.s77-btn--ghost {
  background: transparent;
  color: #1b262c;
  border: 1px solid #d0d5dd;
}
.s77-btn--ghost:hover { background: #f3f4f6; }

.s77-btn--save {
  background: #ed6a1b;
  color: #fff;
}
.s77-btn--save:hover { background: #f9b233; color: #fff; }

.s77-consent-fab {
  position: fixed !important;
  z-index: 100060 !important;
  bottom: 1.1rem;
  left: 1.1rem;
  width: 3.1rem;
  height: 3.1rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
  background: #1b262c !important;
  color: #f9b233 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.s77-consent-fab.is-br { left: auto; right: 1.1rem; }
.s77-consent-fab:hover {
  color: #fff !important;
  background: #24343c !important;
  border-color: #ed6a1b;
}
.s77-consent-fab__icon { display: block; }
.s77-consent-fab--sr-fallback { display: none !important; }

.s77-legal {
  max-width: 48rem;
}
.s77-legal h2 { margin-top: 2rem; }
.s77-legal h3 { margin-top: 1.35rem; }
.s77-legal ul { padding-left: 1.2rem; }
.s77-legal li { margin-bottom: 0.45rem; }
.s77-legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.s77-legal th,
.s77-legal td {
  border: 1px solid #e5e7eb;
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.s77-legal th { background: #f8fafb; }
