/* WPLife NY Showman Styles */
.wplife-showman-container {
    position: fixed;
    z-index: 999999;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
    max-width: 150px;
    max-height: 150px;
    padding: 5px;
}

/* Позиции */
.wplife-showman-bottom-left {
    left: var(--wplife-offset-x, 0px);
    bottom: var(--wplife-offset-y, 20px);
}

.wplife-showman-bottom-center {
    left: 50%;
    bottom: var(--wplife-offset-y, 20px);
    transform: translateX(-50%);
    margin-left: var(--wplife-offset-x, 0px);
}

.wplife-showman-bottom-right {
    right: var(--wplife-offset-x, 0px);
    bottom: var(--wplife-offset-y, 20px);
}

/* Изображение снеговика */
.wplife-showman-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    /*border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);*/
    transition: transform 0.3s ease;
    padding: 5px;
}

.wplife-showman-image:hover {
    transform: scale(1.1);
}

.wplife-showman-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

/* Кнопка закрытия снеговика */
.wplife-showman-close {
    position: absolute;
    /*top: 0%;*/
    right: 0;
    bottom: 0;
    width: 20px;
    height: 20px;
    background: #ff4757;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.wplife-showman-close:hover {
    background: #ff2e43;
    transform: scale(1.1);
}

.wplife-showman-close-icon {
    color: white;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    user-select: none;
}

/* Модальное окно */
.wplife-showman-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wplife-showman-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.wplife-showman-modal-content {
    position: relative;
    z-index: 10000001;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: wplife-modal-appear 0.5s ease;
}

@keyframes wplife-modal-appear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Открытка */
.wplife-showman-postcard {
    display: block;
    max-width: 100%;
    max-height: 100vh;
    height: auto;
    width: auto;
    object-fit: contain;
}

/* Кнопка закрытия модального окна */
.wplife-showman-modal-close {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000002;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.wplife-showman-modal-close:hover {
    background: white;
    transform: scale(1.1);
}

.wplife-showman-modal-close-icon {
    color: #333;
    font-size: 30px;
    font-weight: bold;
    line-height: 1;
    user-select: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    
    .wplife-showman-modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .wplife-showman-modal-close {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
    }
    
    .wplife-showman-modal-close-icon {
        font-size: 25px;
    }
}

@media (max-width: 360px) {
    .wplife-showman-modal-close {
        width: 30px;
        height: 30px;
    }
    
    .wplife-showman-modal-close-icon {
        font-size: 20px;
    }
}

/* Анимация появления снеговика */
@keyframes wplife-showman-appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wplife-showman-container {
    animation: wplife-showman-appear 0.8s ease-out;
}