.popup-native {
  display: none;
  padding: 20px;
}
.p2p-modal {
  display: none;
  position: fixed;
  z-index: 90000000000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: p2p-fadeIn 0.3s ease;
}

.p2p-modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  position: relative;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  animation: p2p-slideIn 0.3s ease;
}

.p2p-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

.p2p-close:hover {
  color: #333;
}

.p2p-modal-title {
  margin: 0 0 15px 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.p2p-modal-message {
  margin: 0 0 25px 0;
  font-size: 16px;
  line-height: 1.5;
  color: #666;
}

.p2p-modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.p2p-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  min-width: 100px;
}

.p2p-btn-primary {
  background-color: #1F1F1F;
  color: white;
}

.p2p-btn-primary:hover {
  transform: translateY(-1px);
}

.p2p-btn-secondary {
  background-color: #ccc;
  color: white;
}

.p2p-btn-secondary:hover {
  transform: translateY(-1px);
}

.p2p-btn-error {
  background-color: #dc3545;
  color: white;
}

.p2p-btn-error:hover {
  background-color: #c82333;
  transform: translateY(-1px);
}

/* Адаптивность */
@media (max-width: 480px) {
  .p2p-modal-content {
      width: 95%;
      padding: 20px;
      margin: 20% auto;
  }

  .p2p-modal-title {
      font-size: 18px;
      margin-bottom: 12px;
  }

  .p2p-modal-message {
      font-size: 14px;
      margin-bottom: 20px;
  }

  .p2p-modal-buttons {
      flex-direction: column;
      gap: 8px;
  }

  .p2p-btn {
      width: 100%;
      min-width: auto;
      padding: 14px;
  }

  .p2p-close {
      font-size: 24px;
      top: 12px;
      right: 15px;
  }
}

@media (max-height: 600px) {
  .p2p-modal-content {
      margin: 10% auto;
  }
}

/* Анимации */
@keyframes p2p-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes p2p-slideIn {
  from {
      opacity: 0;
      transform: translateY(-50px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}
@media screen and (max-width: 991px) {
  body.fancybox-active {
    overflow: hidden;
  }
  .fancybox-slide--html {
    padding: 0;
  }
  .fancybox-slide::before,
  .fancybox-slide::before {
    vertical-align: top;
    display: none;
  }
  .at-top-right .fancybox-slide {
    text-align: right;
  }
  .popup {
    max-height: 100svh;
    max-height: 100vh;
  }
  .popup-primary {
    width: 100%;
  }
  .popup.filter {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
  }
}