.consent-panel,
.consent-settings {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.consent-panel {
  position: fixed;
  z-index: 10000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 20px;
  color: #111827;
  background: #ffffff;
  border: 1px solid #d9e2f1;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(6, 26, 64, 0.2);
}

.consent-panel__copy {
  min-width: 0;
}

.consent-panel__copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  line-height: 1.3;
}

.consent-panel__copy p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.45;
}

.consent-panel__copy a {
  display: inline-block;
  margin-top: 6px;
  color: #184fe5;
  font-size: 13px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-panel__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.consent-button,
.consent-settings {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.consent-button--primary {
  color: #ffffff;
  background: #184fe5;
}

.consent-button--secondary {
  color: #111827;
  background: #ffffff;
  border-color: #cbd5e1;
}

.consent-button:focus-visible,
.consent-settings:focus-visible {
  outline: 3px solid rgba(24, 79, 229, 0.3);
  outline-offset: 2px;
}

.consent-settings {
  position: fixed;
  z-index: 9999;
  left: 14px;
  bottom: 14px;
  min-height: 36px;
  padding: 8px 11px;
  color: #15213a;
  background: rgba(255, 255, 255, 0.94);
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(6, 26, 64, 0.14);
  backdrop-filter: blur(10px);
}

@media (max-width: 720px) {
  .consent-panel {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

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

@media (max-width: 430px) {
  .consent-panel {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

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

@media (prefers-color-scheme: dark) {
  .consent-panel {
    color: #ffffff;
    background: #101827;
    border-color: #334155;
  }

  .consent-panel__copy p {
    color: #cbd5e1;
  }

  .consent-panel__copy a {
    color: #8fb3ff;
  }

  .consent-button--secondary,
  .consent-settings {
    color: #ffffff;
    background: #172033;
    border-color: #475569;
  }
}
