.gc-consent[hidden] {
  display: none;
}

.gc-consent {
  position: fixed;
  z-index: 10000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #334155;
  border-radius: 14px;
  background: #0f172a;
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.36);
  color: #f8fafc;
  font-family: Inter, "IBM Plex Sans", system-ui, sans-serif;
}

.gc-consent__copy {
  max-width: 690px;
}

.gc-consent h2,
.gc-consent-dialog h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

.gc-consent p,
.gc-consent-dialog p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
}

.gc-consent a {
  color: #67e8f9;
  font-size: 13px;
  text-underline-offset: 3px;
}

.gc-consent__actions,
.gc-consent-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.gc-consent__button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #64748b;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.gc-consent__button:hover,
.gc-consent__button:focus-visible {
  border-color: #06b6d4;
  outline: 2px solid transparent;
}

.gc-consent__button--primary {
  border-color: #06b6d4;
  background: #0891b2;
  color: #fff;
}

.gc-consent__button--primary:hover,
.gc-consent__button--primary:focus-visible {
  background: #0e7490;
}

.gc-consent__button--secondary {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
}

.gc-consent__button--secondary:hover,
.gc-consent__button--secondary:focus-visible {
  border-color: #67e8f9;
  background: #e2e8f0;
}

.gc-consent-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.4);
  color: #0f172a;
  font-family: Inter, "IBM Plex Sans", system-ui, sans-serif;
}

.gc-consent-dialog::backdrop {
  background: rgba(2, 6, 23, 0.68);
}

.gc-consent-dialog form {
  padding: 24px;
}

.gc-consent-dialog > form > p {
  margin-bottom: 20px;
  color: #475569;
}

.gc-consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
}

.gc-consent-option--locked {
  background: #f8fafc;
  cursor: default;
}

.gc-consent-option strong,
.gc-consent-option small {
  display: block;
}

.gc-consent-option small {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.gc-consent-option input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: #0891b2;
}

.gc-consent-dialog__actions {
  margin-top: 20px;
}

.gc-consent-dialog .gc-consent__button--quiet {
  color: #334155;
}

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

  .gc-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .gc-consent__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gc-consent *,
  .gc-consent-dialog * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
