.consent-banner,
.consent-panel {
  position: fixed;
  z-index: 1000;
  right: 20px;
  bottom: 20px;
  width: min(520px, calc(100vw - 40px));
  color: #f4efe6;
  background: #1e1c17;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.consent-banner[hidden],
.consent-panel[hidden] {
  display: none;
}

.consent-inner {
  padding: 22px;
}

.consent-title {
  margin: 0 0 8px;
  color: #fffaf0;
  font-size: 17px;
  font-weight: 700;
}

.consent-copy {
  margin: 0;
  color: #b8af9f;
}

.consent-copy a,
.consent-panel a {
  color: #ffd166;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.consent-button {
  min-height: 42px;
  padding: 9px 15px;
  color: #f4efe6;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.consent-button:hover,
.consent-button:focus-visible {
  color: #ffd166;
  border-color: #f5b623;
  outline: none;
}

.consent-button-primary {
  color: #171306;
  background: #f5b623;
  border-color: #f5b623;
}

.consent-button-primary:hover,
.consent-button-primary:focus-visible {
  color: #171306;
  background: #ffd166;
  border-color: #ffd166;
}

.consent-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.consent-close {
  width: 38px;
  height: 38px;
  flex: none;
  color: #f4efe6;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}

.consent-options {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.consent-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
}

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

.consent-option span {
  margin-top: 3px;
  color: #a89f90;
  font-size: 12px;
}

.consent-option input {
  width: 20px;
  height: 20px;
  accent-color: #f5b623;
}

.consent-status {
  color: #7f776b;
  font-size: 12px;
}

@media (max-width: 560px) {
  .consent-banner,
  .consent-panel {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    overflow: auto;
  }

  .consent-inner {
    padding: 18px;
  }

  .consent-actions {
    display: grid;
  }

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

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