.ms-privacy-choice-link {
  appearance: none;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  padding: 0;
  text-align: left;
}

.ms-privacy-choice-link:hover {
  border-bottom-color: currentColor;
}

.ms-privacy-choice-link:focus-visible,
.ms-privacy-button:focus-visible,
.ms-privacy-panel__close:focus-visible,
.ms-privacy-panel__policy:focus-visible {
  outline: 3px solid #f4c44e;
  outline-offset: 3px;
}

.ms-privacy-panel[hidden] {
  display: none !important;
}

.ms-privacy-panel {
  box-sizing: border-box;
  position: fixed;
  z-index: 10000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  max-width: 940px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: #101827;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  color: #f8fafc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ms-privacy-panel *,
.ms-privacy-panel *::before,
.ms-privacy-panel *::after {
  box-sizing: border-box;
}

.ms-privacy-panel__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px;
}

.ms-privacy-panel__eyebrow {
  margin: 0 0 7px;
  color: #f4c44e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ms-privacy-panel h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(19px, 2.5vw, 25px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.ms-privacy-panel__copy > p:not(.ms-privacy-panel__eyebrow) {
  max-width: 690px;
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.55;
}

.ms-privacy-panel__status {
  min-height: 1.2em;
  color: #f8fafc !important;
  font-size: 12px !important;
  font-weight: 700;
}

.ms-privacy-panel__policy {
  display: inline-block;
  margin-top: 8px;
  border-bottom: 1px solid rgba(244, 196, 78, 0.48);
  color: #f4c44e;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.ms-privacy-panel__actions {
  display: grid;
  min-width: 196px;
  gap: 9px;
}

.ms-privacy-button,
.ms-privacy-panel__close {
  appearance: none;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  padding: 11px 17px;
}

.ms-privacy-button--primary {
  border-color: #f4c44e;
  background: #f4c44e;
  color: #111827;
}

.ms-privacy-button:hover,
.ms-privacy-panel__close:hover {
  filter: brightness(1.07);
}

.ms-privacy-button:disabled {
  cursor: not-allowed;
  filter: none;
  opacity: 0.48;
}

.ms-privacy-panel__close {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 12px;
  padding: 5px 12px;
}

.ms-privacy-panel__close[hidden] {
  display: none !important;
}

.ms-privacy-fallback {
  padding: 18px 24px;
  background: #0b1220;
  color: #cbd5e1;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 700px) {
  .ms-privacy-panel {
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
    border-radius: 15px;
  }

  .ms-privacy-panel__inner {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 18px;
  }

  .ms-privacy-panel__actions {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ms-privacy-panel:not([hidden]) {
    animation: ms-privacy-enter 180ms ease-out both;
  }

  @keyframes ms-privacy-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
