

.side-modal-wrapper {
    position: fixed;    
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 900;
}

.side-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.side-modal-panel {
    position: fixed;
    top: 0;
    right: -60%;
    width: 60%;
    height: 100%;
    background: white;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.3);
    transition: right 0.4s ease;
    overflow-y: auto;
    z-index: 1061;
}

.side-modal-wrapper.active {
    display: block;
}

.side-modal-wrapper.active .side-modal-backdrop {
    opacity: 1;
}

.side-modal-wrapper.active .side-modal-panel {
    right: 0;
}

.side-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    z-index: 1062;
    color: #666;
    transition: color 0.2s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-modal-close:hover {
    color: #000;
    background: #f0f0f0;
    border-radius: 50%;
}

.side-modal-body {
    padding: 25px 25px 25px 25px;
    min-height: 100%;
    box-sizing: border-box;
}

.side-modal-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 18px;
    color: #666;
}

.side-modal-error {
    color: #dc3545;
    padding: 30px 20px;
    text-align: center;
    background: #f8d7da;
    border-radius: 5px;
    margin: 20px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .side-modal-panel {
        width: 40%;
        right: -40%;
    }
}

@media (max-width: 992px) {
    .side-modal-panel {
        width: 50%;
        right: -50%;
    }
}

@media (max-width: 768px) {
    .side-modal-panel {
        width: 75%;
        right: -75%;
    }
}

@media (max-width: 576px) {
    .side-modal-panel {
        width: 85%;
        right: -85%;
    }
}

@media (max-width: 480px) {
    .side-modal-panel {
        width: 95%;
        right: -95%;
    }
}

/* Блокировка прокрутки при открытой модалке */
body.side-modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}