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

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

.consent-banner {
  position: fixed;
  z-index: 2500;
  inset-inline: 16px;
  bottom: 16px;
  width: min(760px, calc(100% - 32px));
  margin-inline: auto;
  padding: 18px;
  color: #fff;
  background: rgba(24, 20, 36, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
  direction: rtl;
  text-align: right;
}

.consent-banner h2 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 1.18rem;
  line-height: 1.35;
}

.consent-banner p {
  margin: 0;
  color: #e5e1ec;
  font-size: 0.92rem;
  line-height: 1.65;
}

.consent-banner a {
  color: #ffd166;
  text-underline-offset: 3px;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.consent-button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.consent-button-primary {
  color: #191526;
  background: #ffd166;
}

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

.consent-button:hover {
  filter: brightness(1.08);
}

.consent-button:focus-visible,
.consent-settings:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.consent-settings {
  position: fixed;
  z-index: 2400;
  inset-inline-end: 14px;
  bottom: 14px;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  background: #28223a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .consent-banner {
    inset-inline: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    padding: 16px;
    border-radius: 15px;
  }

  .consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .consent-button {
    width: 100%;
  }

  .consent-settings {
    inset-inline-end: 10px;
    bottom: 10px;
  }
}

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