/* Pixso consent presentation only. Existing consent handlers own every action. */
#pixso-consent #pixso-consent-panel {
  position: fixed;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  grid-template-areas:
    "title actions"
    "copy actions"
    "links actions"
    "details details";
  gap: 5px 28px;
  align-items: start;
  width: auto;
  min-width: 0;
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100svh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 16px clamp(16px, 3vw, 48px);
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  border: 0;
  border-top: 1px solid #e3e3ec;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 -3px 20px rgb(28 27 47 / 10%);
  color: #343442;
  font: 14px/1.55 system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
  text-align: left;
}

#pixso-consent #pixso-consent-panel > p {
  min-width: 0;
  margin: 0;
  color: #50505f;
  font: inherit;
  overflow-wrap: anywhere;
}

#pixso-consent #pixso-consent-panel > .pxc-title {
  grid-area: title;
  color: #242430;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

#pixso-consent #pixso-consent-panel > p:not(.pxc-title):not(.pxc-links) {
  grid-area: copy;
}

#pixso-consent #pixso-consent-panel > .pxc-links {
  grid-area: links;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 13px;
}

#pixso-consent #pixso-consent-panel a {
  color: #5142b5;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

#pixso-consent #pixso-consent-panel > .pxc-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: nowrap;
  align-self: center;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  margin: 0;
}

#pixso-consent #pixso-consent-panel button {
  appearance: none;
  box-sizing: border-box;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid #c6c4d1;
  border-radius: 7px;
  background: #fff;
  color: #363541;
  font: 600 14px/1.35 system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transform: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}

#pixso-consent #pixso-consent-panel > .pxc-actions > button {
  flex: 0 1 auto;
  white-space: nowrap;
}

#pixso-consent #pixso-consent-panel button:hover {
  border-color: #7d72d2;
  background: #f6f5fd;
  color: #363541;
  transform: none;
}

#pixso-consent #pixso-consent-panel > .pxc-actions > button:nth-child(3) {
  border-color: #5546dd;
  background: #5546dd;
  color: #fff;
}

#pixso-consent #pixso-consent-panel > .pxc-actions > button:nth-child(3):hover {
  border-color: #4637c7;
  background: #4637c7;
  color: #fff;
}

/* The first layer has three choices. Settings retains the existing Close action. */
#pixso-consent #pixso-consent-panel > .pxc-details[hidden] + .pxc-actions > button:nth-child(4) {
  display: none;
}

#pixso-consent #pixso-consent-panel > .pxc-details {
  grid-area: details;
  min-width: 0;
  max-width: 960px;
  margin: 12px 0 0;
  padding: 16px 0 2px;
  border-top: 1px solid #e3e3ec;
  color: #454452;
}

#pixso-consent #pixso-consent-panel > .pxc-details p {
  margin: 0 0 12px;
  font: inherit;
  overflow-wrap: anywhere;
}

#pixso-consent #pixso-consent-panel > .pxc-details label {
  margin: 14px 0 4px;
  color: #242430;
}

#pixso-consent #pixso-consent-panel button:focus-visible,
#pixso-consent #pixso-consent-panel a:focus-visible,
#pixso-consent #pixso-consent-panel input:focus-visible {
  outline: 3px solid #7667ed;
  outline-offset: 3px;
}

#pixso-consent > .pxc-trigger {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #d3d1df;
  border-radius: 7px;
  background: #fff;
  color: #464253;
  box-shadow: 0 2px 8px rgb(28 27 47 / 8%);
  font-size: 13px;
}

@media (max-width: 1119px) {
  #pixso-consent #pixso-consent-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "copy" "links" "details" "actions";
    gap: 6px;
    padding: 16px 20px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  #pixso-consent #pixso-consent-panel > .pxc-actions {
    flex-wrap: wrap;
    justify-self: start;
    margin-top: 6px;
  }
}

@media (max-width: 600px) {
  #pixso-consent #pixso-consent-panel {
    padding: 14px 16px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    font-size: 13px;
    line-height: 1.5;
  }

  #pixso-consent #pixso-consent-panel > .pxc-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    justify-self: stretch;
    width: 100%;
    gap: 8px;
  }

  #pixso-consent #pixso-consent-panel > .pxc-actions > button {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
    white-space: normal;
  }

  #pixso-consent #pixso-consent-panel > .pxc-actions > button:first-child,
  #pixso-consent #pixso-consent-panel > .pxc-actions > button:nth-child(4) {
    grid-column: 1 / -1;
  }

  #pixso-consent #pixso-consent-panel > .pxc-details {
    margin-top: 8px;
    padding-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #pixso-consent #pixso-consent-panel button {
    transition: none;
  }
}
