/* Consent panel shared with the main site; scoped to its controls. */
.consent-panel {
  position: fixed;
  z-index: 10000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: none;
  width: min(820px, calc(100% - 36px));
  max-height: min(680px, calc(100dvh - 36px));
  margin-inline: auto;
  overflow: auto;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 18px;
  background: #fff;
  color: #171717;
  box-shadow: 0 22px 70px rgba(17, 17, 17, 0.22);
  font-family: Ubuntu, Arial, sans-serif;
}

.consent-panel.is-visible {
  display: block;
}

.consent-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: 22px 24px;
}

.consent-summary h2 {
  margin: 0 0 7px;
  color: #171717;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
}

.consent-summary p {
  max-width: 580px;
  margin: 0;
  color: #57534e;
  font-size: 0.91rem;
  line-height: 1.55;
}

.consent-summary a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.consent-actions button,
.consent-save {
  min-height: 42px;
  border: 1px solid rgba(17, 17, 17, 0.2);
  border-radius: 999px;
  padding: 0 15px;
  background: #fff;
  color: #171717;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.consent-actions .primary,
.consent-save {
  border-color: #171717;
  background: #171717;
  color: #fff;
}

.consent-close {
  position: absolute;
  top: 9px;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #57534e;
  font-size: 1.4rem;
  cursor: pointer;
}

.consent-options {
  border-top: 1px solid rgba(17, 17, 17, 0.12);
  padding: 8px 24px 22px;
}

.consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.09);
  cursor: pointer;
}

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

.consent-option strong {
  font-size: 0.92rem;
  font-weight: 700;
}

.consent-option small {
  color: #6b655e;
  font-size: 0.78rem;
  line-height: 1.4;
}

.consent-option input {
  width: 22px;
  height: 22px;
  accent-color: #171717;
}

.consent-save {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0 0 auto;
}
@media (max-width: 760px) {
  .consent-panel {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 15px;
  }

  .consent-summary {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 18px 18px;
  }

  .consent-summary p {
    padding-right: 18px;
    font-size: 0.86rem;
  }

  .consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .consent-actions .primary {
    grid-column: 1 / -1;
  }

  .consent-actions button,
  .consent-save {
    min-height: 46px;
  }

  .consent-options {
    padding: 6px 18px 18px;
  }

}

.consent-panel[hidden], .consent-panel [hidden] { display:none; }
.consent-panel *, .consent-panel { box-sizing:border-box; }
footer [data-consent-settings] { border:0; padding:0; background:none; color:inherit; font:inherit; text-decoration:underline; cursor:pointer; }
.consent-panel button:focus-visible, footer [data-consent-settings]:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
