.consent-bar[hidden], .consent-bar [hidden], .consent-settings[hidden] { display: none; }

.consent-bar {
  position: fixed;
  z-index: 10000;
  inset-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 10px clamp(18px, 3.5vw, 56px);
  border: 1px solid #e6e1ef;
  border-radius: 36px;
  background: #fff;
  color: #221d31;
  box-shadow: 0 5px 22px #2115351c;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.45;
}

.consent-bar p { margin: 0; color: inherit; font: inherit; }
.consent-bar a { color: inherit; white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: flex; gap: 10px; flex: none; }

.consent-actions button {
  appearance: none;
  min-width: 108px;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid #beb7cc;
  border-radius: 999px;
  background: #fff;
  color: #221d31;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.consent-actions #analytics-accept { background: #8529dc; border-color: #8529dc; color: white; }
.consent-actions #analytics-accept:hover { background: #7320c1; }
.consent-actions #analytics-reject:hover { background: #f6f3fa; }
.consent-bar :focus-visible, .consent-settings:focus-visible { outline: 2px solid #8225de; outline-offset: 3px; }
.consent-bar #analytics-choice-status:not([hidden]) { font-size: 13px; }

.consent-settings {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

.consent-settings:hover { text-decoration: underline; }

@media (max-width: 620px) {
  .consent-bar {
    inset-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 13px;
  }

  .consent-actions button { flex: 1; min-width: 0; }
}
