.pbp-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
}

.pbp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.7;
    cursor: pointer;
}

.pbp-content {
    position: absolute;
    z-index: 1000000;
    background: transparent;
}

/* Position Classes */
.pbp-position-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pbp-position-top-left {
    top: 20px;
    left: 20px;
}

.pbp-position-top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.pbp-position-top-right {
    top: 20px;
    right: 20px;
}

.pbp-position-middle-left {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.pbp-position-middle-right {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.pbp-position-bottom-left {
    bottom: 20px;
    left: 20px;
}

.pbp-position-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.pbp-position-bottom-right {
    bottom: 20px;
    right: 20px;
}

.pbp-banner-img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.pbp-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000001;
}

.pbp-close:hover {
    background: #ff4444;
    color: #fff;
    transform: rotate(90deg);
}

/* Animations */
@keyframes pbpFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pbpSlideIn {
    from { 
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes pbpZoomIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes pbpBounceIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
    70% {
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes pbpRotateIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-200deg) scale(0);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(0) scale(1);
    }
}

.pbp-popup.pbp-show .pbp-content {
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

.pbp-popup[data-animation="fade"] .pbp-content {
    animation-name: pbpFadeIn;
}

.pbp-popup[data-animation="slide"].pbp-position-center .pbp-content {
    animation-name: pbpSlideIn;
}

.pbp-popup[data-animation="zoom"] .pbp-content {
    animation-name: pbpZoomIn;
}

.pbp-popup[data-animation="bounce"] .pbp-content {
    animation-name: pbpBounceIn;
}

.pbp-popup[data-animation="rotate"] .pbp-content {
    animation-name: pbpRotateIn;
}

/* Responsive */
@media (max-width: 768px) {
    .pbp-content {
        max-width: 90% !important;
        margin: 0 auto;
    }
    
    .pbp-position-top-left,
    .pbp-position-top-right,
    .pbp-position-middle-left,
    .pbp-position-middle-right,
    .pbp-position-bottom-left,
    .pbp-position-bottom-right {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
    
    .pbp-position-middle-left,
    .pbp-position-middle-right {
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
}
