/**
 * Share Popup Styles
 * Универсальные стили для share функционала
 */

/* Контейнер для share иконки */
.share-container {
  position: relative;
}

/* Share иконка */
.share-icon {
  position: absolute !important;
  top: 20px;
  left: 20px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 10;
  /* Принудительное центрирование */
  display: flex !important;
  border-radius: 50%;
}

.share-icon:hover {
  opacity: 0.8;
}

.share-icon img {
  position: static !important;
  float: none !important;
  clear: none !important;
  width: 43px !important;
  height: 43px !important;
}

/* Share Popup */
.share-popup {
  position: fixed;
  background: white;
  border-radius: 20px;
  padding: 15px 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 9999;
  min-width: 240px;
}

.share-popup-content {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Share опции */
.share-option {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.share-option:hover {
  transform: scale(1.1);
}

.share-icon-bg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.share-icon-bg img {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: contain !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.whatsapp .share-icon-bg img {
  width: 53px !important;
  height: 53px !important;
  max-width: 53px !important;
  max-height: 53px !important;
  object-fit: contain !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.whatsapp .share-icon-bg {
  width: 53px;
  height: 53px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Стрелка popup */
.share-popup-arrow {
  position: absolute;
  bottom: -8px;
  left: 25px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid white;
}

/* Стрелка сверху когда popup внизу */
.share-popup.arrow-top .share-popup-arrow {
  top: -8px;
  bottom: auto;
  border-top: none;
  border-bottom: 8px solid #ffffff;
}

.share-popup.arrow-top .share-popup-arrow::before {
  top: 1px;
  bottom: auto;
  border-top: none;
  border-bottom: 8px solid #e1e5e9;
}

/* Уведомление о копировании */
.copy-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #555655;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  font-size: 14px;
  font-weight: 500;
  display: none;
}

/* Адаптивность для разных размеров контейнеров */
.img_car .share-icon {
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
}

/* Дополнительные варианты позиционирования */
.share-icon.top-right {
  top: 10px;
  left: auto;
  right: 10px;
}

.share-icon.bottom-left {
  top: auto;
  bottom: 10px;
  left: 10px;
}

.share-icon.bottom-right {
  top: auto;
  bottom: 10px;
  left: auto;
  right: 10px;
}

.share-bottom-left .share-icon {
  top: auto !important;
  bottom: 47px !important;
  left: 5px !important;
}
/* Стили для мобильной версии (пока закомментированы) */
/*
@media (max-width: 768px) {
    .share-popup-content {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .share-option {
        padding: 12px;
        text-align: center;
    }

    .share-icon-bg {
        width: 40px;
        height: 40px;
    }

    .share-icon-bg img {
        width: 36px;
        height: 36px;
    }
}
*/
