.gh-consent[hidden],
.gh-consent-panel[hidden] {
  display: none !important;
}

.gh-consent,
.gh-consent-panel {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  align-items: end;
  background: rgb(8 28 55 / .62);
}

.gh-consent__banner {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 24px;
  padding: 24px;
  border-top: 4px solid #d33d4b;
  color: #112d53;
  background: #fff;
  box-shadow: 0 8px 0 rgb(17 45 83 / .18);
  grid-template-columns: 130px 1fr;
  gap: 14px 28px;
}

.gh-consent__brand img {
  width: 118px;
  height: 76px;
  object-fit: contain;
}

.gh-consent h2,
.gh-consent-panel h2 {
  margin: 0 0 8px;
  font: 700 clamp(1.45rem, 3vw, 2rem) / 1.05 "Barlow Condensed", Arial, sans-serif;
}

.gh-consent p {
  max-width: 760px;
  margin: 0;
}

.gh-consent__actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gh-consent button,
.gh-consent-panel button {
  min-height: 46px;
  border: 2px solid #2759a2;
  border-radius: 2px;
  color: #fff;
  background: #2759a2;
  font: 700 .92rem / 1 "Source Sans 3", Arial, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

/* Los tres botones de primera capa tienen idéntica prominencia. */
.gh-consent__actions button {
  color: #fff;
  background: #2759a2;
}

.gh-consent button:focus-visible,
.gh-consent-panel button:focus-visible {
  outline: 3px solid #d33d4b;
  outline-offset: 3px;
}

.gh-consent__links {
  grid-column: 1 / -1;
  font-size: .9rem;
}

.gh-consent__links a {
  color: #2759a2;
}

.gh-consent-panel {
  padding: 20px;
  place-items: center;
}

.gh-consent-panel__dialog {
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px;
  border-top: 5px solid #d33d4b;
  color: #112d53;
  background: #fff;
}

.gh-consent-panel__dialog header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.gh-consent-panel__dialog header p {
  margin: 0;
  color: #2759a2;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gh-consent-panel__dialog [data-consent-close] {
  width: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 1.6rem;
}

.gh-consent-panel__list {
  margin: 24px 0;
  border-top: 1px solid #ccd5e0;
}

.gh-consent-panel__list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid #ccd5e0;
  gap: 24px;
}

.gh-consent-panel__list span {
  display: grid;
  gap: 3px;
}

.gh-consent-panel__list small {
  color: #475a72;
  font-size: .9rem;
}

.gh-consent-panel__list input {
  width: 44px;
  height: 24px;
  accent-color: #2759a2;
}

.gh-consent-panel__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gh-consent-panel__actions button:nth-child(2) {
  color: #2759a2;
  background: #fff;
}

@media (max-width: 680px) {
  .gh-consent__banner {
    width: 100%;
    margin: 0;
    padding: 20px;
    grid-template-columns: 72px 1fr;
  }

  .gh-consent__brand img {
    width: 68px;
    height: 50px;
  }

  .gh-consent__actions,
  .gh-consent-panel__actions {
    grid-template-columns: 1fr;
  }

  .gh-consent-panel {
    align-items: end;
    padding: 0;
  }

  .gh-consent-panel__dialog {
    max-height: 94vh;
    padding: 20px;
  }

  .gh-consent-panel__list label {
    gap: 12px;
  }
}
