/* Виджет МАКС - плавающая кнопка справа снизу */
.max-widget {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: inherit;
}
.max-widget__bubble {
  background: #138B45;
  color: #fff;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  font-size: 14px;
  line-height: 1.4;
  max-width: 260px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.18);
  position: relative;
  animation: maxFadeIn 0.5s ease;
  cursor: pointer;
}
.max-widget__bubble strong { display:block; font-size:15px; margin-bottom:2px; }
.max-widget__bubble-close {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #fff;
  color: #1A1A1A;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center;
}
.max-widget__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #138B45;
  color: #fff;
  padding: 14px 20px 14px 16px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 8px 26px rgba(19,139,69,0.35);
  transition: transform 0.18s, box-shadow 0.18s;
  border: none;
  cursor: pointer;
}
.max-widget__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(19,139,69,0.45);
  color: #fff;
}
.max-widget__btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.max-widget__label { white-space: nowrap; }
.max-widget__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50px;
  box-shadow: 0 0 0 0 rgba(19,139,69,0.6);
  animation: maxPulse 2s infinite;
  pointer-events: none;
}
@keyframes maxPulse {
  0% { box-shadow: 0 0 0 0 rgba(19,139,69,0.5); }
  70% { box-shadow: 0 0 0 18px rgba(19,139,69,0); }
  100% { box-shadow: 0 0 0 0 rgba(19,139,69,0); }
}
@keyframes maxFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.max-widget.hidden { display: none; }
@media (max-width: 560px) {
  .max-widget { right: 12px; bottom: 16px; }
  .max-widget__btn { padding: 12px 16px 12px 14px; font-size: 14px; }
  .max-widget__bubble { max-width: 200px; font-size: 13px; }
}
