.consent-banner,
.consent-modal {
  font-family: "Rubik", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.consent-banner[hidden],
.consent-modal[hidden] {
  display: none !important;
}

.consent-banner {
  position: fixed;
  left: max(16px, calc((100vw - 980px) / 2));
  right: max(16px, calc((100vw - 980px) / 2));
  bottom: 16px;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(16,17,23,.88);
  color: #fff;
  box-shadow: 0 18px 70px rgba(0,0,0,.32);
  backdrop-filter: blur(24px) saturate(1.15);
}

.consent-banner__copy strong {
  display: block;
  font-size: 14px;
  font-weight: 550;
  margin-bottom: 6px;
}

.consent-banner__copy p,
.consent-modal p {
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: 11px;
  line-height: 1.48;
}

.consent-banner__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 550;
}

.consent-banner__links a {
  color: #60a5fa;
}

.consent-banner__actions,
.consent-modal__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.consent-button {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.14);
  cursor: pointer;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}

.consent-button--primary {
  background: #2997ff;
  border-color: #2997ff;
  color: #fff;
}

.consent-button--secondary {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.consent-button--ghost {
  background: transparent;
  color: rgba(255,255,255,.78);
}

.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,.54);
}

.consent-modal__panel {
  width: min(540px, 100%);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: #101117;
  color: #fff;
  box-shadow: 0 28px 100px rgba(0,0,0,.42);
  padding: 18px;
}

.consent-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.consent-modal__head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.consent-modal__close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.consent-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
}

.consent-choice strong,
.consent-choice span {
  display: block;
}

.consent-choice strong {
  font-size: 13px;
  margin-bottom: 4px;
}

.consent-choice span {
  color: rgba(255,255,255,.64);
  font-size: 12px;
  line-height: 1.45;
}

.consent-choice input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.consent-modal__actions {
  margin-top: 16px;
}

.consent-manage-button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[data-theme="light"] .consent-banner,
html[data-theme="light"] .consent-modal__panel {
  background: rgba(255,255,255,.88);
  border-color: rgba(15,23,42,.12);
  color: #111217;
  box-shadow: 0 18px 64px rgba(15,23,42,.14);
}

html[data-theme="light"] .consent-banner__copy p,
html[data-theme="light"] .consent-modal p,
html[data-theme="light"] .consent-choice span {
  color: #647083;
}

html[data-theme="light"] .consent-button--secondary,
html[data-theme="light"] .consent-modal__close,
html[data-theme="light"] .consent-choice {
  background: #f3f6fb;
  border-color: #dce3ec;
  color: #111217;
}

html[data-theme="light"] .consent-button--ghost {
  color: #3f4a5c;
}

@media (max-width: 720px) {
  .consent-banner {
    grid-template-columns: 1fr;
    left: 10px;
    right: 10px;
    bottom: 10px;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
  }
  .consent-banner__copy strong {
    margin-bottom: 4px;
    font-size: 13px;
  }
  .consent-banner__copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 10px;
    line-height: 1.35;
  }
  .consent-banner__links {
    gap: 8px;
    margin-top: 6px;
    font-size: 11px;
  }
  .consent-banner__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 7px;
  }
  .consent-button {
    min-height: 34px;
    min-width: 0;
    flex: 1 1 auto;
    padding: 0 5px;
    font-size: 9px;
  }
}

@media (max-width: 380px) {
  .consent-banner__actions {
    grid-template-columns: 1fr;
  }
}
