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

.consent-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10000;
  padding: 16px;
  color: #102b55;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, rgba(7, 28, 56, 0), rgba(7, 28, 56, 0.22));
}

.consent-banner__panel {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid #d8e0ea;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 55px rgba(6, 25, 50, 0.24);
}

.consent-banner__eyebrow {
  margin: 0 0 5px;
  color: #c95700;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.consent-banner__title {
  margin: 0 0 8px;
  color: #102b55;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.2;
}

.consent-banner__text {
  max-width: 780px;
  margin: 0;
  color: #3c4d63;
  font-size: 0.94rem;
  line-height: 1.55;
}

.consent-banner__text a {
  color: #aa4700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-banner__preferences {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 78px;
  padding: 13px 14px;
  border: 1px solid #d8e0ea;
  border-radius: 10px;
  background: #f7f9fc;
  cursor: pointer;
}

.consent-option--required {
  cursor: default;
}

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

.consent-option strong {
  margin-bottom: 3px;
  color: #102b55;
  font-size: 0.93rem;
}

.consent-option small {
  color: #5a687a;
  font-size: 0.76rem;
  line-height: 1.35;
}

.consent-option input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  accent-color: #c95700;
}

.consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.consent-button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #102b55;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

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

.consent-button--accept,
.consent-button--save {
  color: #ffffff;
  border-color: #c95700;
  background: #c95700;
}

.consent-button--reject {
  color: #102b55;
  background: #ffffff;
}

.consent-button--settings {
  color: #102b55;
  border-color: transparent;
  background: #edf2f8;
}

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

.consent-settings-link {
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-settings-floating {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 9999;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #102b55;
  font: 600 0.76rem/1.2 Arial, Helvetica, sans-serif;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 18px rgba(6, 25, 50, 0.16);
  cursor: pointer;
}

.consent-settings-floating:hover {
  border-color: #c95700;
  color: #a44100;
}

@media (max-width: 720px) {
  .consent-banner {
    padding: 10px;
  }

  .consent-banner__panel {
    max-height: calc(100vh - 20px);
    padding: 18px;
    overflow-y: auto;
    border-radius: 12px;
  }

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

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

  .consent-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent-banner *,
  .consent-banner *::before,
  .consent-banner *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
