.ys-consent-banner,
.ys-consent-dialog {
  color: #f8fafc;
  font: 500 15px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ys-consent-banner {
  position: fixed;
  z-index: 2147483000;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(16px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(103, 232, 249, .3);
  border-radius: 18px;
  background: rgba(5, 11, 18, .98);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .4);
}

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

.ys-consent-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.ys-consent-copy p {
  margin: 0;
  color: #cbd5e1;
}

.ys-consent-copy a {
  color: #67e8f9;
}

.ys-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ys-consent-button {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #475569;
  border-radius: 11px;
  color: #fff;
  background: #162231;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.ys-consent-button:hover,
.ys-consent-button:focus-visible {
  border-color: #67e8f9;
  outline: 3px solid rgba(103, 232, 249, .22);
  outline-offset: 2px;
}

.ys-consent-button--primary {
  border-color: #37a5df;
  background: #168ac8;
}

.ys-consent-button--reject {
  background: transparent;
}

.ys-consent-settings {
  position: fixed;
  z-index: 2147483001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, .72);
}

.ys-consent-dialog {
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 24px;
  border: 1px solid #334155;
  border-radius: 20px;
  background: #07111c;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .55);
}

.ys-consent-dialog h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 25px;
}

.ys-consent-dialog > p {
  margin: 0 0 18px;
  color: #cbd5e1;
}

.ys-consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid #233246;
}

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

.ys-consent-option span {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 13px;
}

.ys-consent-option input {
  width: 24px;
  height: 24px;
  accent-color: #38bdf8;
}

.ys-consent-settings-link {
  position: fixed;
  z-index: 2147482999;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(148, 163, 184, .45);
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(5, 11, 18, .94);
  cursor: pointer;
  font: 700 13px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
}

@media (max-width: 760px) {
  .ys-consent-banner {
    grid-template-columns: 1fr;
  }

  .ys-consent-actions .ys-consent-button {
    flex: 1 1 130px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ys-consent-banner,
  .ys-consent-settings {
    scroll-behavior: auto;
  }
}
