/* UpcheG Contact: меню номера, кнопки «Соцмережі» і «Месенджери», вікно.
   Свої кольори з запасними значеннями: плагін не знає змінних теми.
   Тема може задати --uc-accent (кнопки) і --uc-call (пункт «Call»)
   через фільтр upcheg_contact_data. */
:root{
  --uc-accent: #1f5f9e;
  --uc-call: var(--uc-accent);
  --uc-text: #1f2937;
  --uc-muted: #5b6068;
  --uc-line: #e3e7ec;
  --uc-soft: #eef4fb;
  --uc-bg: #fff;
}
/* 0.3.2: світлий фон наведення з кольору бренду, а не завжди блакитний. */
@supports (background: color-mix(in srgb, red 10%, white)){
  :root{ --uc-soft: color-mix(in srgb, var(--uc-accent) 10%, #fff); }
}

/* ---------- кнопки: стовпчик знизу вгору (0.2.0) ----------
   Знизу головна «Дзвінок» (52px, колір дзвінка), над нею «SMS» (44px, акцент),
   вгорі «Соцмережі» (40px, світла). Підписи видно перші секунди сеансу
   (.uc-fabs--labels), далі при наведенні чи фокусі. */
.uc-fabs{
  position: fixed; z-index: 190;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--uc-lift, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: bottom .2s ease, opacity .2s ease, visibility .2s;
}
.uc-fabs--left{ left: 16px; }
.uc-fabs--right{ right: 16px; }
.uc-fabs--away, .uc-fabs--tucked, html.uc-open .uc-fabs{ opacity: 0; visibility: hidden; pointer-events: none; }
@media (min-width: 900px){ .uc-fabs--mobile{ display: none; } }
@media (prefers-reduced-motion: reduce){ .uc-fabs, .uc-lbl{ transition: none; } }
@media print{ .uc-fabs{ display: none; } }
.uc-fab-row{ position: relative; display: flex; align-items: center; justify-content: center; width: 52px; }
.uc-fab{
  box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; margin: 0;
  border: 2px solid #fff; border-radius: 50%;
  background: var(--uc-accent); color: #fff; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 14px rgba(16, 24, 40, .26);
}
.uc-fab--call{ width: 52px; height: 52px; background: var(--uc-call); }
.uc-fab--social{ width: 40px; height: 40px; background: var(--uc-bg); color: var(--uc-accent); border: 1px solid var(--uc-line); }
/* 0.3.4: хрестик «сховати кнопки» - у вигляді кнопки соцмереж, менший, щоб не сперечатися з дзвінком. */
.uc-fab--close{ width: 28px; height: 28px; background: var(--uc-bg); color: var(--uc-accent); border: 1px solid var(--uc-line); box-shadow: 0 2px 8px rgba(16, 24, 40, .18); }
.uc-fab--close:hover{ color: var(--uc-accent); }
.uc-fab-row--close{ margin-bottom: -2px; }
.uc-fab:hover{ filter: brightness(1.08); color: inherit; }
.uc-fab--call:hover, .uc-fab--sms:hover{ color: #fff; }
.uc-fab--social:hover{ color: var(--uc-accent); }
.uc-fab:focus-visible{ outline: 3px solid var(--uc-accent); outline-offset: 3px; }
.uc-fab svg{ display: block; }
.uc-lbl{
  position: absolute; top: 50%; left: calc(100% + 6px); transform: translate(-4px, -50%);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--uc-bg); color: var(--uc-text); border: 1px solid var(--uc-line);
  font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.3; box-shadow: 0 2px 8px rgba(16, 24, 40, .14);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.uc-fabs--right .uc-lbl{ left: auto; right: calc(100% + 6px); transform: translate(4px, -50%); }
.uc-fabs--labels .uc-lbl, .uc-fab-row:hover .uc-lbl, .uc-fab:focus-visible + .uc-lbl{ opacity: 1; transform: translate(0, -50%); }

/* ---------- вікно: на телефоні панель знизу, ширше 640px по центру ---------- */
.uc-backdrop{
  position: fixed; inset: 0; z-index: 2147482000;
  background: rgba(16, 24, 40, .45);
  display: flex; align-items: flex-end; justify-content: center;
}
.uc-backdrop[hidden]{ display: none; }
html.uc-open{ overflow: hidden; }
.uc-sheet{
  box-sizing: border-box;
  width: 100%; max-width: 440px; max-height: 90vh; overflow: auto;
  background: var(--uc-bg); color: var(--uc-text);
  border-radius: 18px 18px 0 0;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 30px rgba(16, 24, 40, .25);
  font-size: 16px; line-height: 1.4; text-align: left;
}
@media (min-width: 641px){
  .uc-backdrop{ align-items: center; }
  .uc-sheet{ border-radius: 18px; padding: 18px 20px 20px; }
}
.uc-head{ display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.uc-title{ margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--uc-text); }
.uc-x{
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: 0 -10px 0 0; padding: 0; border: 0; background: none;
  color: var(--uc-muted); cursor: pointer; border-radius: 50%;
}
.uc-x:hover{ background: var(--uc-soft); color: var(--uc-text); }
.uc-list{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.uc-list li{ margin: 0; padding: 0; }
.uc-list li::before{ content: none; }
.uc-opt{
  box-sizing: border-box;
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px;
  padding: 10px 14px; margin: 0; border: 1px solid var(--uc-line); border-radius: 12px;
  background: var(--uc-bg); color: var(--uc-text); font: inherit; text-align: left;
  text-decoration: none; cursor: pointer;
}
.uc-opt:hover{ border-color: var(--uc-accent); background: var(--uc-soft); color: var(--uc-text); }
.uc-opt:focus-visible{ outline: 3px solid var(--uc-accent); outline-offset: 2px; }
.uc-ico{
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--uc-soft); color: var(--uc-accent);
}
.uc-opt--call{ border-color: var(--uc-call); }
.uc-opt--call .uc-ico{ background: var(--uc-call); color: #fff; }
.uc-opt--sms.uc-opt--primary{ border-color: var(--uc-accent); }
.uc-opt--sms.uc-opt--primary .uc-ico{ background: var(--uc-accent); color: #fff; }
.uc-opt--whatsapp .uc-ico{ background: #e7f8ee; color: #128c4a; }
.uc-opt--messenger .uc-ico{ background: #e9f0ff; color: #0866ff; }
.uc-opt--telegram .uc-ico{ background: #e6f3fb; color: #1b7db8; }
.uc-opt--viber .uc-ico{ background: #f1ecfa; color: #6b48b8; }
.uc-opt--email .uc-ico{ background: #fff1e6; color: #b5520b; }
.uc-opt--google .uc-ico{ background: #fff4e0; color: #b26a00; }
.uc-opt--yelp .uc-ico{ background: #fdecec; color: #c41200; }
.uc-opt--facebook .uc-ico{ background: #e8f0fe; color: #1659c7; }
.uc-opt--instagram .uc-ico{ background: #fcebf3; color: #c1306b; }
.uc-opt--youtube .uc-ico{ background: #fdecec; color: #cc0000; }
.uc-opt--tiktok .uc-ico{ background: #eef0f3; color: #111827; }
.uc-opt--threads .uc-ico{ background: #eef0f3; color: #111827; }
.uc-txt{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.uc-txt b{ font-size: 1rem; font-weight: 700; }
.uc-txt span{ font-size: .86rem; color: var(--uc-muted); }
.uc-note{ margin: 12px 2px 0; font-size: .84rem; color: var(--uc-muted); }
.uc-sr{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
