#banner-maker-container {
    position: fixed;
    z-index: 9999;
    transition: all 0.5s ease-in-out;
    opacity: 0;
    transform: scale(0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

/* Các vị trí hiển thị */
.banner-position-bottom-left {
    bottom: 20px;
    left: 20px;
}

.banner-position-bottom-right {
    bottom: 20px;
    right: 20px;
}

.banner-position-top-left {
    top: 20px;
    left: 20px;
}

.banner-position-top-right {
    top: 20px;
    right: 20px;
}

.banner-position-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
}

/* Hiệu ứng hiển thị */
#banner-maker-container.banner-maker-show {
    opacity: 1;
    transform: scale(1);
    animation: banner-maker-shake 0.6s ease-in-out 2s infinite alternate;
}

.banner-position-center.banner-maker-show {
    transform: translate(-50%, -50%) scale(1);
    animation: banner-maker-shake-center 0.6s ease-in-out 2s infinite alternate;
}

/* Hiệu ứng ẩn */
#banner-maker-container.banner-maker-hide {
    opacity: 0;
    transform: scale(0.8);
}

.banner-position-center.banner-maker-hide {
    transform: translate(-50%, -50%) scale(0.8);
}

#banner-maker-link {
    display: block;
    text-decoration: none;
    position: relative;
}

#banner-maker-image {
    max-width: 500px;
    max-height: 200px;
    width: auto;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

#banner-maker-link:hover #banner-maker-image {
    transform: scale(1.05);
}

#banner-maker-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#banner-maker-close:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    #banner-maker-container {
        max-width: calc(100vw - 40px);
    }
    
    #banner-maker-image {
        max-width: 250px;
        max-height: 150px;
    }
    
    .banner-position-bottom-left,
    .banner-position-bottom-right {
        bottom: 10px;
    }
    
    .banner-position-bottom-left,
    .banner-position-top-left {
        left: 10px;
    }
    
    .banner-position-bottom-right,
    .banner-position-top-right {
        right: 10px;
    }
    
    .banner-position-top-left,
    .banner-position-top-right {
        top: 10px;
    }
}

/* Hiệu ứng rung để thu hút sự chú ý */
@keyframes banner-maker-shake {
    0% { transform: scale(1) translateX(0); }
    50% { transform: scale(1) translateX(3px); }
    100% { transform: scale(1) translateX(-3px); }
}

@keyframes banner-maker-shake-center {
    0% { transform: translate(-50%, -50%) scale(1) translateX(0); }
    50% { transform: translate(-50%, -50%) scale(1) translateX(3px); }
    100% { transform: translate(-50%, -50%) scale(1) translateX(-3px); }
}

/* Dừng hiệu ứng rung khi hover */
#banner-maker-container:hover {
    animation: none !important;
}

@media (max-width: 480px) {
    #banner-maker-image {
        max-width: 200px;
        max-height: 120px;
    }
}