/* Traumatolog24 Viber Button styles */
.tvb-btn {
  --tvb-bg: #7360F2;
  --tvb-color: #fff;
  --tvb-size: 64px;
  --tvb-radius: 16px;
  position: relative;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  background: var(--tvb-bg);
  color: var(--tvb-color);
  padding: 0 16px;
  height: var(--tvb-size);
  min-width: calc(var(--tvb-size) + 16px);
  border-radius: var(--tvb-radius);
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.tvb-btn .tvb-icon {
  display: inline-flex;
  width: calc(var(--tvb-size) * .45);
  height: calc(var(--tvb-size) * .45);
}

.tvb-btn .tvb-text {
  white-space: nowrap;
  font-size: clamp(14px, 1.6vw, 16px);
}

.tvb-btn:hover { transform: translateY(-1px); }
.tvb-shadow { box-shadow: 0 10px 20px rgba(0,0,0,.15); }
.tvb-btn:active { transform: translateY(0); }

/* Floating */
.tvb-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  padding: 0 18px;
}
.tvb-floating.tvb-left { right: auto; left: 20px; }

/* Pulse effect */
@keyframes tvb-pulse {
  0% { box-shadow: 0 0 0 0 rgba(115,96,242,.5); }
  70% { box-shadow: 0 0 0 20px rgba(115,96,242,0); }
  100% { box-shadow: 0 0 0 0 rgba(115,96,242,0); }
}
.tvb-pulse { animation: tvb-pulse 2s infinite; }

/* Responsive visibility controlled in JS via settings */


/* TVB toast (non-intrusive fallback message) */
.tvb-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 10000;
  background: #111;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  display: flex;
  gap: 10px;
  align-items: center;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}
.tvb-toast a { color: #9ecbff; text-decoration: underline; }
.tvb-toast.tvb-show { opacity: 1; transform: translateX(-50%) translateY(-6px); }


/* Remove default red tap highlight and set custom active state */
.tvb-btn {
  -webkit-tap-highlight-color: transparent;
}
.tvb-btn:active {
  background: #5a48c5 !important; /* darker violet for press effect */
  opacity: 0.95;
}


/* Stronger anti-highlight & anti-ripple overrides */
.tvb-btn, .tvb-btn *, .tvb-btn:active, .tvb-btn:focus {
  -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
  outline: none !important;
  box-shadow: none !important;
}
/* Kill theme pseudo-element ripples */
.tvb-btn::before, .tvb-btn::after { content: none !important; }
/* Ensure text/icon stay white */
.tvb-btn, .tvb-btn .tvb-text, .tvb-btn .tvb-icon { color: var(--tvb-color) !important; }
/* Disable default link color change on active/visited inside the button */
.tvb-btn:visited, .tvb-btn:active { color: var(--tvb-color) !important; }
/* Optional: disable pulse red artifacts if any theme injects */
.tvb-btn.tvb-pulse { animation-name: tvb-pulse !important; }
/* Improve active press without bright flashes */
.tvb-btn:active { filter: brightness(0.96); }
