.rks-consent[hidden] {
  display: none !important;
}

.rks-consent {
  position: fixed;
  z-index: 2147483000;
  left: 50%;
  bottom: 20px;
  width: min(760px, calc(100% - 32px));
  transform: translateX(-50%);
  color: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rks-consent__panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(6, 6, 6, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.rks-consent__title {
  margin: 0 0 10px;
  color: #fff;
  font-family: "Inter Tight", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.rks-consent__text,
.rks-consent__detail-copy {
  max-width: 68ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  line-height: 1.55;
}

.rks-consent a {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.rks-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.rks-consent__button {
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid #fff;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.rks-consent__button:hover {
  background: #ececec;
}

.rks-consent__button--secondary {
  background: transparent;
  color: #fff;
}

.rks-consent__button--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.rks-consent__button:focus-visible,
.rks-consent__toggle input:focus-visible + span {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.rks-consent__details {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.rks-consent__category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}

.rks-consent__category + .rks-consent__category {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.rks-consent__category-name {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}

.rks-consent__toggle {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  margin-top: 2px;
}

.rks-consent__toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.rks-consent__toggle span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: #252525;
  cursor: pointer;
}

.rks-consent__toggle span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  background: #fff;
  content: "";
  transition: transform 180ms ease;
}

.rks-consent__toggle input:checked + span {
  background: #fff;
}

.rks-consent__toggle input:checked + span::after {
  background: #111;
  transform: translateX(20px);
}

.rks-consent__toggle input:disabled + span {
  cursor: not-allowed;
  opacity: 0.72;
}

.rks-consent__save {
  width: 100%;
  margin-top: 12px;
}

@media (max-width: 640px) {
  .rks-consent {
    bottom: 12px;
    width: calc(100% - 24px);
  }

  .rks-consent__panel {
    max-height: calc(100vh - 24px);
    padding: 20px;
    overflow-y: auto;
  }

  .rks-consent__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rks-consent__button,
  .rks-consent__toggle span::after {
    transition: none;
  }
}
