html,
body {
  max-width: 100%;
}

/* The legacy album/video carousels deliberately render off-screen slides.
   Keep those slides inside the page shell so they never create a horizontal
   document scrollbar on narrower desktop windows. */
.page-container {
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  .page-container {
    overflow-x: hidden;
  }
}

html.ss-local-contact-open {
  overflow: hidden;
}

.ss-local-contact-root,
.ss-local-contact-root * {
  box-sizing: border-box;
}

.ss-local-contact-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 20px;
  color: #1d2129;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.ss-local-contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.54);
}

.ss-local-contact-dialog {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 30px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  text-align: center;
}

.ss-local-contact-close {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 5px 8px;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 14px;
  cursor: pointer;
}

.ss-local-contact-close:hover,
.ss-local-contact-close:focus-visible {
  color: #e31111;
}

.ss-local-contact-brand {
  margin-bottom: 6px;
  color: #e31111;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.ss-local-contact-dialog h2 {
  margin: 0;
  color: #1d2129;
  font-size: 24px;
  line-height: 1.4;
}

.ss-local-contact-description,
.ss-local-contact-context {
  margin: 12px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.7;
}

.ss-local-contact-qr-label {
  margin: 8px 0 0;
  color: #667085;
  font-size: 14px;
}

.ss-local-contact-context {
  color: #344054;
  font-weight: 600;
}

.ss-local-contact-qr {
  width: 176px;
  min-height: 176px;
  margin: 18px auto 10px;
  padding: 8px;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  background: #fff;
}

.ss-local-contact-qr canvas,
.ss-local-contact-qr img,
#qrcode canvas,
#qrcode img,
#scan_code_dialing canvas,
#scan_code_dialing img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.ss-local-contact-number {
  margin-top: 14px;
  color: #344054;
  font-size: 16px;
}

.ss-local-contact-number strong {
  color: #e31111;
  font-size: 19px;
}

.ss-local-contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.ss-local-contact-primary,
.ss-local-contact-secondary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid #e31111;
  border-radius: 7px;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}

.ss-local-contact-primary {
  background: #e31111;
  color: #fff;
}

.ss-local-contact-secondary {
  background: #fff;
  color: #e31111;
}

.ss-local-contact-primary:hover,
.ss-local-contact-primary:focus-visible {
  background: #be0f0f;
  color: #fff;
}

.ss-local-contact-secondary:hover,
.ss-local-contact-secondary:focus-visible {
  background: #fff5f5;
}

.ss-local-contact-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: #027a48;
  font-size: 13px;
}

.ss-local-qr-fallback {
  display: flex;
  width: 186px;
  height: 186px;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px solid #eaecf0;
  color: #e31111;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 640px) {
  .ss-local-contact-root {
    align-items: end;
    padding: 12px;
  }

  .ss-local-contact-dialog {
    width: 100%;
    padding: 26px 20px 22px;
    border-radius: 16px 16px 10px 10px;
  }

  .ss-local-contact-dialog h2 {
    font-size: 21px;
  }

  .ss-local-contact-actions {
    grid-template-columns: 1fr;
  }
}
