.mms-guidance-panel {
  max-width: 990px;
  border-top: 0;
}

/* Keep the shared information mark legible when it appears on light cards. */
.mms-guidance-info-icon {
  background: #36454f;
}

.data-source-more-info {
  position: relative;
  z-index: 10;
  width: fit-content;
  max-width: 100%;
  margin: .5rem -1.5rem 1rem auto;
  border: 1px solid #36454f;
  border-radius: .45rem 0 0 .45rem;
  background: #36454f;
  color: #fff;
  box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .16);
}

.data-source-more-info-column {
  align-self: flex-start;
  padding-left: 0;
}

@media (max-width: 991.98px) {
  .data-source-more-info-column { padding-left: calc(var(--bs-gutter-x) * .5); }
}

.data-source-more-info summary {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: fit-content;
  min-height: 3rem;
  margin-left: auto;
  padding: .4rem 1rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.data-source-more-info summary::-webkit-details-marker { display: none; }
.data-source-more-info summary:focus-visible { outline: 3px solid #ffcf4a; outline-offset: 2px; }
.data-source-more-info .mms-guidance-info-icon { flex: 0 0 auto; }
.data-source-more-info-content {
  position: absolute;
  top: calc(100% + .25rem);
  right: 0;
  width: min(38rem, calc(100vw - 2rem));
  padding: 1.25rem;
  border-radius: .45rem 0 0 .45rem;
  background: #36454f;
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .3);
}
.data-source-more-info-content h2 { color: inherit; }
.data-source-more-info-content p { margin-bottom: .85rem; }
.data-source-more-info-content p:last-child { margin-bottom: 0; }

.wizard-progress-key {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: .75rem 1rem;
  border: 1px solid #ced4da;
  border-radius: .375rem;
  background: #f8f9fa;
  color: #212529;
}
.wizard-progress-key ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.wizard-progress-key li { display: inline-flex; align-items: center; gap: .45rem; }
.wizard-progress-key-icon { display: inline-block; width: 1rem; height: 1rem; flex: 0 0 1rem; border: 2px solid #adb5bd; border-radius: 50%; background: #fff; }
.wizard-progress-key-icon.step-partial { border-color: #6c757d; background: linear-gradient(90deg, #6c757d 50%, #fff 50%); }
.wizard-progress-key-icon.step-complete { border-color: #00b2a9; background: #00b2a9; }

.mms-guidance-panel .mms-guidance-support-link,
.mms-guidance-panel .mms-guidance-support-link:hover,
.mms-guidance-panel .mms-guidance-support-link:focus-visible {
  color: #1e345c !important;
  text-decoration: none;
}

.mms-guidance-panel.wizard-guidance-overlay {
  position: fixed;
  top: calc(70px + 1rem);
  left: 0;
  z-index: 1030;
  width: 3rem;
  max-width: none;
  height: 3.25rem;
  margin: 0 !important;
  border-left: 0;
  border-radius: 0;
}

.wizard-guidance-overlay .mms-guidance-toggle {
  width: 3rem;
  height: 3rem;
  grid-template-columns: 3rem;
  border-left: 0;
  border-radius: 0 .45rem .45rem 0;
}

.wizard-guidance-overlay .mms-guidance-info-icon {
  width: 3rem;
  height: 3rem;
  font-size: 1.75rem;
  border-left: 0;
  border-radius: 0 .45rem .45rem 0;
}

.wizard-guidance-overlay .mms-guidance-collapsible {
  top: 3.25rem;
  width: min(100vw, 60rem);
}

.wizard-guidance-overlay .mms-guidance-accordion-content {
  border-left: 0;
  border-radius: 0 .45rem .45rem 0;
}
@media (min-width: 992px) {
  .dataset-completion-wizard .data-source-purpose-restricted-field {
    width: 25%;
  }
}

.wizard-progress-key-icon.step-mandatory-complete { border-color: #00b2a9; background: conic-gradient(#fff 0deg 90deg, #00b2a9 90deg 360deg); }

.wizard-progress-key-icon.step-optional-not-started { border-style: dotted; }
