.popup-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
    animation: shake 0.5s ease-in-out;
    max-width: 90vw;
    max-height: 80vh;
    width: 100%;
    box-sizing: border-box;
	margin-bottom: -140px;
}

.popup-content {
    background: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    max-width: 100%;
    max-height: 100%;
    overflow: auto;
    position: relative;
    box-sizing: border-box;
}

.popup-close {
    position: absolute;
    top: 0px;
    right: 0px;
    font-weight: 600;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.popup-close:hover {
    color: #ff0000;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Медиа-запросы для адаптивности */
@media screen and (max-width: 768px) {
    .popup-window {
        bottom: 10px;
        right: 10px;
        max-width: 90vw;
        max-height: 70vh;
    }

    .popup-content {
        padding: 15px;
    }

    .popup-close {
        font-size: 16px;
        top: 5px;
        right: 5px;
    }
}

@media screen and (max-width: 480px) {
    .popup-window {
        bottom: 140px;
        right: 5px;
        max-width: 95vw;
        max-height: 60vh;
    }

    .popup-content {
        padding: 10px;
    }

    .popup-close {
        font-size: 14px;
    }
}