:root {
  --enc-consent-bg: rgba(0, 0, 0, 0.78);
  --enc-consent-border: rgba(255, 255, 255, 0.14);
  --enc-consent-text: rgba(255, 255, 255, 0.82);
  --enc-consent-text-strong: rgba(255, 255, 255, 0.92);
  --enc-consent-green: #8FE45A;
  --enc-consent-green-dark: #75C846;
}

.enc-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 0.75rem 0.9rem calc(0.75rem + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform 260ms ease-out;
  pointer-events: none;
}

.enc-consent-banner.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.enc-consent-card {
  width: min(1120px, 100%);
  margin: 0 auto;
  border-radius: 0.9rem;
  border: 1px solid var(--enc-consent-border);
  background: var(--enc-consent-bg);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 55px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.enc-consent-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 1rem;
}

.enc-consent-title {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--enc-consent-text-strong);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.enc-consent-text {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  color: var(--enc-consent-text);
  font-size: 0.9rem;
  line-height: 1.45;
}

.enc-consent-text a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.enc-consent-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.enc-consent-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.65rem;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}

.enc-consent-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.enc-consent-btn.is-primary {
  border-color: rgba(143, 228, 90, 0.45);
  background: linear-gradient(to right, rgba(143, 228, 90, 0.22), rgba(117, 200, 70, 0.18));
}

.enc-consent-btn.is-primary:hover {
  border-color: rgba(143, 228, 90, 0.6);
}

.enc-consent-btn.is-ghost {
  border-color: transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.enc-consent-details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 1rem 1rem;
  display: none;
}

.enc-consent-details.is-open {
  display: block;
}

.enc-consent-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
}

.enc-consent-option strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.9rem;
}

.enc-consent-option small {
  display: block;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.85rem;
  line-height: 1.35;
}

.enc-consent-switch {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  user-select: none;
}

.enc-consent-switch input {
  width: 42px;
  height: 24px;
  appearance: none;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.enc-consent-switch input::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  transform: translateY(-50%);
  transition: left 160ms ease, background 160ms ease;
}

.enc-consent-switch input:checked {
  background: rgba(143, 228, 90, 0.32);
  border-color: rgba(143, 228, 90, 0.55);
}

.enc-consent-switch input:checked::after {
  left: 20px;
  background: #fff;
}

.enc-consent-reopen {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 9998;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  cursor: pointer;
  display: none;
}

.enc-consent-reopen.is-visible {
  display: inline-flex;
}

.enc-consent-embed {
  position: relative;
  width: 100%;
  height: 250px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
}

.enc-consent-embed__inner {
  text-align: center;
  padding: 0.9rem 1rem;
  max-width: 56ch;
}

.enc-consent-embed__title {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.35rem;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.enc-consent-embed__text {
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.65rem;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.enc-consent-embed__btn {
  appearance: none;
  border: 1px solid rgba(143, 228, 90, 0.45);
  background: linear-gradient(to right, rgba(143, 228, 90, 0.22), rgba(117, 200, 70, 0.18));
  color: rgba(255, 255, 255, 0.92);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 0.95rem;
  border-radius: 0.75rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .enc-consent-row {
    grid-template-columns: 1fr;
  }
  .enc-consent-actions {
    justify-content: flex-start;
  }
}

