.modal-mug-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1020;
}

.modal-mug-container {
    display: none;
    position: fixed;
    top: 5vh; /* Смещаем верх контейнера */
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    z-index: 1030;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    box-sizing: border-box;
    flex-direction: column;
    overflow: hidden; /* Отключаем прокрутку */
}

.modal-mug-header, .modal-mug-footer {
    padding: 2vh;
    background-color: #f1f1f1;
    flex-shrink: 0; /* Фиксируем высоту хедера и футера */
}

.modal-mug-header {
    display: flex;
    height: 5vh;
    justify-content: flex-end;
    align-items: center;
}

.modal-mug-body {
    height: 70vh;
    max-width: 60vh;
    padding: 1vh;
    text-align: center;
    flex-grow: 1; /* Контент растягивается на все доступное пространство */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.modal-mug-body .modal-mug-image {
    width: 80%;
    height: auto;
    max-height: calc(90vh - 120px); /* Ограничиваем максимальную высоту картинки */
    object-fit: contain; /* Поддерживаем пропорции изображения */
}

.modal-mug-body p {
    margin: 10px 0;
    line-height: 1.5;
    flex-shrink: 0; /* Фиксируем высоту текста */
}

.modal-mug-body #modalMessage1 {
    font-weight: bold;
    font-size: 20px;
}

.modal-mug-footer {
    display: flex;
    justify-content: center;
    height: 5vh;
}

.modal-mug-close-icon {
    width: 28px;
    height: 28px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.modal-mug-close-icon:hover {
    opacity: 1;
}

@media (max-width: 1024px) {
    .modal-mug-container {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90vw;
    }
    .modal-mug-body {
        height: auto;
    }
}