:root {
  --jy-contact-right: 28px;
  --jy-contact-bottom: 22px;
  --jy-contact-size: 56px;
  --jy-contact-gap: 14px;
}

.jy-social-footer {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 28px clamp(18px, 5vw, 76px);
  border-top: 1px solid rgba(200, 137, 74, 0.34);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #171512;
  color: #e8e3dc;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

.jy-social-footer *,
.jy-social-footer *::before,
.jy-social-footer *::after {
  box-sizing: border-box;
}

.jy-social-footer__inner {
  display: flex;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.jy-social-footer__copy {
  min-width: 0;
}

.jy-social-footer__copy strong,
.jy-social-footer__copy span {
  display: block;
}

.jy-social-footer__copy strong {
  margin-bottom: 6px;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
}

.jy-social-footer__copy span {
  color: #bdb5ab;
  font-size: 13px;
  line-height: 1.55;
}

.jy-social-footer__links {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(4, minmax(94px, 1fr));
  gap: 8px;
}

.jy-social-footer__link {
  display: inline-flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
  color: #e8e3dc !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2;
  text-decoration: none !important;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.jy-social-footer__link:hover,
.jy-social-footer__link:focus-visible {
  border-color: #c8894a;
  background: rgba(200, 137, 74, 0.1);
  color: #c8894a !important;
}

.jy-social-footer__link:focus-visible {
  outline: 2px solid #c8894a;
  outline-offset: 2px;
}

.jy-social-footer__link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: currentColor;
}

.jy-social-footer__legacy {
  display: none !important;
}

.jy-whatsapp-root,
.wa-widget {
  position: fixed !important;
  right: var(--jy-contact-right) !important;
  left: auto !important;
  bottom: var(--jy-contact-bottom) !important;
  z-index: 10018 !important;
  width: var(--jy-contact-size) !important;
  height: var(--jy-contact-size) !important;
  display: block !important;
  margin: 0 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0 !important;
}

.jy-whatsapp-link,
.wa-widget .wa-btn {
  width: var(--jy-contact-size) !important;
  height: var(--jy-contact-size) !important;
  min-width: var(--jy-contact-size) !important;
  min-height: var(--jy-contact-size) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #25d366 !important;
  color: #fff !important;
  display: grid !important;
  place-items: center !important;
  text-decoration: none !important;
  box-shadow: 0 5px 18px rgba(16, 117, 54, 0.38) !important;
  transition: transform 160ms ease, box-shadow 160ms ease !important;
}

.jy-whatsapp-link:hover,
.wa-widget .wa-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(16, 117, 54, 0.48) !important;
}

.jy-whatsapp-link:focus-visible,
.wa-widget .wa-btn:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 3px !important;
}

.jy-whatsapp-link svg,
.wa-widget .wa-btn svg {
  width: 29px !important;
  height: 29px !important;
  display: block !important;
  fill: currentColor !important;
}

.jy-whatsapp-label,
.wa-widget .wa-label {
  position: absolute !important;
  top: 50% !important;
  right: calc(100% + 10px) !important;
  left: auto !important;
  max-width: 150px !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  background: #171717 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(5px, -50%) !important;
  transition: opacity 150ms ease, transform 150ms ease !important;
}

.jy-wechat-root {
  position: fixed !important;
  right: var(--jy-contact-right) !important;
  left: auto !important;
  bottom: calc(var(--jy-contact-bottom) + var(--jy-contact-size) + var(--jy-contact-gap) + var(--jy-contact-size) + var(--jy-contact-gap)) !important;
  z-index: 10019 !important;
  width: var(--jy-contact-size) !important;
  height: var(--jy-contact-size) !important;
  display: block !important;
  margin: 0 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0 !important;
}

.jy-wechat-button {
  width: var(--jy-contact-size) !important;
  height: var(--jy-contact-size) !important;
  min-width: var(--jy-contact-size) !important;
  min-height: var(--jy-contact-size) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #07c160 !important;
  color: #fff !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  box-shadow: 0 5px 18px rgba(7, 137, 70, 0.36) !important;
  transition: transform 160ms ease, box-shadow 160ms ease !important;
}

.jy-wechat-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(7, 137, 70, 0.46) !important;
}

.jy-wechat-button:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 3px !important;
}

.jy-wechat-button svg {
  width: 31px !important;
  height: 31px !important;
  display: block !important;
  fill: currentColor !important;
}

.jy-wechat-label {
  position: absolute !important;
  top: 50% !important;
  right: calc(100% + 10px) !important;
  left: auto !important;
  max-width: 150px !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  background: #171717 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(5px, -50%) !important;
  transition: opacity 150ms ease, transform 150ms ease !important;
}

.jy-whatsapp-root:hover .jy-whatsapp-label,
.jy-whatsapp-root:focus-within .jy-whatsapp-label,
.wa-widget:hover .wa-label,
.wa-widget:focus-within .wa-label,
.jy-wechat-root:hover .jy-wechat-label,
.jy-wechat-root:focus-within .jy-wechat-label,
.jy-ai-root:hover .jy-ai-label,
.jy-ai-root:focus-within .jy-ai-label {
  opacity: 1 !important;
  transform: translate(0, -50%) !important;
}

.jy-wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(14, 13, 11, 0.74);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

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

.jy-wechat-modal *,
.jy-wechat-modal *::before,
.jy-wechat-modal *::after {
  box-sizing: border-box;
}

.jy-wechat-modal__panel {
  position: relative;
  width: min(390px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(200, 137, 74, 0.34);
  border-radius: 8px;
  background: #fff;
  color: #181612;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  text-align: center;
}

.jy-wechat-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0eee9;
  color: #1b1915;
  cursor: pointer;
  font-size: 27px;
  line-height: 1;
}

.jy-wechat-modal[dir="rtl"] .jy-wechat-modal__close {
  right: auto;
  left: 10px;
}

.jy-wechat-modal__close:focus-visible {
  outline: 2px solid #c8894a;
  outline-offset: 2px;
}

.jy-wechat-modal h2 {
  margin: 0 38px 8px;
  color: #181612;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0;
}

.jy-wechat-modal__copy {
  margin: 0 auto 16px;
  color: #625d55;
  font-size: 14px;
  line-height: 1.55;
}

.jy-wechat-modal__qr {
  display: block;
  width: min(246px, 82%);
  margin: 0 auto 10px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.jy-wechat-modal__qr img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 888 / 1191;
  object-fit: contain;
}

.jy-wechat-modal__identity {
  display: block;
  margin: 0 0 14px;
  color: #24211d;
  font-size: 14px;
  line-height: 1.3;
}

.jy-wechat-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.jy-wechat-modal__action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  background: #fff;
  color: #1c1915 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.25;
  text-decoration: none !important;
}

.jy-wechat-modal__action--primary {
  border-color: #07c160;
  background: #07c160;
  color: #fff !important;
}

.jy-wechat-modal__action:focus-visible {
  outline: 2px solid #c8894a;
  outline-offset: 2px;
}

.jy-wechat-modal__note {
  margin: 12px 0 0;
  color: #746f68;
  font-size: 11px;
  line-height: 1.5;
}

body.jy-wechat-modal-open {
  overflow: hidden !important;
}

.jy-ai-root {
  right: var(--jy-contact-right) !important;
  left: auto !important;
  bottom: calc(var(--jy-contact-bottom) + var(--jy-contact-size) + var(--jy-contact-gap)) !important;
  z-index: 10020 !important;
  display: block !important;
  width: var(--jy-contact-size) !important;
  height: var(--jy-contact-size) !important;
}

.jy-ai-launch {
  width: var(--jy-contact-size) !important;
  height: var(--jy-contact-size) !important;
}

.jy-ai-label {
  top: 50% !important;
  right: calc(100% + 10px) !important;
  left: auto !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(5px, -50%) !important;
  transition: opacity 150ms ease, transform 150ms ease !important;
}

.jy-ai-root[dir="rtl"],
html[dir="rtl"] .jy-ai-root {
  right: auto !important;
  left: var(--jy-contact-right) !important;
}

.jy-ai-root[dir="rtl"] .jy-ai-label,
html[dir="rtl"] .jy-ai-root .jy-ai-label,
html[dir="rtl"] .jy-whatsapp-label,
html[dir="rtl"] .wa-widget .wa-label,
html[dir="rtl"] .jy-wechat-label,
html[lang^="ar"] .jy-ai-label,
html[lang^="ar"] .jy-whatsapp-label,
html[lang^="ar"] .wa-widget .wa-label,
html[lang^="ar"] .jy-wechat-label {
  right: auto !important;
  left: calc(100% + 10px) !important;
  transform: translate(-5px, -50%) !important;
}

.jy-ai-root[dir="rtl"]:hover .jy-ai-label,
.jy-ai-root[dir="rtl"]:focus-within .jy-ai-label,
html[dir="rtl"] .jy-ai-root:hover .jy-ai-label,
html[dir="rtl"] .jy-ai-root:focus-within .jy-ai-label,
html[dir="rtl"] .jy-whatsapp-root:hover .jy-whatsapp-label,
html[dir="rtl"] .jy-whatsapp-root:focus-within .jy-whatsapp-label,
html[dir="rtl"] .wa-widget:hover .wa-label,
html[dir="rtl"] .wa-widget:focus-within .wa-label,
html[dir="rtl"] .jy-wechat-root:hover .jy-wechat-label,
html[dir="rtl"] .jy-wechat-root:focus-within .jy-wechat-label,
html[lang^="ar"] .jy-ai-root:hover .jy-ai-label,
html[lang^="ar"] .jy-ai-root:focus-within .jy-ai-label,
html[lang^="ar"] .jy-whatsapp-root:hover .jy-whatsapp-label,
html[lang^="ar"] .jy-whatsapp-root:focus-within .jy-whatsapp-label,
html[lang^="ar"] .wa-widget:hover .wa-label,
html[lang^="ar"] .wa-widget:focus-within .wa-label,
html[lang^="ar"] .jy-wechat-root:hover .jy-wechat-label,
html[lang^="ar"] .jy-wechat-root:focus-within .jy-wechat-label {
  transform: translate(0, -50%) !important;
}

html[dir="rtl"] .jy-whatsapp-root,
html[dir="rtl"] .wa-widget,
html[lang^="ar"] .jy-whatsapp-root,
.jy-whatsapp-root[dir="rtl"] {
  right: auto !important;
  left: var(--jy-contact-right) !important;
}

html[dir="rtl"] .jy-wechat-root,
html[lang^="ar"] .jy-wechat-root,
.jy-wechat-root[dir="rtl"] {
  right: auto !important;
  left: var(--jy-contact-right) !important;
}

body:has(.jy-ai-panel.is-open) .jy-whatsapp-root,
body:has(.jy-ai-panel.is-open) .wa-widget,
body:has([data-jy-global-product-menu].is-open) .jy-whatsapp-root,
body:has([data-jy-global-product-menu].is-open) .wa-widget,
body:has([data-jy-global-product-menu].is-open) .jy-ai-root,
body:has([data-jy-global-product-menu].is-open) .jy-wechat-root,
body:has(.mob-nav.open) .jy-whatsapp-root,
body:has(.mob-nav.open) .wa-widget,
body:has(.mob-nav.open) .jy-ai-root,
body:has(.mob-nav.open) .jy-wechat-root,
body:has(.jy-ai-panel.is-open) .jy-wechat-root,
body.jy-wechat-modal-open .jy-wechat-root,
body.jy-wechat-modal-open .jy-whatsapp-root,
body.jy-wechat-modal-open .wa-widget,
body.jy-wechat-modal-open .jy-ai-root {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.jy-social-footer-visible .jy-whatsapp-root,
body.jy-social-footer-visible .wa-widget,
body.jy-social-footer-visible .jy-ai-root,
body.jy-social-footer-visible .jy-wechat-root {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 600px) {
  :root {
    --jy-contact-right: 18px;
    --jy-contact-bottom: calc(16px + env(safe-area-inset-bottom));
    --jy-contact-size: 50px;
    --jy-contact-gap: 12px;
  }

  .jy-whatsapp-label,
  .wa-widget .wa-label,
  .jy-wechat-label {
    display: none !important;
  }

  .jy-social-footer {
    padding: 24px 18px;
  }

  .jy-social-footer__inner {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .jy-social-footer__copy {
    text-align: center;
  }

  .jy-social-footer__copy strong {
    font-size: 17px;
  }

  .jy-social-footer__links {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jy-social-footer__link {
    min-height: 44px;
  }

  .jy-ai-root,
  .jy-ai-root[dir="rtl"],
  html[dir="rtl"] .jy-ai-root {
    right: var(--jy-contact-right) !important;
    left: auto !important;
    bottom: calc(var(--jy-contact-bottom) + var(--jy-contact-size) + var(--jy-contact-gap)) !important;
  }

  .jy-wechat-root,
  .jy-wechat-root[dir="rtl"],
  html[dir="rtl"] .jy-wechat-root,
  html[lang^="ar"] .jy-wechat-root {
    right: var(--jy-contact-right) !important;
    left: auto !important;
    bottom: calc(var(--jy-contact-bottom) + var(--jy-contact-size) + var(--jy-contact-gap) + var(--jy-contact-size) + var(--jy-contact-gap)) !important;
  }

  .jy-wechat-modal {
    align-items: flex-end;
    padding: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .jy-wechat-modal__panel {
    width: 100%;
    max-height: calc(100vh - 20px - env(safe-area-inset-bottom));
    padding: 22px 18px 18px;
  }

  .jy-wechat-modal h2 {
    font-size: 25px;
  }

  .jy-wechat-modal__qr {
    width: min(224px, 76%);
  }

  html[dir="rtl"] .jy-whatsapp-root,
  html[dir="rtl"] .wa-widget,
  html[lang^="ar"] .jy-whatsapp-root,
  .jy-whatsapp-root[dir="rtl"] {
    right: var(--jy-contact-right) !important;
    left: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jy-whatsapp-link,
  .wa-widget .wa-btn,
  .jy-wechat-button {
    animation: none !important;
    transition: none !important;
  }

  .jy-social-footer__link {
    transition: none;
  }
}
