@media screen and (max-width:1000px) {
	#popup-related-post {
		display: none;
	}
}

#popup-related-post {
    position: fixed;
	bottom: 5px;
    right: -400px;
    width: 360px;
    background: transparent; /* Бэкграунд прозрачный, чтобы видно было карточки */
    z-index: 9999;
    transition: right 0.5s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#popup-related-post.show {
    right: 20px;
}

#popup-related-post .loader {
    padding: 40px;
    text-align: center;
    font-size: 18px;
    color: #777;
}

.popup-related-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Отступы между карточками */
}

:root {
  --bg-color: #ffffff;
  --text-color: #000000;
}
/* СТИЛЬ КАРТОЧКИ */
.popup-related-item {
    display: flex;
    flex-direction: row;
    gap: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 12px;
    text-decoration: none;
	background-color: #fff;
	color: #000;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Тёмная тема — когда у html атрибут data-bs-theme="dark" */
html[data-bs-theme="dark"] .popup-related-item {
  background-color: #1e1e1e; /* или background-color: inherit если у html тоже тёмный фон */
  color: #fff;
}

.dark-mode .popup-related-item .content h4 {
/*	color: #ff002b; */
}

.dark-mode .popup-related-item .content p {
	color: white;
}

.popup-related-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.popup-related-item .thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.popup-related-item .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-related-item .content h4 {
    margin: 0 0 5px;
    font-size: 16px;
/*    color: #333; */
}

.popup-related-item .content p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* Скрываем всплывающее окно для мобильных устройств */
@media (max-width: 768px) {
    .popup-related-wrapper {
        display: none !important;
    }
}
