/*
Theme Name:   Woodmart Child
Description:  Woodmart Child Theme
Author:       XTemos
Author URI:   http://xtemos.com
Template:     woodmart
Version:      1.0.0
Text Domain:  woodmart
*/

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-bottom-nav__container {
  max-width: 100%;
  margin: 0 auto;
}

.mobile-bottom-nav__list {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  margin: 0;
  padding: 8px 12px;
  list-style: none;
  position: relative;
}

.mobile-bottom-nav__item {
  flex: 1;
  text-align: center;
  position: relative;
}

.mobile-bottom-nav__item--center {
  flex: 0 0 auto;
  margin-top: -24px;
}

.mobile-bottom-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  text-decoration: none;
  color: #666;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  border-radius: 8px;
}

.mobile-bottom-nav__link:hover,
.mobile-bottom-nav__link:active {
  color: #007aff;
  background: rgba(0, 122, 255, 0.05);
}

.mobile-bottom-nav__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-bottom-nav__svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  opacity: 0.9;
}

.mobile-bottom-nav__label {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Центральная кнопка (Записаться) */
.mobile-bottom-nav__center-btn {
  position: relative;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007aff, #5856d6);
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
  transition: all 0.3s ease;
  padding: 0;
  margin: -10px auto 0 auto;
  border-radius: 50% !important;
}

.mobile-bottom-nav__center-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.4);
}

.mobile-bottom-nav__center-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.mobile-bottom-nav__center-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-bottom-nav__center-svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.mobile-bottom-nav__center-label {
  font-size: 9px;
  font-weight: 600;
  margin-top: 2px;
  color: #fff;
}

/* Адаптивность */
@media (max-width: 320px) {
  .mobile-bottom-nav__list {
    padding: 6px 8px;
  }
  
  .mobile-bottom-nav__label {
    font-size: 9px;
  }
  
  .mobile-bottom-nav__center-btn {
    width: 54px;
    height: 54px;
  }
}

@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none;
  }
}

/* Анимация активного состояния */
.mobile-bottom-nav__link.active {
  color: #007aff;
}

.mobile-bottom-nav__link.active .mobile-bottom-nav__svg {
  fill: #007aff;
  opacity: 1;
}

/* Поддержка безопасных зон на iPhone X+ */
@supports (padding: max(0px)) {
  .mobile-bottom-nav {
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
}

/* Улучшение доступности */
.mobile-bottom-nav__link:focus-visible,
.mobile-bottom-nav__center-btn:focus-visible {
  outline: 2px solid #007aff;
  outline-offset: 2px;
}

@media screen and (max-width: 768.98px) {
  .medflex-round-widget__button {
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 72px !important;
    opacity: 0.8;
    width: 80px!important;
    height: 80px!important;
    font-size: 18px!important;
  }
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  border-style: solid;
  border-width: 2px 0px 0px 0px;
  border-color: var(--e-global-color-primary);
  border-radius: 10px 10px 0px 0px;
  padding: 0px 0px 0px 10px;
}

/* Основной контейнер футера */
.copyrights-wrapper {
  padding-bottom: 60px; /* Отступ равный высоте навбара */
}

/* Контейнер с копирайтом внутри футера */
.min-footer {
  padding-bottom: 20px; /* Дополнительный отступ если нужно */
}

/* Десктопная версия */
@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none;
  }
  .copyrights-wrapper {
    padding-bottom: 0;
  }
}

/* Если нужно учесть другие элементы на мобильных */
@media (max-width: 767px) {
  .footer-container {
    padding-bottom: 70px; /* Добавляем отступ для всего футера */
  }
  /* .medflex-round-widget__button {
  display: none;
  opacity: 0;
  } */
}


/* Стили модального окна */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 1);
  justify-content: center;
  align-items: center;
  padding: 60px;
}

.modal .content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
  position: relative;
}

.modal .close {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #000;
}

.modal .close:hover {
  color: #333;
}

.modal h2 {
  margin-top: 0;
  color: #000;
  text-align: center;
}

.modal p {
  color: #000000;
  margin-bottom: 20px;
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal input, .modal textarea, .modal button {
  padding: 12px;
  border: 1px solid #000000;
  border-radius: 4px;
  font-size: 16px;
  color: #000000;
}

.modal button {
  background: #007BFF;
  color: #fff;  
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.modal button:hover {
  background: #0056b3;
}

.modal .privacy {
  font-size: 12px;
  color: #dedbdb;
  margin-top: 15px;
  text-align: center;
}