/* PopupPro Public Frontend Styles */

.popuppro-popup-root {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-sizing: border-box;
}

.popuppro-popup-root *,
.popuppro-popup-root *:before,
.popuppro-popup-root *:after {
    box-sizing: border-box;
}

/* Backdrop Overlay for Center Modal */
.popuppro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* POSITIONS */

/* Center Modal */
.popuppro-pos-center {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popuppro-pos-center .popuppro-card {
    position: relative;
    z-index: 2;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Top Bar */
.popuppro-pos-top_bar {
    top: 0;
    left: 0;
    width: 100vw;
    display: flex;
    justify-content: center;
}

.popuppro-pos-top_bar .popuppro-card {
    width: 100%;
    max-width: 100% !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Bottom Bar */
.popuppro-pos-bottom_bar {
    bottom: 0;
    left: 0;
    width: 100vw;
    display: flex;
    justify-content: center;
}

.popuppro-pos-bottom_bar .popuppro-card {
    width: 100%;
    max-width: 100% !important;
    border-radius: 0 !important;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

/* Slide Bottom Right */
.popuppro-pos-slide_bottom_right {
    bottom: 24px;
    right: 24px;
    width: auto;
}

.popuppro-pos-slide_bottom_right .popuppro-card {
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

/* Slide Bottom Left */
.popuppro-pos-slide_bottom_left {
    bottom: 24px;
    left: 24px;
    width: auto;
}

.popuppro-pos-slide_bottom_left .popuppro-card {
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

/* Close Button */
.popuppro-close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    color: currentColor;
    font-size: 24px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease;
}

.popuppro-close-btn:hover {
    background: rgba(0, 0, 0, 0.18);
    transform: scale(1.08);
}

/* Card Body & Content */
.popuppro-body {
    padding: 28px 24px;
    position: relative;
}

.popuppro-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* Responsive Aspect Ratios for Video */
.popuppro-video-content {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
}

.popuppro-video-content.aspect-16-9 {
    padding-top: 56.25%;
}

.popuppro-video-content.aspect-4-3 {
    padding-top: 75%;
}

.popuppro-video-content.aspect-1-1 {
    padding-top: 100%;
}

.popuppro-video-iframe,
.popuppro-video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ANIMATIONS */

/* Fade In */
.popuppro-anim-fade {
    opacity: 0;
    transition: opacity 0.35s ease-in-out;
}

.popuppro-anim-fade.popuppro-visible {
    opacity: 1;
}

/* Slide In */
.popuppro-anim-slide.popuppro-pos-center {
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.popuppro-anim-slide.popuppro-pos-center.popuppro-visible {
    transform: translateY(0);
    opacity: 1;
}

.popuppro-anim-slide.popuppro-pos-top_bar {
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.popuppro-anim-slide.popuppro-pos-top_bar.popuppro-visible {
    transform: translateY(0);
}

.popuppro-anim-slide.popuppro-pos-bottom_bar,
.popuppro-anim-slide.popuppro-pos-slide_bottom_right,
.popuppro-anim-slide.popuppro-pos-slide_bottom_left {
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.popuppro-anim-slide.popuppro-pos-bottom_bar.popuppro-visible,
.popuppro-anim-slide.popuppro-pos-slide_bottom_right.popuppro-visible,
.popuppro-anim-slide.popuppro-pos-slide_bottom_left.popuppro-visible {
    transform: translateY(0);
}

/* Zoom In */
.popuppro-anim-zoom {
    opacity: 0;
    transform: scale(0.8);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

.popuppro-anim-zoom.popuppro-visible {
    opacity: 1;
    transform: scale(1);
}

/* Bounce In */
.popuppro-anim-bounce {
    opacity: 0;
    transform: scale(0.6);
}

.popuppro-anim-bounce.popuppro-visible {
    animation: popupproBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popupproBounce {
    0% { opacity: 0; transform: scale(0.6); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 600px) {
    .popuppro-pos-slide_bottom_right,
    .popuppro-pos-slide_bottom_left {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        width: calc(100vw - 20px) !important;
    }
}
