/* Floating contact channels. Scoped against legacy builder styles. */
body.sop-theme .sop-contact-widget {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 75;
  width: max-content;
  max-width: calc(100vw - 32px);
  font-family: Manrope, sans-serif;
  text-align: left;
  line-height: 1.4;
  color: #f7f7f7;
}
body.sop-theme .sop-contact-widget *,
body.sop-theme .sop-contact-widget *::before,
body.sop-theme .sop-contact-widget *::after { box-sizing: border-box; }
body.sop-theme .sop-contact-widget [hidden] { display: none !important; }
body.sop-theme .sop-contact-widget.is-suspended { visibility: hidden; pointer-events: none; }
body.sop-theme.dialog-open .sop-contact-widget,
body.sop-theme.modal-open .sop-contact-widget,
body.sop-theme.filters-open .sop-contact-widget,
body.sop-theme.xoo-wsc-cart-active .sop-contact-widget { visibility: hidden; pointer-events: none; }
/* Keep the existing Side Cart shortcut above this button and outside its panel. */
body.sop-theme .xoo-wsc-basket { bottom: calc(118px + env(safe-area-inset-bottom)) !important; right: max(24px, env(safe-area-inset-right)) !important; }
body.sop-theme.sop-contact-open .xoo-wsc-basket { visibility: hidden; pointer-events: none; }
body.sop-theme .sop-contact-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 76px;
  min-width: 250px;
  max-width: 100%;
  padding: 12px 24px 12px 14px;
  margin: 0;
  border: 2px solid #ff657a;
  border-radius: 999px;
  background: linear-gradient(135deg, #d71935, #bb0925);
  color: #fff;
  box-shadow: 0 8px 28px #b9002b66, 0 3px 12px #0009;
  font: 800 18px/1.3 Manrope, sans-serif;
  text-transform: none;
  text-decoration: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: background .18s, transform .18s, box-shadow .18s;
  animation: sop-contact-beacon 3.2s ease-out infinite;
}
body.sop-theme .sop-contact-toggle:hover,
body.sop-theme .sop-contact-toggle[aria-expanded="true"] { background: #bb0925; color: #fff; box-shadow: 0 10px 36px #d7193570, 0 4px 16px #0009; animation: none; }
body.sop-theme .sop-contact-toggle:hover { transform: translateY(-2px); }
body.sop-theme .sop-contact-call-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; background: #ffffff19; border: 1px solid #ffffff38; }
body.sop-theme .sop-contact-call-icon > svg { display: block; width: 30px; height: 30px; color: #fff; }
body.sop-theme .sop-contact-widget :focus-visible { outline: 3px solid #f1be10; outline-offset: 4px; }
body.sop-theme .sop-contact-toggle:focus-visible { outline-color: #fff; }
body.sop-theme .sop-contact-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(420px, calc(100vw - 36px));
  max-height: calc(100vh - 132px - env(safe-area-inset-bottom));
  max-height: min(760px, calc(100svh - 132px - env(safe-area-inset-bottom)));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 26px 22px 20px;
  border: 1px solid #ff657a60;
  border-radius: 24px;
  background: linear-gradient(155deg, #39141d 0, #171717 190px);
  color: #f7f7f7;
  box-shadow: 0 20px 70px #000c, 0 0 35px #d7193522;
  scrollbar-width: thin;
  scrollbar-color: #5e5e5e #141414;
}
body.sop-theme .sop-contact-widget.is-open .sop-contact-panel { transform-origin: bottom right; animation: sop-contact-enter .3s cubic-bezier(.2,.8,.2,1) both; }
body.sop-theme .sop-contact-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
body.sop-theme .sop-contact-panel-head > div { min-width: 0; }
body.sop-theme .sop-contact-eyebrow { display: block; margin-bottom: 9px; color: #ff91a2; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
body.sop-theme .sop-contact-panel h2 { margin: 0; color: #fff; font: 800 32px/1.15 Manrope, sans-serif; text-transform: none; letter-spacing: -.035em; }
body.sop-theme .sop-contact-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; min-height: 40px; margin: -7px -4px 0 0; padding: 10px; border: 1px solid #ffffff26; border-radius: 50%; background: #ffffff08; color: #eee; cursor: pointer; }
body.sop-theme .sop-contact-close:hover { background: #ffffff15; border-color: #f1be10; }
body.sop-theme .sop-contact-close svg { display: block; width: 20px; height: 20px; }
body.sop-theme .sop-contact-description { margin: 13px 0 22px; color: #dedede; font-size: 14px; line-height: 1.6; }
body.sop-theme .sop-contact-channels { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
body.sop-theme .sop-contact-channels > li { display: block; margin: 0; padding: 0; list-style: none; }
body.sop-theme .sop-contact-channel { display: flex; align-items: center; gap: 14px; min-height: 82px; padding: 12px; border: 1px solid #ffffff20; border-radius: 14px; color: #fff; background: #202020; text-decoration: none; box-shadow: 0 5px 15px #0003; transition: border-color .18s, background .18s, transform .18s; }
body.sop-theme .sop-contact-channel:hover { color: #fff; background: #292929; border-color: #ffffff60; transform: translateY(-2px); }
body.sop-theme .sop-contact-brand { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 54px; width: 54px; height: 54px; border-radius: 15px; color: #fff; box-shadow: inset 0 0 0 1px #ffffff30, 0 4px 12px #0006; }
body.sop-theme .sop-contact-brand svg { display: block; width: 32px; height: 32px; filter: drop-shadow(0 2px 2px #0003); }
body.sop-theme .sop-contact-brand-phone { color: #fff; background: #d71935; }
body.sop-theme .sop-contact-brand-phone svg { fill: currentColor; stroke-width: 1.2; }
body.sop-theme .sop-contact-brand-email { color: #fff; background: #be1733; }
body.sop-theme .sop-contact-brand-email svg { stroke-width: 2.5; }
body.sop-theme .sop-contact-brand-messenger { background: linear-gradient(25deg, #0784ff, #a033ff); }
body.sop-theme .sop-contact-brand-instagram { background: linear-gradient(35deg, #f9ce34, #ee2a7b 50%, #6228d7); }
body.sop-theme .sop-contact-brand-whatsapp { background: #129c4b; }
body.sop-theme .sop-contact-brand-viber { background: #7360f2; }
body.sop-theme .sop-contact-brand-facebook { background: #1877f2; }
body.sop-theme .sop-contact-channel-text { display: grid; gap: 3px; min-width: 0; flex: 1 1 auto; }
body.sop-theme .sop-contact-channel-text strong { color: #fff; font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
body.sop-theme .sop-contact-channel-text > span { color: #c8c8c8; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
body.sop-theme .sop-contact-channel-arrow { display: block; flex: 0 0 17px; color: #858585; }
body.sop-theme .sop-contact-channel-arrow svg { display: block; width: 17px; height: 17px; }
body.sop-theme .sop-contact-channel:hover .sop-contact-channel-arrow { color: #f1be10; }
body.sop-theme .sop-contact-hours { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #ffffff20; color: #bbb; font-size: 12px; line-height: 1.6; }
@keyframes sop-contact-enter { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes sop-contact-beacon { 0%, 100% { box-shadow: 0 8px 28px #b9002b66, 0 0 0 0 #e729464d; } 65% { box-shadow: 0 8px 34px #b9002b77, 0 0 0 11px #e7294600; } }
@media (max-width: 479px) {
  body.sop-theme .sop-contact-widget { right: max(14px, env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); }
  body.sop-theme .sop-contact-toggle { min-height: 66px; min-width: 222px; gap: 10px; padding: 9px 18px 9px 10px; font-size: 16px; }
  body.sop-theme .sop-contact-call-icon { width: 44px; height: 44px; flex-basis: 44px; }
  body.sop-theme .sop-contact-call-icon > svg { width: 28px; height: 28px; }
  body.sop-theme .sop-contact-panel { position: fixed; left: max(14px, env(safe-area-inset-left)); right: max(14px, env(safe-area-inset-right)); bottom: calc(92px + env(safe-area-inset-bottom)); width: auto; max-height: calc(100svh - 116px - env(safe-area-inset-bottom)); padding: 22px 16px 18px; }
  body.sop-theme .sop-contact-panel h2 { font-size: 29px; }
  body.sop-theme .sop-contact-channel { gap: 12px; }
  body.sop-theme .sop-contact-brand { width: 50px; height: 50px; flex-basis: 50px; }
  body.sop-theme .sop-contact-brand svg { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  body.sop-theme .sop-contact-widget *, body.sop-theme .sop-contact-widget *::before, body.sop-theme .sop-contact-widget *::after { animation: none !important; transition: none !important; }
  body.sop-theme .sop-contact-toggle:hover { transform: none; }
}
body.sop-theme.motion-paused .sop-contact-widget * { animation: none !important; transition: none !important; }
body.sop-theme.motion-paused .sop-contact-toggle:hover { transform: none; }
@media print { body.sop-theme .sop-contact-widget { display: none !important; } }
