/*
Theme Name: Yiwu Superstar Child
Author: Child theme for Yiwu Superstar website
Description: Astra child theme for Yiwu Superstar.
Version: 1.0.2
Text Domain: yiwu-superstar-child
Template: astra
*/

/* Restore containment for the global floating contact widget. */
#ssContactWidget,
#ssContactWidget * { box-sizing: border-box; }
#ssContactWidget {
  position: fixed !important;
  right: 16px !important;
  bottom: 62px !important;
  z-index: 99999 !important;
  width: 94px !important;
  max-width: 94px !important;
  height: 94px;
  font-family: inherit;
}
#ssContactWidget .ss-welcome-bubble { display: none !important; }
#ssContactWidget .ss-contact-trigger {
  position: relative;
  display: block !important;
  width: 94px !important;
  height: 94px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#ssContactWidget .ss-avatar-shell {
  position: absolute;
  inset: 0;
  display: block;
  width: 94px;
  height: 94px;
  border-radius: 50%;
}
#ssContactWidget .ss-contact-avatar {
  display: block;
  width: 94px !important;
  height: 94px !important;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0,0,0,.2);
}
#ssContactWidget .ss-online-dot {
  position: absolute;
  top: 8px;
  right: 1px;
  display: block;
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #19bd59;
}
#ssContactWidget .ss-contact-panel {
  position: absolute !important;
  inset: auto 0 calc(100% + 16px) auto !important;
  display: block;
  width: 330px !important;
  max-width: calc(100vw - 24px);
  height: auto !important;
  max-height: calc(100vh - 180px);
  overflow-y: auto !important;
  padding: 16px;
  border: 1px solid rgba(6,29,53,.1);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(0,0,0,.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#ssContactWidget.is-open .ss-contact-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#ssContactWidget .ss-panel-header img { width: 50px !important; height: 50px !important; border-radius: 50%; object-fit: cover; }
#ssContactWidget .ss-wechat-qr-box { display: none !important; }
#ssContactWidget.show-wechat-qr .ss-wechat-qr-box { display: block !important; }
#ssContactWidget .ss-wechat-qr-box img { display: block; width: 180px !important; max-width: 100%; height: auto !important; margin: 0 auto 10px; }
@media (max-width: 767px) {
  #ssContactWidget { right: 12px !important; bottom: 54px !important; width: 78px !important; max-width: 78px !important; height: 78px; }
  #ssContactWidget .ss-contact-trigger,
  #ssContactWidget .ss-avatar-shell,
  #ssContactWidget .ss-contact-avatar { width: 78px !important; height: 78px !important; }
  #ssContactWidget .ss-contact-panel { position: fixed !important; right: 12px !important; bottom: 150px !important; width: 315px !important; }
}
@media print { #ssContactWidget { display: none !important; } }
