.gt-consent-dialog {
  --gt-consent-navy: #0c2340;
  --gt-consent-blue: var(--gtool-blue, #0057cc);
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(528px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 26px;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--gt-consent-navy);
  background: #fff;
  border: 1px solid #d7e2ef;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgb(7 31 65 / 20%);
  overflow-wrap: anywhere;
}

.gt-consent-dialog::backdrop {
  background: rgb(8 24 46 / 49%);
}

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

.gt-consent__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.gt-consent__heading h2 {
  align-self: center;
  margin: 0;
  color: inherit;
  font-size: clamp(21px, 4.5vw, 27px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.gt-consent-dialog p,
.gt-consent__description {
  margin: 0;
  color: #344861;
  font-size: 14px;
  line-height: 1.55;
}

.gt-consent-dialog p.gt-consent__policy {
  margin-block: 10px 0;
}

.gt-consent__policy a {
  color: #004cae;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gt-consent-dialog p.gt-consent__message {
  margin-top: 10px;
  color: #911a35;
}

.gt-consent-dialog button {
  min-height: 44px;
  font: inherit;
  cursor: pointer;
}

.gt-consent-dialog button:disabled {
  opacity: .65;
  cursor: wait;
}

.gt-consent-dialog :is(button, a, input):focus-visible {
  outline: 2px solid #0054b8;
  outline-offset: 3px;
}

.gt-consent__close {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  padding: 0;
  color: #40566e;
  background: #f2f6fa;
  border: 1px solid transparent;
  border-radius: 8px;
}

.gt-consent__close span {
  font-size: 25px;
  line-height: 1;
}

.gt-consent__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.gt-consent-dialog .gt-consent__button,
.gt-consent-dialog .gt-consent__secondary {
  padding: 9px 12px;
  color: var(--gt-consent-navy);
  background: #fff;
  border: 1px solid var(--gt-consent-navy);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.gt-consent-dialog .gt-consent__button--accept {
  color: #fff;
  background: var(--gt-consent-blue);
  border-color: var(--gt-consent-blue);
}

.gt-consent__close:hover,
.gt-consent__button:not(.gt-consent__button--accept):hover,
.gt-consent__secondary:hover {
  background: #edf4fc;
}

.gt-consent-dialog .gt-consent__button--accept:hover {
  background: #004cae;
  border-color: #004cae;
}

.gt-consent-dialog .gt-consent__secondary {
  width: 100%;
  margin-top: 8px;
  border-color: #c3d2e3;
}

.gt-consent__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding-block: 12px;
  border-bottom: 1px solid #d7e2ef;
}

.gt-consent__category strong {
  font-size: 15px;
}

.gt-consent__always {
  flex: 0 0 auto;
  max-width: 38%;
  color: #31506d;
  font-size: 13px;
  text-align: right;
}

.gt-consent__description {
  display: block;
}

.gt-consent__category input {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  accent-color: var(--gt-consent-blue);
}

@media (max-width: 480px) {
  .gt-consent-dialog {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 17px;
  }

  .gt-consent__actions {
    margin-top: 16px;
  }
}

@media (max-width: 400px) {
  .gt-consent__actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gt-consent-dialog,
  .gt-consent-dialog::backdrop,
  .gt-consent-dialog button {
    animation: none;
    scroll-behavior: auto;
    transition: none;
  }
}
