/* Floating Contact Hub — Astralis */
.fch{
  position: fixed;
  right: var(--fch-right, 18px);
  left:  var(--fch-left, auto);
  bottom: var(--fch-bottom, 18px);
  z-index: 99990;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

@media (max-width: 480px){
  .fch{
    bottom: var(--fch-bottom-m, 14px);
    right: var(--fch-right, var(--fch-side-m, 12px));
    left:  var(--fch-left, auto);
  }

  body:has(.catalog-mobile-bar) .fch{
    bottom: calc(68px + env(safe-area-inset-bottom, 0px) + var(--fch-bottom-m, 14px));
  }
}

.fch__hint{
  position: absolute;
  right: 0;
  bottom: 82px;
  background: rgba(18, 18, 18, 0.92);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  padding: 10px 12px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.fch:hover .fch__hint{
  opacity: 1;
  transform: translateY(0);
}

.fch__main{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 0;
  border-radius: 999px;
  padding: var(--fch-main-py, 12px) var(--fch-main-px, 12px);
  min-width: calc(var(--fch-main-icon, 44px) + (var(--fch-main-py, 12px) * 2));
  min-height: calc(var(--fch-main-icon, 44px) + (var(--fch-main-py, 12px) * 2));
  color: #fff;
  background: var(--fch-main-bg, linear-gradient(135deg, #eb7d24, #e66a24));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, filter .15s ease, background .15s ease, box-shadow .15s ease;
}

@media (max-width: 480px){
  .fch__main{
    padding: var(--fch-main-py-m, 8px) var(--fch-main-px-m, 8px);
    min-width: calc(var(--fch-main-icon-m, var(--fch-main-icon, 34px)) + (var(--fch-main-py-m, 8px) * 2));
    min-height: calc(var(--fch-main-icon-m, var(--fch-main-icon, 34px)) + (var(--fch-main-py-m, 8px) * 2));
  }
}

.fch__main:hover,
.fch__main:focus-visible{
  background: var(--fch-main-bg-hover, var(--fch-main-bg, linear-gradient(135deg, #eb7d24, #e66a24)));
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.fch__main:focus,
.fch__main:focus-visible,
.fch__main:active{
  outline: none !important;
  border: 0 !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.fch__main:active{ transform: translateY(0); }

.fch__main-icon{
  position: relative;
  isolation: isolate;
  width: var(--fch-main-icon, 44px);
  height: var(--fch-main-icon, 44px);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  line-height: 0;
  overflow: hidden;
}

.fch__main-icon::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fff;
  opacity: 0.08;
  animation: fch-inner-ring-pulse 2.6s ease-in-out infinite;
  pointer-events: none;
}

.fch.is-open .fch__main-icon::before,
.fch__main:hover .fch__main-icon::before,
.fch__main:focus-visible .fch__main-icon::before{
  animation-play-state: paused;
}

@keyframes fch-inner-ring-pulse{
  0%, 100%{ opacity: 0.06; }
  50%{ opacity: 0.24; }
}

@media (prefers-reduced-motion: reduce){
  .fch__main-icon::before{
    animation: none;
    opacity: 0.12;
  }
}

.fch__main-icon svg{
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  display: block;
}

.fch__menu{
  list-style: none;
  margin: 0;
  padding: 10px;
  position: absolute;
  right: 0;
  bottom: 80px;
  width: min(270px, calc(100vw - 24px));
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px) contrast(1.12) saturate(1.08);
  -webkit-backdrop-filter: blur(10px) contrast(1.12) saturate(1.08);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transform-origin: 90% 100%;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.fch.is-open .fch__menu{
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fch[data-pos="left"] .fch__menu{
  left: 0;
  right: auto;
  transform-origin: 15% 100%;
}

.fch[data-pos="left"] .fch__hint{
  left: 0;
  right: auto;
}

.fch__item,
.fch__item:hover,
.fch__item:focus,
.fch__item:focus-visible,
.fch__item:active{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  text-decoration: none !important;
  color: #0f172a;
  transition: background .12s ease, transform .12s ease;
}

.fch__item:hover,
.fch__item:focus-visible{
  background: rgba(2, 6, 23, 0.06);
  transform: translateY(-1px);
}

.fch__item .fch__title,
.fch__item .fch__sub,
.fch__item:hover .fch__title,
.fch__item:hover .fch__sub,
.fch__item:focus .fch__title,
.fch__item:focus .fch__sub{
  text-decoration: none !important;
}

.fch__badge{
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
  line-height: 1;
  overflow: hidden;
}

.fch__badge-icon{
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.fch__badge-img{
  display: block;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 10px;
}

.fch__badge[data-kind="whatsapp"],
.fch__badge[data-kind="viber"],
.fch__badge[data-kind="messenger"]{
  background: transparent !important;
  padding: 0;
}

.fch__badge[data-kind="messenger"]{
  overflow: visible;
}

.fch__badge[data-kind="whatsapp"] .fch__badge-img{
  border-radius: 50%;
}

.fch__badge[data-kind="whatsapp"] .fch__badge-img{
  width: 38px;
  height: 38px;
  object-fit: cover;
  object-position: center;
  transform: scale(1.18);
}

.fch__badge[data-kind="messenger"] .fch__badge-img{
  width: 32px;
  height: 32px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}

.fch__badge[data-kind="call"]{ background: #16a34a; }
.fch__badge[data-kind="help"]{ background: #f97316; }
.fch__badge[data-kind="custom"]{ background: #111827; }

.fch__text{ display: grid; gap: 2px; }
.fch__title{ font-size: 14px; font-weight: 700; }
.fch__sub{ font-size: 12px; color: rgba(15, 23, 42, 0.70); }

.fch__menu-head{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 2px 2px 10px 2px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.06);
}

.fch__menu-status{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fch__status-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.fch[data-status="online"] .fch__status-dot{ background: #22c55e; }
.fch[data-status="offline"] .fch__status-dot{ background: #94a3b8; }

.fch__status-label{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2px;
  color: #000;
}

.fch__schedule{
  margin: 0 2px 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.04);
}

.fch__schedule-note{
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.72);
}

.fch__schedule-row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  line-height: 1.45;
}

.fch__schedule-row + .fch__schedule-row{
  margin-top: 6px;
}

.fch__schedule-label{
  color: rgba(15, 23, 42, 0.72);
}

.fch__schedule-hours{
  font-weight: 700;
  color: #0f172a;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 480px){
  .fch__main-icon{
    width: var(--fch-main-icon-m, var(--fch-main-icon, 34px));
    height: var(--fch-main-icon-m, var(--fch-main-icon, 34px));
  }

  .fch__main-icon svg{
    width: 18px;
    height: 18px;
  }

  .fch__hint{ display: none; }
  .fch__menu{ width: min(92vw, 320px); bottom: 58px; }
}

/* Override global link/button styles (new_style.css, Bootstrap) */
.fch button.fch__main{
  appearance: none;
  -webkit-appearance: none;
}

.fch button.fch__main::-moz-focus-inner{
  border: 0;
  padding: 0;
}

.fch a.fch__item,
.fch a.fch__item:hover,
.fch a.fch__item:focus,
.fch a.fch__item:active,
.fch a.fch__item:hover .fch__title,
.fch a.fch__item:hover .fch__sub,
.fch a.fch__item:focus .fch__title,
.fch a.fch__item:focus .fch__sub{
  text-decoration: none !important;
  color: #0f172a;
}
