#futgrid-consent-root,
#futgrid-consent-root * {
  box-sizing: border-box;
}

html.fg-consent-modal-open {
  overflow: hidden !important;
}

.fg-consent-banner {
  position: fixed;
  z-index: 2147483000;
  left: 16px;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px;
  color: #f7f9ff;
  background: rgba(7, 16, 31, 0.98);
  border: 1px solid rgba(142, 170, 224, 0.4);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.48);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

.fg-consent-copy {
  min-width: 0;
  max-width: 680px;
}

.fg-consent-copy h2,
.fg-consent-modal h2,
.fg-consent-category h3 {
  color: #ffffff;
  font-family: inherit;
  text-transform: none;
  letter-spacing: normal;
}

.fg-consent-copy h2 {
  margin: 0 0 5px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
}

.fg-consent-copy p,
.fg-consent-modal p {
  margin: 0;
  color: #cbd5e8;
  font-size: 14px;
}

.fg-consent-actions,
.fg-consent-modal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.fg-consent-button,
.fg-consent-close,
.fg-consent-settings {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.fg-consent-button {
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.fg-consent-button:hover {
  transform: translateY(-1px);
}

.fg-consent-button:focus-visible,
.fg-consent-close:focus-visible,
.fg-consent-settings:focus-visible,
.fg-consent-switch input:focus-visible + .fg-consent-slider {
  outline: 3px solid rgba(93, 184, 255, 0.78);
  outline-offset: 2px;
}

.fg-consent-button-primary {
  color: #07101f;
  background: #7dd3fc;
  border: 1px solid #7dd3fc;
}

.fg-consent-button-secondary {
  color: #f7f9ff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(203, 213, 232, 0.45);
}

.fg-consent-settings {
  position: fixed;
  z-index: 2147482000;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  min-height: 36px;
  padding: 8px 12px;
  color: #e8eefc;
  background: rgba(7, 16, 31, 0.9);
  border: 1px solid rgba(142, 170, 224, 0.5);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.fg-consent-overlay {
  position: fixed;
  z-index: 2147483600;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.68);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fg-consent-modal {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  color: #f7f9ff;
  background: #07101f;
  border: 1px solid rgba(142, 170, 224, 0.45);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.fg-consent-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 21px 17px;
  border-bottom: 1px solid rgba(142, 170, 224, 0.24);
}

.fg-consent-modal-header h2 {
  margin: 0 0 5px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 850;
}

.fg-consent-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #f7f9ff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(203, 213, 232, 0.35);
  border-radius: 11px;
  font-size: 25px;
  line-height: 1;
}

.fg-consent-modal-body {
  display: grid;
  gap: 12px;
  padding: 18px 21px;
}

.fg-consent-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(142, 170, 224, 0.25);
  border-radius: 14px;
}

.fg-consent-category h3 {
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
}

.fg-consent-category p {
  font-size: 13px;
}

.fg-consent-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: #bff7d5;
  background: rgba(45, 212, 137, 0.12);
  border: 1px solid rgba(45, 212, 137, 0.35);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.fg-consent-switch {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  width: 50px;
  height: 28px;
}

.fg-consent-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.fg-consent-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #46536b;
  border-radius: 999px;
  transition: background 0.18s ease;
}

.fg-consent-slider::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease;
}

.fg-consent-switch input:checked + .fg-consent-slider {
  background: #0ea5e9;
}

.fg-consent-switch input:checked + .fg-consent-slider::before {
  transform: translateX(22px);
}

.fg-consent-modal-footer {
  padding: 16px 21px 21px;
  border-top: 1px solid rgba(142, 170, 224, 0.24);
}

@media (max-width: 760px) {
  .fg-consent-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .fg-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .fg-consent-actions .fg-consent-button-primary {
    grid-column: 1 / -1;
  }

  .fg-consent-button {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .fg-consent-category {
    align-items: flex-start;
  }

  .fg-consent-modal-footer {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fg-consent-button,
  .fg-consent-slider,
  .fg-consent-slider::before {
    transition: none;
  }
}
