/* Planc Popup - Frontend Styles */

.planc-popup {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    width: var(--popup-width, 320px);
    max-width: calc(100vw - 40px);
    font-family: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, sans-serif;
    display: none;
}

.planc-popup.active {
    display: block;
    animation: plancPopupFadeIn 0.3s ease-out;
}

@keyframes plancPopupFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.planc-popup-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

/* Swiper Slider */
.planc-popup-swiper {
    width: 100%;
    position: relative;
}

.planc-popup-swiper .swiper-slide {
    width: 100%;
}

.planc-popup-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.planc-popup-swiper .swiper-slide a {
    display: block;
}

/* Fraction Pagination Badge (5/5 style) */
.planc-popup-swiper .swiper-pagination {
    position: absolute;
    top: auto;
    bottom: 12px;
    right: 12px;
    left: auto;
    width: auto;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.planc-popup-swiper .swiper-pagination-current,
.planc-popup-swiper .swiper-pagination-total {
    font-weight: 600;
}

/* Footer Buttons - Reference Design */
.planc-popup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8f8f8;
    border-top: 1px solid #eee;
}

.planc-popup-hide {
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 400;
    color: #666;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: color 0.2s ease;
}

.planc-popup-hide:hover {
    color: #333;
}

/* Checkbox Icon */
.planc-popup-hide::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 22px;
    background: #ccc;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.planc-popup-close {
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: color 0.2s ease;
}

.planc-popup-close:hover {
    color: #000;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .planc-popup {
        right: 0;
        bottom: 0;
        left: 0;
        top: 0;
        width: 100% !important;
        height: 100% !important;
        max-width: 100%;
        display: none;
        align-items: flex-end;
        justify-content: flex-end;
        padding: 0 20px 20px 0;
        box-sizing: border-box;
        background: rgba(0, 0, 0, 0.6);
    }

    .planc-popup.active {
        display: flex;
        animation: plancPopupFadeInMobile 0.3s ease-out;
    }

    @keyframes plancPopupFadeInMobile {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .planc-popup-container {
        width: var(--popup-mobile-width, 100%);
        max-width: 400px;
        border-radius: 20px;
        margin-bottom: 0;
        position: relative;
        transform: translateY(0);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

    .planc-popup-footer {
        padding: 16px 20px;
        background: #fff;
    }

    .planc-popup-hide {
        font-size: 14px;
    }

    .planc-popup-hide::before {
        width: 20px;
        height: 20px;
    }

    .planc-popup-close {
        font-size: 15px;
        font-weight: 600;
        padding: 5px 10px;
    }
}