/* === Improved Custom Popup Coupon CSS === */

/* Popup Overlay (No changes needed) */
#cpc-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); /* Made slightly darker for more focus */
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

/* Popup Container */
#cpc-popup-container {
    position: relative;
    background: linear-gradient(135deg, #6a11cb, #2575fc); /* More vibrant gradient */
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 450px;
    animation: cpc-fade-in 0.5s ease-in-out;
    box-sizing: border-box;
}

@keyframes cpc-fade-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* --- DESIGN CHANGES START HERE --- */

/* 1. Headline Text ("অভিনন্দন...") - Font size reduced and animation added */
#cpc-popup-container h2 {
    color: #fff;
    font-size: 24px; /* Was 28px, now smaller and more standard */
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 600;
    animation: cpc-text-glow 2.5s ease-in-out infinite alternate; /* Glowing animation */
}

/* Animation for glowing text */
@keyframes cpc-text-glow {
    from { text-shadow: 0 0 4px rgba(255, 255, 255, 0.6); }
    to { text-shadow: 0 0 16px rgba(255, 255, 255, 0.9); }
}

/* Sub-headline text */
#cpc-popup-container p {
    color: #f0f0f0;
    font-size: 15px; /* Slightly smaller */
    margin-bottom: 20px;
}

/* 2. Coupon Box - Redesigned to look like a ticket */
#cpc-coupon-box {
    position: relative; /* Required for the scissor icon */
    display: flex;
    justify-content: space-between; /* Pushes code and button apart */
    align-items: center;
    border: 2px dashed #fff;
    border-radius: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.15);
    margin-top: 25px;
}

/* 3. Scissor Icon - Add this to make it look like Daraz */
/* Note: You need to add the icon in your PHP file. See instructions below */
.cpc-scissor-icon {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 24px;
    color: #fff;
    padding: 0 15px;
    opacity: 0.7;
}

/* Coupon Code - Made more prominent */
#cpc-coupon-code {
    font-family: 'Courier New', Courier, monospace; /* Classic coupon font */
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #fff;
    padding: 10px;
    flex-grow: 1;
    text-align: center;
}

/* Copy Button - Modernized style */
#cpc-copy-code {
    background-color: #ffffff;
    color: #2575fc;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#cpc-copy-code:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* 4. Editable Terms & Conditions Text - Add a new <p> tag with this class */
.cpc-terms-text {
    font-size: 12px;
    color: #e0e0e0;
    margin-top: 15px;
    opacity: 0.9;
}

/* Close Button (No changes needed) */
#cpc-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}