.optima-help-widget {
  position: fixed;
  right: 20px;
  bottom: calc(110px + var(--cookie-offset, 0px));
  width: 320px;
  min-height: 112px;
  border-radius: 18px;
  padding-right: 44px;


  background: linear-gradient(135deg, #e30613 0%, #b8000a 55%, #e30613 100%);
  color: #fff;
  text-decoration: none;

  display: block;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  z-index: 2147483647;
  animation: optimaFloat 3.5s ease-in-out infinite;

  -webkit-font-smoothing: antialiased;
}

.optima-help-widget:hover,
.optima-help-widget:focus {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.30);
}

.optima-help-widget strong { color: inherit; }

.optima-help-text {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.55s ease;
  line-height: 1.45;
  font-size: 15px;
  font-weight: 600;
  pointer-events: none;
}

.optima-help-text.active { opacity: 1; }

@keyframes optimaFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.optima-help-widget::after {
  content: "›";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 0.85;
  animation: optimaArrow 1.4s ease-in-out infinite;
}

@keyframes optimaArrow {
  0%   { transform: translate(0, -50%); }
  50%  { transform: translate(4px, -50%); }
  100% { transform: translate(0, -50%); }
}

/* Close button: domyślnie ukryty na desktop */
.optima-help-close {
  display: none;
  position: absolute;
  right: 10px;
  top: 8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  padding: 0;
}

.optima-help-close:hover {
  background: rgba(255,255,255,0.26);
}

/* Pokazuj zamykanie tylko na mobile */
@media (max-width: 768px) {
  .optima-help-close { display: block; }

  /* żeby ikona strzałki nie wchodziła w close */
  .optima-help-widget::after { right: 46px; }
}
