/* Popup Notification Styles */

.popup-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    max-width: 350px;
    width: calc(100% - 40px);
}

.popup-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    z-index: 1;
    line-height: 1;
    padding: 0 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.popup-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #000;
}

.popup-header {
    padding: 12px 16px;
    border-bottom: 1px solid #dee2e6;
}

.popup-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    padding-right: 24px;
}

.popup-body {
    padding: 12px 16px;
}

.popup-image {
    text-align: center;
    margin-bottom: 12px;
}

.popup-image img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 4px;
    width: 100%;
    height: auto;
}

.popup-content {
    margin: 0;
    font-size: 0.875rem;
    color: #495057;
    line-height: 1.5;
}

.popup-footer {
    padding: 12px 16px;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Мобильная адаптация */
@media (max-width: 576px) {
    .popup-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        width: auto;
    }
    
    .popup-footer {
        flex-direction: column;
    }
    
    .popup-footer .btn {
        width: 100%;
    }
}

/* Для экранов с маленькой высотой */
@media (max-height: 500px) {
    .popup-container {
        bottom: 5px;
        right: 5px;
        max-width: 280px;
    }
    
    .popup-image img {
        max-width: 150px;
        max-height: 150px;
    }
}

/* Для устройств с hover */
@media (hover: hover) {
    .popup-close:hover {
        background-color: rgba(0, 0, 0, 0.1);
        color: #000;
    }
}