/* Static consent UI for FTP/Apache deploy (no React runtime). */
.gt-consent-banner {
  position: fixed;
  z-index: 80;
  inset-inline: 1rem;
  bottom: 1rem;
  max-width: 36rem;
  margin-inline: auto;
  left: 1rem;
  right: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #17171f;
  color: #e8e8ed;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  padding: 1rem 1.1rem 1.1rem;
}

@media (min-width: 640px) {
  .gt-consent-banner {
    inset-inline: auto;
    left: 1.25rem;
    right: auto;
    width: min(28rem, calc(100vw - 2rem));
  }
}

.gt-consent-banner[hidden],
.gt-consent-dialog[hidden],
.gt-consent-backdrop[hidden] {
  display: none !important;
}

.gt-consent-banner__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.gt-consent-banner__text {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #c4c4d0;
}

.gt-consent-banner__text a {
  color: #a9b7f7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gt-consent-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

@media (min-width: 480px) {
  .gt-consent-actions {
    grid-template-columns: 1fr 1fr;
  }
}

.gt-consent-btn {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.gt-consent-btn--primary {
  background: #526bdc;
  color: #fff;
}

.gt-consent-btn--primary:hover {
  background: #465fce;
}

.gt-consent-btn--secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: #e8e8ed;
}

.gt-consent-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.gt-consent-btn--ghost {
  background: transparent;
  border: 0;
  color: #a9b7f7;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 2.5rem;
  padding: 0.25rem 0;
  justify-content: flex-start;
  grid-column: 1 / -1;
}

.gt-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(13, 13, 18, 0.55);
}

.gt-consent-dialog {
  position: fixed;
  z-index: 91;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(28rem, calc(100vw - 2rem));
  max-height: min(85vh, 40rem);
  overflow: auto;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #17171f;
  color: #e8e8ed;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  padding: 1.15rem 1.2rem 1.25rem;
}

.gt-consent-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.gt-consent-dialog__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.gt-consent-dialog__close {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #e8e8ed;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.gt-consent-dialog__close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.gt-consent-dialog__text {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #c4c4d0;
}

.gt-consent-dialog__text a {
  color: #a9b7f7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gt-consent-card {
  margin-top: 0.9rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.85rem 0.95rem;
}

.gt-consent-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.gt-consent-card__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

.gt-consent-card__desc {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #b0b0bc;
}

.gt-consent-badge {
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.2rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #c4c4d0;
}

.gt-consent-switch {
  position: relative;
  width: 2.75rem;
  height: 1.55rem;
  flex-shrink: 0;
}

.gt-consent-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.gt-consent-switch__track {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #3a3a48;
  transition: background 0.15s ease;
}

.gt-consent-switch__thumb {
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.15s ease;
  pointer-events: none;
}

.gt-consent-switch input:checked + .gt-consent-switch__track {
  background: #526bdc;
}

.gt-consent-switch input:checked + .gt-consent-switch__track + .gt-consent-switch__thumb {
  transform: translateX(1.15rem);
}

.gt-consent-switch input:focus-visible + .gt-consent-switch__track {
  outline: 2px solid #a9b7f7;
  outline-offset: 2px;
}

body.gt-consent-open {
  overflow: hidden;
}
