/*
 * ya-sticky-book-button.css
 * Плаващ (sticky) pill бутон за записване.
 * Показва се на всички устройства (мобилни + десктоп), фиксиран
 * долу вдясно. Ползва CSS variables от дизайн системата на проекта.
 *
 * Път: child-theme/assets/css/ya-sticky-book-button.css
 */

.ya-sticky-book-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9000;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 16px 24px;
  background: var(--primary-color, #94a7ae);
  color: #fff;
  border-radius: 100px;

  font-family: var(--primary-font-family, 'Manrope', sans-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;

  box-shadow: 0 8px 24px rgba(22, 22, 22, 0.18);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;

  /* За устройства с "notch" / home indicator (iOS) */
  margin-right: env(safe-area-inset-right, 0px);
  margin-bottom: env(safe-area-inset-bottom, 0px);
}

.ya-sticky-book-btn:hover,
.ya-sticky-book-btn:focus-visible {
  background: var(--heading-color, #161616);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(22, 22, 22, 0.24);
}

.ya-sticky-book-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.ya-sticky-book-btn .ti {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.ya-sticky-book-btn-text {
  line-height: 1;
}

/* Леко появяване при зареждане на страницата */
@keyframes ya-sticky-book-btn-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ya-sticky-book-btn {
  animation: ya-sticky-book-btn-in 0.4s ease-out 0.3s both;
}

@media (max-width: 640px) {
  .ya-sticky-book-btn {
    right: 16px;
    bottom: 16px;
    padding: 13px 18px;
    font-size: 13px;
  }

  .ya-sticky-book-btn .ti {
    font-size: 17px;
  }
}
