/* Import Poppins from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Basic popup styles */
/* Overlay covers screen; popup is positioned bottom-left */


#cpp-popup {
    position: fixed;
    left: 20px;
    bottom: 20px;
    max-width: 360px;
    width: calc(100% - 40px);
    transform: none;
    background: #fff;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    z-index: 9999;
    max-height: 60vh;
    overflow-y: auto;
    border-radius: 8px;
    font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    text-align: center; /* center text by default */
}

#cpp-popup.cpp-hidden, #cpp-overlay.cpp-hidden { display: none; }

#cpp-popup #cpp-close {
    /* circle stacked around the × icon */
    position: absolute;
    right: 12px;
    top: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #000000;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
    z-index: 10001;
}

/* subtle hover/focus states */
#cpp-popup #cpp-close:hover,
#cpp-popup #cpp-close:focus {
    background: #f5f5f5;
    color: black;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.14);
    outline: none;
}

/* optional: slightly smaller on very small screens */
@media (max-width: 420px) {
    #cpp-popup #cpp-close {
        width: 32px;
        height: 32px;
        font-size: 16px;
        right: 10px;
        top: 10px;
    }
}

/* .cpp-image img { max-width: 100%; height: auto; margin-bottom: 10px; display: block; margin-left: auto; margin-right: auto; } */

/* Title */
#cpp-popup .cpp-title {
    margin-top: 0;
    font-size: 20px;
    font-weight: 600;
    color: #DEA02B !important;
    text-align: center;
}

/* Content (Poppins applied via parent) */
.cpp-content {
    font-size: 15px;
    color: #1b1a1a;
    line-height: 1.5;
    text-align: start;
    margin: 0.25rem 0 0.75rem;
}
.cpp-content p { margin: 0 0 0.8em; }

/* Buttons centered */
.cpp-buttons {
    margin-top: 10px;
    font-size: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.cpp-button {
    display: inline-block;
    padding: 10px 24px;
    background: #000000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
}

/* Replace list rule with a hanging-indent implementation so wrapped lines align with text */
#cpp-popup .cpp-content ul {
    padding: 0;
    margin: 0 0 1rem 0; /* left margin creates space for bullets */
    list-style: none;
}
#cpp-popup .cpp-content ul li {
    position: relative;
    padding-left: 0.9rem; /* space between bullet and text */
    margin-bottom: 0.35rem;
    text-align: left; /* keep lines left-aligned inside centered popup */
}
#cpp-popup .cpp-content ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0.15rem;
    color: #1b1a1a; /* bullet color */
    font-size: 1em;
    line-height: 1;
}
/* ensure any paragraphs inside lis don't add extra indent */
#cpp-popup .cpp-content ul li p { margin: 0; }

/* Gallery thumbnails */
.cpp-gallery {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
    padding-bottom: 6px;
}

.cpp-gallery .cpp-thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background: #fafafa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.cpp-gallery .cpp-thumb img {
    max-width: 62px !important;
    max-height: 62px !important;
    object-fit: cover;
    display: block;
}

/* .cpp-image img {
    max-width: 62px !important;
    height: auto !important; */

/* make sure gallery thumbnails align left inside text-centred popup */
#cpp-popup .cpp-gallery { text-align: center; }

/* Mobile view: center the popup */
@media (max-width: 768px) {
    #cpp-popup {
        left: 50%;
        top: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
        max-width: 90vw;
        width: 90vw;
        max-height: 80vh;
    }
}