.ms-consent,
.ms-measurement-qa {
  box-sizing: border-box;
  color: #111317;
  font: 14px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

.ms-consent *,
.ms-measurement-qa * { box-sizing: border-box; }
.ms-consent [hidden] { display: none !important; }
.ms-consent { width: 100%; }

.ms-consent__surface {
  position: fixed;
  inset: auto 0 0;
  z-index: 60;
  max-height: 70vh;
  max-height: 70dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 2px solid #06e1e6;
  background: #fff;
  box-shadow: 0 -2px 12px #00000012;
  padding: 18px max(20px, calc((100% - 1220px) / 2));
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}

.ms-consent__banner {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(490px, 1fr);
  align-items: center;
  gap: 24px;
}

.ms-consent h2 {
  margin: 0 0 6px;
  color: #111317;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

.ms-consent p { margin: 0; color: #454950; font-size: 14px; }
.ms-consent__copy { min-width: 0; }
.ms-consent__actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }

.ms-consent__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #111317;
  border-radius: 6px;
  background: #fff;
  color: #111317;
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.ms-consent__button:hover { background: #06e1e6; }
.ms-consent :focus-visible,
.ms-consent__settings:focus-visible,
.ms-measurement-qa :focus-visible { outline: 3px solid #00777d; outline-offset: 3px; }
.ms-consent__settings {
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}
.ms-consent__preferences { max-width: 760px; margin-inline: auto; }
.ms-consent__preferences > p { margin-bottom: 16px; }
.ms-consent__preferences > .ms-consent__actions { margin-top: 18px; }

.ms-consent__option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #e2e4e8;
  cursor: pointer;
}

.ms-consent__option input { flex: 0 0 22px; width: 22px; height: 22px; margin: 2px 0 0; accent-color: #00777d; }
.ms-consent__option > span { min-width: 0; }
.ms-consent__option strong { display: block; font-size: 15px; font-weight: 600; }
.ms-consent__option span span { display: block; margin-top: 3px; color: #454950; }
.ms-consent__surface { overflow-wrap: anywhere; }

.ms-measurement-qa {
  position: relative;
  width: min(430px, calc(100% - 32px));
  margin: 12px 16px;
  padding: 10px 12px;
  border: 1px solid #111317;
  border-left: 3px solid #06e1e6;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.ms-measurement-qa summary { min-height: 24px; cursor: pointer; font-weight: 600; }
.ms-measurement-qa p { margin: 8px 0; color: #454950; font-size: 12px; }
.ms-measurement-qa ol { margin: 8px 0 0; padding-left: 20px; }

@media (max-width: 1000px) {
  .ms-consent__banner { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

@media (max-width: 540px) {
  .ms-consent__surface { padding: 14px 16px max(14px, env(safe-area-inset-bottom)); }
  .ms-consent__actions { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ms-consent h2 { font-size: 17px; }
  .ms-consent p { font-size: 13px; }
}
