.ihConsentBanner,
.ihConsentSettings,
.ihConsentBanner button {
  font: inherit;
}

.ihConsentBanner[hidden],
.ihConsentSettings[hidden] {
  display: none;
}

.ihConsentBanner {
  position: fixed;
  z-index: 10000;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  left: max(18px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(920px, calc(100% - 36px));
  margin-inline: auto;
  padding: 20px;
  border: 1px solid #e1d8ee;
  border-radius: 18px;
  background: #fff;
  color: #17112b;
  box-shadow: 0 20px 70px rgba(45, 25, 75, 0.22);
}

.ihConsentBody {
  flex: 1;
}

.ihConsentBody h2 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.ihConsentBody p {
  margin: 0;
  color: #625a70;
  font-size: 14px;
  line-height: 1.55;
}

.ihConsentBody a {
  color: #6c2bd9;
  font-weight: 700;
}

.ihConsentActions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.ihConsentActions button,
.ihConsentSettings {
  min-height: 44px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.ihConsentActions button:focus-visible,
.ihConsentSettings:focus-visible,
.analyticsPreferencesLink:focus-visible {
  outline: 3px solid rgba(108, 43, 217, 0.3);
  outline-offset: 3px;
}

.ihConsentReject {
  padding: 10px 15px;
  border: 1px solid #dcd4e7;
  background: #fff;
  color: #40384d;
}

.ihConsentAccept {
  padding: 10px 17px;
  border: 1px solid #6c2bd9;
  background: #6c2bd9;
  color: #fff;
  box-shadow: 0 7px 18px rgba(108, 43, 217, 0.2);
}

.ihConsentReject:hover {
  background: #f7f4fa;
}

.ihConsentAccept:hover {
  background: #5720b7;
}

.ihConsentSettings {
  position: fixed;
  z-index: 9999;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
  padding: 9px 13px;
  border: 1px solid #ded5ea;
  background: rgba(255, 255, 255, 0.96);
  color: #514660;
  box-shadow: 0 8px 28px rgba(45, 25, 75, 0.14);
}

.analyticsPreferencesLink {
  padding: 0;
  border: 0;
  background: transparent;
  color: #6c2bd9;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
}

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

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

  .ihConsentActions button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .ihConsentActions {
    grid-template-columns: 1fr;
  }
}
