/* Figma Foundation footer: 1920px desktop frame, 1200px centered content. */
.md-site .md-medical-footer {
  position: relative;
  box-sizing: border-box;
  height: 522px;
  min-height: 522px;
  margin: 0 !important;
  padding: 0;
  color: #333;
  background: #f5f5f7;
  font-family: var(--md-font-medium);
}
.md-site .md-medical-footer *,
.md-site .md-medical-footer *::before,
.md-site .md-medical-footer *::after { box-sizing: border-box; }
.md-site .md-medical-footer .md-medical-shell {
  position: relative;
  width: min(1200px, calc(100% - 64px));
  height: 522px;
  margin: 0 auto !important;
}

.md-site .md-medical-footer__directory {
  position: absolute;
  top: 100px;
  left: 0;
  display: grid;
  width: 1200px;
  grid-template-columns: repeat(4, 260px) 160px;
}
.md-site .md-medical-footer__column,
.md-site .md-medical-footer__column > section {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 0;
  flex-direction: column;
  align-items: flex-start;
}
.md-site .md-medical-footer__column h3 {
  margin: 0 0 20px;
  padding: 0;
  color: #333;
  font-family: var(--md-font-bold);
  font-size: 18px;
  font-weight: 400;
  line-height: 21px;
  white-space: nowrap;
}
.md-site .md-medical-footer__column a,
.md-site .md-medical-footer__utility-links a {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  color: #666 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: var(--md-font-medium);
  font-size: max(16px, var(--md-pc-readable-font, 0px));
  font-weight: 400;
  line-height: 19px;
  text-decoration: none !important;
  white-space: nowrap;
}
.md-site .md-medical-footer__column a:hover,
.md-site .md-medical-footer__column a:focus-visible,
.md-site .md-medical-footer__utility-links a:hover,
.md-site .md-medical-footer__utility-links a:focus-visible {
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 4px;
}
.md-site .md-medical-footer__column--partnerships > section + section,
.md-site .md-medical-footer__column--contact > section + section { margin-top: 56px; }

.md-site .md-medical-footer__social { display: flex; gap: 16px; }
.md-site .md-medical-footer__social-item {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  outline: none;
}
.md-site .md-medical-footer__social-icon { display: block; width: 32px; height: 32px; }
.md-site .md-medical-footer__qr {
  position: absolute;
  z-index: 6;
  top: 40px;
  left: 50%;
  visibility: hidden;
  width: 128px;
  height: 138px;
  background: url('/wp-content/themes/meituan-drone-child/assets/images/qr-frame.svg') center / 128px 138px no-repeat;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  pointer-events: none;
}
.md-site .md-medical-footer__qr img {
  display: block;
  width: 100px;
  height: 100px;
  margin: 20px 0 0 10px;
  object-fit: cover;
}
.md-site .md-medical-footer__social-item:hover .md-medical-footer__qr,
.md-site .md-medical-footer__social-item:focus-visible .md-medical-footer__qr {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.md-site .md-medical-footer__utility {
  position: absolute;
  top: 399px;
  left: 0;
  display: flex;
  align-items: flex-start;
}
.md-site .md-medical-footer__brand {
  display: block;
  width: 156px;
  height: 28px;
  margin-left: 1px;
  line-height: 0;
}
.md-site .md-medical-footer__brand img { display: block; width: 156px; height: 28px; }
.md-site .md-medical-footer__utility-links {
  display: flex;
  margin-left: 40px;
  padding-top: 5px;
  gap: 40px;
}
.md-site .md-medical-footer__utility-links a { margin: 0; }

.md-site .md-medical-footer__legal {
  position: absolute;
  top: 447px;
  left: 0;
  display: flex;
  width: 1200px;
  min-height: 75px;
  padding-top: 23px;
  border-top: 1px solid #b9bbc0;
  color: #adadad;
  font-family: var(--md-font-medium);
  font-size: max(16px, var(--md-pc-readable-font, 0px));
  font-weight: 400;
  line-height: 19px;
  align-items: flex-start;
  gap: 24px;
}
.md-site .md-medical-footer__legal span { display: inline-flex; align-items: center; }
.md-site .md-medical-footer__legal a { color: inherit !important; text-decoration: none !important; }
.md-site .md-medical-footer__legal a:hover,
.md-site .md-medical-footer__legal a:focus-visible { text-decoration: underline !important; text-underline-offset: 4px; }
.md-site .md-medical-footer__legal img { display: block; width: 15px; height: 16px; margin-right: 7px; }

.md-site .md-medical-footer__legal .md-footer-privacy-placeholder { display: none; }
@media (min-width: 1024px) {
  /* Follow the final registration number; retain the existing registration gap. */
  .md-site .md-medical-footer__legal .md-footer-privacy-placeholder {
    display: inline-flex;
    flex-shrink: 0;
    font-size: 16px;
    line-height: 19px;
    color: #adadad;
    white-space: nowrap;
    cursor: default;
  }
  .md-site .md-medical-footer__legal a.md-footer-privacy-placeholder { cursor: pointer; }
  .md-site .md-medical-footer__legal > span + .md-footer-privacy-placeholder {
    /* Existing flex gap 24px + this 16px = 40px. */
    margin-left: 16px;
  }
}

/* Keep the QR popover inside the 1280px minimum desktop canvas. */
@media (max-width: 1280px) {
  .md-site .md-medical-footer__social-item:last-child .md-medical-footer__qr { left: calc(50% - 8px); }
}
