/* =====================================================================
   کاسب — Announcement Bars + Contact Widget
   ===================================================================== */

/* ── Announcement bars (above the site header) ──────────────────────── */
.vrs-ann-bars {
  width: 100%;
  font-family: var(--vrs-font-family, 'Vazirmatn', Tahoma, sans-serif);
}
.vrs-ann-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 10px 18px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
  box-sizing: border-box;
  position: relative;
}
.vrs-ann-bar__inner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
}
.vrs-ann-bar__text { margin: 0; }
.vrs-ann-bar__text a { color: inherit; text-decoration: underline; }
.vrs-ann-bar__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s ease;
}
.vrs-ann-bar__cta:hover { opacity: .82; }
.vrs-ann-bar__close {
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: .8;
  padding: 0 4px;
}
.vrs-ann-bar__close:hover { opacity: 1; }
@media (max-width: 600px) {
  .vrs-ann-bar { font-size: 13px; padding: 9px 36px 9px 14px; }
}

/* ── Floating contact widget ────────────────────────────────────────── */
.vrs-cw {
  position: fixed;
  z-index: 99990;
  font-family: var(--vrs-font-family, 'Vazirmatn', Tahoma, sans-serif);
  direction: rtl;
}
.vrs-cw-toggle {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--vrs-color-primary, #2563eb), color-mix(in srgb, var(--vrs-color-primary, #2563eb) 72%, #000));
  color: var(--vrs-color-primary-text, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.vrs-cw-toggle:hover { transform: scale(1.06); box-shadow: 0 10px 26px rgba(0, 0, 0, .28); }
.vrs-cw-toggle__icon { display: flex; }
.vrs-cw-toggle__icon svg { width: 28px; height: 28px; }
.vrs-cw-toggle__x {
  display: none;
  font-size: 30px;
  line-height: 1;
  font-weight: 300;
}
.vrs-cw.is-open .vrs-cw-toggle__icon { display: none; }
.vrs-cw.is-open .vrs-cw-toggle__x { display: block; }

/* Pulse animation */
.vrs-cw-toggle.is-pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--vrs-color-primary, #2563eb);
  z-index: -1;
  animation: vrs-cw-pulse 2s ease-out infinite;
}
@keyframes vrs-cw-pulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(1.8); opacity: 0;   }
  100% { transform: scale(1.8); opacity: 0;   }
}

/* Panel */
.vrs-cw-panel {
  position: absolute;
  bottom: 72px;
  width: 290px;
  max-width: calc(100vw - 32px);
  background: var(--vrs-color-surface, #fff);
  border: 1px solid var(--vrs-color-border, #e5e7eb);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px) scale(.97);
  transform-origin: bottom;
  transition: opacity .18s ease, transform .18s ease;
}
/* Panel side is set per-breakpoint via the inline #vrs-cw-pos style so it
   tracks the configured corner on both desktop and mobile. This is a fallback. */
.vrs-cw-panel { right: 0; left: auto; }
.vrs-cw.is-open .vrs-cw-panel { opacity: 1; transform: translateY(0) scale(1); }
.vrs-cw-panel[hidden] { display: none; }
.vrs-cw-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--vrs-color-primary, #2563eb);
  color: var(--vrs-color-primary-text, #fff);
  font-size: 14px;
  font-weight: 700;
}
.vrs-cw-panel__close {
  background: transparent;
  border: 0;
  color: var(--vrs-color-primary-text, #fff);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: .85;
}
.vrs-cw-panel__close:hover { opacity: 1; }
.vrs-cw-panel__body { padding: 8px; display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow-y: auto; }
.vrs-cw-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--vrs-color-text, #111827);
  font-size: 14px;
  font-weight: 600;
  transition: background .15s ease;
}
.vrs-cw-row:hover { background: var(--vrs-color-surface-soft, #f3f4f6); color: var(--vrs-color-text, #111827); }
.vrs-cw-row__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cw-color, #2563eb);
  color: var(--vrs-color-white, #fff);
}
.vrs-cw-row__icon svg { width: 20px; height: 20px; }
.vrs-cw-row__label { flex: 1; }
