.tgh-consent {
  position: fixed;
  z-index: 100000;
  right: clamp(12px, 3vw, 32px);
  bottom: clamp(12px, 3vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  width: min(720px, calc(100vw - 24px));
  max-height: min(90vh, 420px);
  overflow: auto;
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid rgba(218, 181, 92, 0.48);
  border-radius: 18px;
  background: #171512;
  color: #fffaf0;
  box-shadow: 0 20px 60px rgba(23, 21, 18, 0.28);
  font-family: Manrope, sans-serif;
}

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

.tgh-consent strong {
  display: block;
  margin-bottom: 6px;
  font-family: Fraunces, serif;
  font-size: 20px;
  line-height: 1.25;
}

.tgh-consent p {
  max-width: 520px;
  margin: 0 0 8px;
  color: rgba(255, 250, 240, 0.76);
  font-size: 14px;
  line-height: 1.55;
}

.tgh-consent button,
.tgh-consent a {
  line-height: 1.35;
}

.tgh-consent a {
  color: #e6c56d;
  font-size: 13px;
  text-underline-offset: 3px;
}

.tgh-consent__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tgh-consent button,
.tgh-cookie-settings {
  min-height: 42px;
  border: 1px solid rgba(255, 250, 240, 0.26);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 700 13px/1 Manrope, sans-serif;
  cursor: pointer;
}

.tgh-consent button {
  padding: 0 16px;
  white-space: nowrap;
}

.tgh-consent button.is-primary {
  border-color: #dab55c;
  background: #dab55c;
  color: #171512;
}

.tgh-cookie-settings {
  min-height: 0;
  padding: 0;
  border: 0;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tgh-consent button:focus-visible,
.tgh-cookie-settings:focus-visible {
  outline: 3px solid #fffaf0;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .tgh-consent {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

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

  .tgh-consent button {
    min-height: 46px;
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .tgh-consent__actions {
    grid-template-columns: 1fr;
  }
}
