/* Изоляция: префикс .massage-ui- */
.massage-ui-floating-actions__container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  gap: 14px;
  z-index: 9999;
  pointer-events: none; /* Чтобы не мешал кликам по фону */
}

.massage-ui-btn__base {
  pointer-events: auto; /* Разрешаем клики по кнопкам */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  color: #6a4f40;
  text-decoration: none;
  font-family: 'Georgia', serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  position: relative;
  overflow: hidden;
border: 1px solid rgb(234 234 234);
    box-shadow: 0 6px 20px rgb(234 234 234);
    transition: all 0.45s 
cubic-bezier(0.25, 0.1, 0.25, 1);
    background: linear-gradient(145deg, #eaeaea 0%, #c7c2c2 100%);
}

.massage-ui-btn__base::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.massage-ui-btn__base:hover::before {
  opacity: 1;
}

/* Кнопка «Сделать подарок» — анимация: лёгкий подъём + свечение */
.massage-ui-btn__gift:hover {
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 12px 32px rgb(234 234 234);
  animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
  0% { box-shadow: 0 8px 22px #eaeaea; }
  100% { box-shadow: 0 12px 32px #c7c2c2; }
}

/* Кнопка «Онлайн запись» — анимация: вращение + волна от центра */
.massage-ui-btn__record:hover {
  transform: rotate(-3deg) scale(1.05);
  box-shadow: 0 10px 28px rgb(234 234 234);
}

.massage-ui-btn__record::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.7s, height 0.7s, opacity 0.9s;
  z-index: 2;
  pointer-events: none;
}

.massage-ui-btn__record:hover::after {
  width: 180px;
  height: 180px;
  opacity: 1;
}

/* Текст внутри кнопки */
.massage-ui-btn__text {
  color: #36393e;
  font-family: 'Tenor Sans';
    font-size: 16px;
  position: relative;
  z-index: 3;
  max-width: 90%;
  padding: 0 8px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .massage-ui-floating-actions__container {
    bottom: 20px;
    right: 20px;
  }
  .massage-ui-btn__base {
    width: 130px;
    height: 130px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .massage-ui-floating-actions__container {
    bottom: 16px;
    right: 16px;
  }
  .massage-ui-btn__base {
    width: 110px;
    height: 110px;
    font-size: 11px;
  }
}

/* Плавное появление блока */
.massage-ui-floating-actions__container.is-visible {
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Модальное окно — оверлей (фон) */
.massage-ui-modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.massage-ui-modal__overlay[aria-hidden="false"] {
  display: flex;
  pointer-events: auto;
  opacity: 1;
}

/* Содержимое модального окна */
.massage-ui-modal__content {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border-radius: 0; /* Убираем скругление углов */
  overflow: hidden;
  background: #fff;
  box-shadow: none; /* Убираем тень, чтобы не было «рамки» */
  margin: 0;
  left: 0;
  top: 0;
}

/* Кнопка закрытия — фиксированная в углу */
.massage-ui-modal__close {
  position: fixed; /* Теперь кнопка всегда на виду */
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #c8d8f3;
  color: #6a4f40;
  font-size: 24px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  z-index: 1000; /* Выше iframe */
  transition: background 0.3s ease;
}

.massage-ui-modal__close:hover {
  background: #99abcb;
}

.massage-ui-modal__overlay[aria-hidden="false"] .massage-ui-modal__content {
  transform: scale(1);
}

/* Кнопка закрытия */
.massage-ui-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
background: #cfcbcb;
    color: #414348;
  font-size: 24px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10;
}

.massage-ui-modal__close:hover {
  background: #cfcbcb;
}

/* iframe с YCLIENTS */
.massage-ui-modal__iframe {
  width: 100%;
  height: calc(100% - 60px); /* минус высота кнопки закрытия */
  border: none;
}

/* Адаптивность модального окна */
@media (max-width: 768px) {
  .massage-ui-modal__content {
    border-radius: 16px;
    width: 95%;
  }
  .massage-ui-modal__close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

@media (max-height: 600px) {
  .massage-ui-modal__content {
    max-height: 85vh;
  }
}