.gtl-cookie-controls {
  position: relative;
  z-index: 10000;
}

.gtl-cookie-panel {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: min(38rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  color: var(--wp--preset--color--optic-white, #fff);
  background: var(--wp--preset--color--carbon, #111);
  border: 1px solid rgba(255, 255, 255, .22);
  border-top: .28rem solid var(--wp--preset--color--laser-red, #e2001a);
  box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, .32);
}

.gtl-cookie-panel[hidden],
.gtl-cookie-reopen[hidden] {
  display: none;
}

.gtl-cookie-panel h2 {
  margin: .35rem 0 .75rem;
  color: inherit;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.15;
}

.gtl-cookie-panel p {
  max-width: 64ch;
  margin: 0;
}

.gtl-cookie-panel .gtl-eyebrow {
  color: #ff7b8a;
}

.gtl-cookie-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.25rem;
}

body.gtl-site .gtl-cookie-panel__actions .gtl-button {
  flex: 1 1 14rem;
  min-height: 3.25rem;
  justify-content: center;
  border-width: 2px;
  text-align: center;
}

body.gtl-site .gtl-cookie-panel__actions .gtl-button--primary,
body.gtl-site .gtl-cookie-panel__actions .gtl-button--secondary {
  color: #111;
  border-color: #fff;
  background: #fff;
}

body.gtl-site .gtl-cookie-panel__actions .gtl-button--primary:hover,
body.gtl-site .gtl-cookie-panel__actions .gtl-button--secondary:hover {
  color: #111;
  border-color: #d9d9d9;
  background: #d9d9d9;
}

body.gtl-site .gtl-cookie-panel__actions .gtl-button--primary:focus-visible,
body.gtl-site .gtl-cookie-panel__actions .gtl-button--secondary:focus-visible {
  color: #111;
  border-color: #fff;
  background: #fff;
  outline: .2rem solid #fff;
  outline-offset: .2rem;
  box-shadow: 0 0 0 .4rem #e2001a;
}

.gtl-cookie-reopen {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  padding: .6rem .85rem;
  color: #111;
  background: #fff;
  border: 1px solid #666;
  border-radius: .25rem;
  box-shadow: 0 .4rem 1.25rem rgba(0, 0, 0, .18);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.gtl-cookie-reopen:hover,
.gtl-cookie-reopen:focus-visible {
  color: #fff;
  background: #111;
  outline: .2rem solid #e2001a;
  outline-offset: .15rem;
}

@media (max-width: 34rem) {
  .gtl-cookie-panel {
    right: 1rem;
    bottom: 1rem;
  }

  .gtl-cookie-panel__actions,
  .gtl-cookie-panel__actions .gtl-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gtl-cookie-panel,
  .gtl-cookie-reopen {
    scroll-behavior: auto;
  }
}

@media (forced-colors: active) {
  body.gtl-site .gtl-cookie-panel__actions .gtl-button--primary,
  body.gtl-site .gtl-cookie-panel__actions .gtl-button--secondary {
    color: ButtonText;
    border: 2px solid ButtonText;
    background: ButtonFace;
    forced-color-adjust: auto;
  }

  body.gtl-site .gtl-cookie-panel__actions .gtl-button--primary:focus-visible,
  body.gtl-site .gtl-cookie-panel__actions .gtl-button--secondary:focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 3px;
    box-shadow: none;
  }
}
