/**
 * بیزسیز — دکمهٔ تماس شناور
 *
 * A soft round button pinned to a lower corner. Tapping it lifts a small cream
 * panel of the channels the owner actually filled in, drawn in the same palette
 * as the rest of the site.
 */

.bs-fab {
  position: fixed;
  bottom: clamp(16px, 4vw, 28px);
  z-index: 9990;
  font-family: var(--bs-font, "Vazirmatn", "Segoe UI", Tahoma, sans-serif);
  direction: rtl;
  transition: opacity .25s var(--bs-ease, ease), transform .25s var(--bs-ease, ease);
}

.bs-fab--right {
  right: clamp(16px, 4vw, 28px);
}

.bs-fab--left {
  left: clamp(16px, 4vw, 28px);
}

body.admin-bar .bs-fab {
  bottom: calc(clamp(16px, 4vw, 28px) + 32px);
}

/* The cart drawer owns the screen while it is open. */
body.bs-cart-is-open .bs-fab {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.bs-fab__trigger {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--bs-terra-deep, #9d4f39);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(74, 46, 32, .6), inset 0 -6px 14px rgba(0, 0, 0, .12);
  cursor: pointer;
  transition: transform .3s var(--bs-ease, ease), background .25s ease;
}

.bs-fab__trigger:hover {
  transform: translateY(-3px);
  background: var(--bs-terra, #c47158);
}

.bs-fab__trigger:focus-visible {
  outline: 3px solid var(--bs-sage, #9caf90);
  outline-offset: 3px;
}

/* One drawing family: a 24 grid, a 1.7 line, rounded ends. The theme resets
   every svg to `stroke: none`, and a rule outranks a presentation attribute,
   so the drawing has to be re-declared here or the icons vanish. */
.bs-fab__svg {
  width: 26px;
  height: 26px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bs-fab__svg circle {
  fill: currentColor;
  stroke: none;
}

.bs-fab__trigger .bs-fab__svg {
  width: 27px;
  height: 27px;
}

/* The theme resets every svg to no stroke, which erases the cross: its lines
   are drawn with stroke="currentColor" as a presentation attribute, and any
   rule outranks an attribute. Size and stroke are repeated here so the close
   mark is actually visible. */
.bs-fab__glyph--close svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}

.bs-fab__glyph {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  transition: opacity .2s ease, transform .3s var(--bs-ease, ease);
}

.bs-fab__glyph--close {
  opacity: 0;
  transform: rotate(-45deg) scale(.7);
}

.bs-fab.is-open .bs-fab__glyph--open {
  opacity: 0;
  transform: rotate(45deg) scale(.7);
}

.bs-fab.is-open .bs-fab__glyph--close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* Out of the flow on purpose: a panel in the flow would widen the corner box
   and, in RTL, drag the button to the far side of it. */
.bs-fab__panel {
  position: absolute;
  box-sizing: border-box;
  bottom: calc(100% + 12px);
  right: 0;
  width: min(310px, calc(100vw - 40px));
  padding: 16px 16px 14px;
  border-radius: 20px;
  background: var(--bs-cream, #fbf6ec);
  box-shadow: 0 26px 50px -26px rgba(51, 44, 38, .55), 0 0 0 1px rgba(74, 59, 46, .08);
  color: var(--bs-ink, #332c26);
  transform-origin: bottom right;
  animation: bs-fab-in .28s var(--bs-ease, ease) both;
}

.bs-fab--left .bs-fab__panel {
  right: auto;
  left: 0;
  transform-origin: bottom left;
}

@keyframes bs-fab-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.96);
  }
}

.bs-fab__title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--bs-ink, #332c26);
}

.bs-fab__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bs-fab__link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .68);
  box-shadow: inset 0 0 0 1px rgba(74, 59, 46, .07);
  color: var(--bs-ink, #332c26);
  text-decoration: none;
  transition: background .2s ease, transform .2s var(--bs-ease, ease);
}

.bs-fab__link:hover {
  background: var(--bs-sage-soft, #e5ead9);
  transform: translateY(-2px);
  color: var(--bs-ink, #332c26);
}

.bs-fab__link:focus-visible {
  outline: 3px solid var(--bs-terra, #c47158);
  outline-offset: 2px;
}

/* The tile every glyph sits on: 34px of soft cream with the drawing itself
   kept small inside it. */
.bs-fab__link .bs-fab__svg,
.bs-fab__word {
  box-sizing: border-box;
  flex: none;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 11px;
  background: var(--bs-cream-deep, #f4ebdc);
  color: var(--bs-terra-deep, #9d4f39);
}

.bs-fab__word {
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
}

/* Brand ink per row, so the set still reads at a glance. */
.bs-fab__item--call .bs-fab__svg {
  color: var(--bs-terra-deep, #9d4f39);
}

.bs-fab__item--whatsapp .bs-fab__svg {
  color: #23a95c;
}

.bs-fab__item--telegram .bs-fab__svg {
  color: #2aaddf;
}

.bs-fab__item--bleh .bs-fab__word {
  color: #2f7fc4;
}

.bs-fab__item--sms .bs-fab__svg {
  color: var(--bs-sage-deep, #718767);
}

.bs-fab__item--email .bs-fab__svg {
  color: var(--bs-ink-soft, #6c6055);
}

/* The bale row copies instead of navigating, so it is a real button. */
.bs-fab__item {
  position: relative;
}

button.bs-fab__link {
  width: 100%;
  margin: 0;
  border: 0;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

.bs-fab__item.is-copied .bs-fab__word {
  background: var(--bs-sage-soft, #e5ead9);
  color: #4f6a46;
}

.bs-fab__echo {
  margin: 8px 2px 0;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--bs-sage-deep, #718767);
}

.bs-fab__echo:empty {
  display: none;
}

.bs-fab__names {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.bs-fab__name {
  font-size: 13.5px;
  font-weight: 700;
}

.bs-fab__value {
  font-size: 12px;
  color: var(--bs-ink-soft, #6c6055);
  direction: ltr;
  text-align: right;
  overflow-wrap: anywhere;
}

.bs-fab__note {
  margin: 12px 2px 0;
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--bs-ink-soft, #6c6055);
}

/* Icons only: the names stay in the markup for screen readers and for the
   button label, they just leave the picture. */
.bs-fab--icons .bs-fab__panel {
  width: auto;
}

.bs-fab--icons .bs-fab__list {
  display: flex;
  flex-direction: row;
  gap: 6px;
}

.bs-fab--icons .bs-fab__link {
  min-height: 0;
  padding: 5px;
  gap: 0;
}

.bs-fab--icons .bs-fab__names {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .bs-fab__trigger {
    width: 54px;
    height: 54px;
  }

  .bs-fab__panel {
    width: calc(100vw - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bs-fab,
  .bs-fab__trigger,
  .bs-fab__glyph,
  .bs-fab__link {
    transition: none;
  }

  .bs-fab__panel {
    animation: none;
  }
}
