.yuga-social-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  color: #fff;
  font-size: .72em;
  font-weight: 700;
  line-height: 1;
  border: 2px solid currentColor;
  border-radius: 4px;
  box-sizing: border-box;
}

.yuga-social-icon {
  color: #fff;
  font-size: 1.05em;
  line-height: 1;
}

/* Brand-specific colors for the new Chinese social links. */
a.elementor-social-icon-douyin {
  color: #fff !important;
  background-color: #000 !important;
}

a.elementor-social-icon-xiaohongshu {
  color: #fff !important;
  background-color: transparent !important;
}

.yuga-social-xhs {
  display: block;
  width: 1.12em;
  height: 1.12em;
  object-fit: contain;
}

.yuga-social-xhs-text {
  display: inline-block;
  color: #fff;
  font-family: "Microsoft YaHei", "Arial Black", sans-serif;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
  white-space: nowrap;
  transform: none;
}

.yuga-social-xhs-logo {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50% !important;
}

/* Match the original hero title typography: Caudex regular rather than a
   heavier browser fallback weight. */
.elementor-element-5b9ae7a7 .ekit-heading--title {
  font-family: "Caudex", serif !important;
  font-weight: 300 !important;
}

.yuga-wechat-modal {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 12, 35, .68);
}

.yuga-wechat-modal.is-open { display: flex; }

.yuga-wechat-dialog {
  position: relative;
  max-width: min(92vw, 430px);
  padding: 26px 26px 22px;
  text-align: center;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}

.yuga-wechat-dialog img {
  display: block;
  width: min(78vw, 360px);
  height: auto;
  margin: 12px auto 0;
}

.yuga-wechat-title {
  margin: 0;
  color: #56377d;
  font-size: 20px;
  font-weight: 700;
}

.yuga-wechat-close {
  position: absolute;
  top: 7px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #56377d;
  font-size: 26px;
  line-height: 28px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

/* Mobile social tray: three equal, high-contrast touch targets.  This
   overrides the former Elementor grid with zero columns and keeps every icon
   centred above the mobile safe-area. */
@media (max-width: 767px) {
  .elementor-element-0a363fb {
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 10px 16px max(10px, env(safe-area-inset-bottom)) !important;
    background: linear-gradient(90deg, #51356f 0%, #68478d 100%) !important;
    box-shadow: 0 -5px 18px rgba(40, 22, 62, .22) !important;
  }

  .elementor-element-0a363fb > .e-con-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .elementor-element-0a363fb .elementor-element-f8d5942,
  .elementor-element-0a363fb .elementor-element-f8d5942 .elementor-widget-container,
  .elementor-element-0a363fb .elementor-element-f8d5942 .elementor-social-icons-wrapper {
    display: flex !important;
    align-items: center !important;
  }

  .elementor-element-0a363fb .elementor-element-f8d5942 .elementor-social-icons-wrapper {
    justify-content: flex-start !important;
    gap: 9px !important;
    line-height: 1 !important;
  }

  .elementor-element-0a363fb .elementor-element-f8d5942 .elementor-grid-item {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
  }

  .elementor-element-0a363fb .elementor-element-f8d5942 .elementor-social-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    color: #533e77 !important;
    background: #fff !important;
    border: 2px solid rgba(255, 255, 255, .9) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 7px rgba(16, 8, 25, .24) !important;
  }

  .elementor-element-0a363fb .elementor-social-icon-douyin .yuga-social-icon {
    color: #121212 !important;
    font-size: 26px !important;
  }

  .elementor-element-0a363fb .elementor-social-icon-wechat .yuga-social-icon {
    color: #05a846 !important;
    font-size: 26px !important;
  }

  .elementor-31 .elementor-element.elementor-element-0a363fb .elementor-element.elementor-element-f8d5942 .elementor-repeater-item-23d7cbc.elementor-social-icon,
  .elementor-element-0a363fb .elementor-element-f8d5942 .elementor-social-icon-xiaohongshu {
    background: #ff1744 !important;
    background-color: #ff1744 !important;
    border-color: #ff1744 !important;
    overflow: hidden !important;
  }

  .elementor-element-0a363fb .elementor-social-icon-xiaohongshu .yuga-social-xhs-logo {
    display: block !important;
    width: 38px !important;
    height: 38px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
  }

  .elementor-element-0a363fb .elementor-element-602609e .elementor-button {
    min-height: 38px !important;
    padding: 8px 12px !important;
    color: #533e77 !important;
    background: #fff !important;
    border: 1px solid rgba(255, 255, 255, .86) !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 7px rgba(16, 8, 25, .2) !important;
  }
}
