.si-consent-extra {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
}

.si-consent-extra[hidden] {
  display: none;
}

.si-consent-extra input {
  accent-color: #1d1d1f;
}

.si-consent-footer-button {
  appearance: none;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}

.si-analytics-consent {
  align-items: flex-end;
  background: #0a0a0a;
  border: 1px solid #fff;
  bottom: 1rem;
  box-sizing: border-box;
  color: #fff;
  display: flex;
  font-family: Arial, Helvetica, sans-serif;
  gap: 1.5rem;
  justify-content: space-between;
  left: 50%;
  max-width: min(900px, calc(100vw - 2rem));
  padding: 1.25rem;
  position: fixed;
  transform: translateX(-50%);
  width: 100%;
  z-index: 10000;
}

.si-analytics-consent[hidden] {
  display: none;
}

.si-analytics-consent p {
  line-height: 1.45;
  margin: 0.5rem 0 0;
}

.si-analytics-consent a {
  color: inherit;
}

.si-analytics-consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
}

.si-analytics-consent-actions button {
  background: #fff;
  border: 1px solid #fff;
  color: #000;
  cursor: pointer;
  font: inherit;
  padding: 0.7rem 0.9rem;
}

.si-ornaments-consent .si-consent-extra {
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  margin-bottom: 0;
  padding-top: 0.9rem;
}

.si-ornaments-consent [data-si-ornaments-save] {
  background: #fff;
  border: 1px solid #fff;
  color: #000;
  cursor: pointer;
  font: inherit;
  justify-self: start;
  padding: 0.7rem 0.9rem;
}

@media (max-width: 720px) {
  .si-analytics-consent,
  .si-analytics-consent-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

/* 2026-08-16: project-specific consent cards; no website layout selectors. */
.si-analytics-consent,
.si-consent-enhanced-youandme {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.si-analytics-consent {
  align-items: stretch;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  background: rgba(250, 250, 252, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  bottom: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2), 0 2px 10px rgba(0, 0, 0, 0.08);
  color: #1d1d1f;
  display: grid;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  gap: 20px;
  justify-content: normal;
  max-height: calc(100vh - 40px);
  max-width: min(780px, calc(100vw - 32px));
  overflow: auto;
  padding: 24px;
}

.si-analytics-consent strong,
.si-consent-title {
  display: block;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.si-analytics-consent strong span {
  color: #6e6e73;
  font-weight: 520;
}

.si-consent-language-grid {
  display: grid;
  gap: 8px 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.si-analytics-consent p {
  color: #515154;
  font-size: 14px;
  line-height: 1.48;
  margin: 0;
}

.si-consent-privacy-link {
  margin-top: 12px !important;
}

.si-analytics-consent a {
  color: #1d1d1f;
  font-weight: 600;
  text-underline-offset: 3px;
}

.si-analytics-consent-actions {
  display: grid;
  flex: initial;
  gap: 10px;
  grid-template-columns: 1fr 1fr 0.85fr;
}

.si-analytics-consent-actions button,
.si-ornaments-consent [data-si-ornaments-save] {
  appearance: none;
  background: #f0f0f2;
  border: 0;
  border-radius: 12px;
  color: #1d1d1f;
  cursor: pointer;
  font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  min-height: 46px;
  padding: 0 16px;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.si-analytics-consent-actions button:hover,
.si-ornaments-consent [data-si-ornaments-save]:hover {
  background: #e5e5e7;
}

.si-analytics-consent-actions button:active,
.si-ornaments-consent [data-si-ornaments-save]:active {
  transform: scale(0.985);
}

.si-analytics-consent button:focus-visible,
.si-consent-enhanced-youandme button:focus-visible,
.si-consent-enhanced-youandme a:focus-visible {
  outline: 3px solid #1d1d1f;
  outline-offset: 2px;
}

.si-ornaments-consent [data-si-ornaments-accept-all],
.si-ornaments-consent [data-si-ornaments-necessary],
.si-ornaments-consent [data-si-ornaments-save],
.si-ornaments-consent .si-analytics-consent-actions button:first-child {
  background: #1d1d1f;
  color: #fff;
}

.si-ornaments-consent [data-si-ornaments-accept-all]:hover,
.si-ornaments-consent [data-si-ornaments-necessary]:hover,
.si-ornaments-consent [data-si-ornaments-save]:hover,
.si-ornaments-consent .si-analytics-consent-actions button:first-child:hover {
  background: #000;
}

.si-ornaments-consent [data-si-ornaments-open-settings] {
  background: transparent !important;
  box-shadow: inset 0 0 0 1px #d2d2d7;
  color: #1d1d1f !important;
}

.si-ornaments-consent .si-consent-extra {
  border-top: 1px solid #dedee2;
  margin-bottom: 0;
  padding-top: 16px;
}

.si-ornaments-consent .si-consent-extra label {
  align-items: center;
  color: #3a3a3c;
  display: flex;
  font-size: 14px;
  gap: 9px;
}

.si-ornaments-consent .si-consent-extra input {
  accent-color: #1d1d1f;
  height: 17px;
  width: 17px;
}

.si-ornaments-consent [data-si-ornaments-save] {
  justify-self: start;
  margin-top: 4px;
}

/* youANDme keeps its own dark monochrome identity. */
.si-youandme-consent,
#consent-banner.si-consent-enhanced-youandme {
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  background: rgba(17, 17, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  bottom: 20px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  box-sizing: border-box;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  left: 50%;
  max-height: calc(100vh - 40px);
  max-width: min(820px, calc(100vw - 32px));
  overflow: auto;
  position: fixed;
  right: auto;
  transform: translateX(-50%);
  width: 100%;
  z-index: 10000;
}

.si-youandme-consent {
  padding: 24px;
}

#consent-banner.si-consent-enhanced-youandme .consent-banner-content {
  box-sizing: border-box;
  display: grid;
  gap: 18px;
  margin: 0;
  max-width: none;
  padding: 24px;
  width: 100%;
}

#consent-banner.si-consent-enhanced-youandme .consent-banner-text {
  display: grid;
  gap: 10px 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

#consent-banner.si-consent-enhanced-youandme .si-consent-title {
  color: #fff;
  grid-column: 1 / -1;
}

#consent-banner.si-consent-enhanced-youandme .consent-banner-text p,
#consent-banner.si-consent-enhanced-youandme .consent-banner-text .english-text {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

#consent-banner.si-consent-enhanced-youandme .consent-banner-text a,
.si-youandme-consent a {
  color: #fff !important;
  font-weight: 600;
  text-underline-offset: 3px;
}

#consent-banner.si-consent-enhanced-youandme .consent-banner-actions,
.si-youandme-consent .si-analytics-consent-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr 0.85fr;
  margin: 0;
}

.si-youandme-consent .si-analytics-consent-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#consent-banner.si-consent-enhanced-youandme .consent-banner-actions button,
#consent-banner.si-consent-enhanced-youandme .consent-button,
.si-youandme-consent .si-analytics-consent-actions button {
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  min-height: 46px;
  padding: 0 16px;
}

#consent-banner.si-consent-enhanced-youandme #consent-accept-all,
#consent-banner.si-consent-enhanced-youandme #si-consent-necessary,
#consent-banner.si-consent-enhanced-youandme .consent-button,
.si-youandme-consent [data-si-save],
.si-youandme-consent [data-si-necessary] {
  background: #fff;
  color: #0a0a0b;
}

#consent-banner.si-consent-enhanced-youandme #consent-settings {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

#consent-banner.si-consent-enhanced-youandme .consent-settings-wrapper {
  display: block;
  margin: 0;
}

#consent-banner.si-consent-enhanced-youandme .consent-modal {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: none;
  box-sizing: border-box;
  color: #fff;
  margin: 0;
  min-width: 0;
  padding: 18px;
  width: 100%;
}

#consent-banner.si-consent-enhanced-youandme #consent-settings-modal h3 {
  color: #fff;
  font-size: 16px;
  margin: 0 0 14px;
}

#consent-banner.si-consent-enhanced-youandme #consent-settings-modal label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  margin: 6px 0;
}

#consent-banner.si-consent-enhanced-youandme input[type="checkbox"],
.si-youandme-consent input[type="checkbox"] {
  accent-color: #fff;
}

.si-youandme-consent strong {
  color: #fff;
}

.si-youandme-consent button:focus-visible,
#consent-banner.si-consent-enhanced-youandme button:focus-visible,
#consent-banner.si-consent-enhanced-youandme a:focus-visible {
  outline-color: #fff;
}

.si-youandme-consent strong span,
.si-youandme-consent p {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 720px) {
  .si-analytics-consent,
  .si-youandme-consent,
  #consent-banner.si-consent-enhanced-youandme {
    border-radius: 20px;
    bottom: 10px;
    max-height: calc(100vh - 20px);
    max-width: calc(100vw - 20px);
  }

  .si-analytics-consent,
  .si-youandme-consent,
  #consent-banner.si-consent-enhanced-youandme .consent-banner-content {
    padding: 18px;
  }

  .si-consent-language-grid,
  #consent-banner.si-consent-enhanced-youandme .consent-banner-text {
    grid-template-columns: 1fr;
  }

  .si-analytics-consent-actions,
  #consent-banner.si-consent-enhanced-youandme .consent-banner-actions,
  .si-youandme-consent .si-analytics-consent-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .si-analytics-consent-actions button,
  .si-ornaments-consent [data-si-ornaments-save] {
    transition: none;
  }
}
