@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

/* Reset and Container Styles */
.wccp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6); /* Slate 900 with alpha */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    font-family: 'Outfit', sans-serif;
    box-sizing: border-box;
}

.wccp-popup-overlay.wccp-active {
    opacity: 1;
    visibility: visible;
}

.wccp-popup-card {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 40px rgba(0, 0, 0, 0.03);
    width: 90%;
    max-width: 440px;
    position: relative;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.wccp-popup-overlay.wccp-active .wccp-popup-card {
    transform: scale(1) translateY(0);
}

/* Close Button */
.wccp-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.06);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.wccp-close-btn:hover {
    background: rgba(15, 23, 42, 0.15);
    transform: rotate(90deg);
    color: #0f172a;
}

/* Header Sections */
.wccp-popup-header {
    padding: 35px 24px 20px 24px;
    text-align: center;
    color: #ffffff;
    position: relative;
}

.guest-header {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

.user-header {
    background: linear-gradient(135deg, #7f00ff 0%, #e100ff 100%);
}

.wccp-header-emoji {
    font-size: 48px;
    display: inline-block;
    margin-bottom: 8px;
    animation: wccp-bounce 2s infinite ease-in-out;
}

.wccp-popup-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Body Content */
.wccp-popup-body {
    padding: 24px 30px;
    text-align: center;
}

.wccp-main-text {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.wccp-sub-text {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

/* Urgency & Badges */
.wccp-urgency-badge {
    background: #fff1f2;
    border: 1px dashed #f43f5e;
    color: #e11d48;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
    animation: wccp-pulse 1.8s infinite ease-in-out;
    margin: 10px 0;
}

/* Coupon Container */
.wccp-coupon-container {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    position: relative;
    transition: border-color 0.3s;
}

.wccp-coupon-container:hover {
    border-color: #7f00ff;
}

.wccp-coupon-code {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: #7f00ff;
    letter-spacing: 2px;
    padding-left: 12px;
    user-select: all;
}

.wccp-copy-btn {
    background: #7f00ff;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wccp-copy-btn:hover {
    background: #6200c7;
    transform: scale(1.03);
}

.wccp-copy-btn.copied {
    background: #10b981;
}

/* Store locations section */
.wccp-stores-section {
    text-align: left;
    margin-top: 15px;
    background: #f8fafc;
    padding: 16px;
    border-radius: 16px;
}

.wccp-stores-title {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wccp-stores-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wccp-store-badge {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    transition: all 0.2s;
}

.wccp-store-badge:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    transform: translateY(-1px);
}

/* Popup Footer Buttons */
.wccp-popup-footer {
    padding: 0 30px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wccp-action-btn {
    display: block;
    width: 100%;
    padding: 15px;
    border-radius: 16px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.guest-btn {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: #ffffff;
}

.guest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -8px rgba(255, 75, 43, 0.5);
}

.user-btn {
    background: linear-gradient(135deg, #7f00ff 0%, #e100ff 100%);
    color: #ffffff;
}

.user-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -8px rgba(127, 0, 255, 0.5);
}

.wccp-secondary-btn {
    background: transparent;
    border: none;
    color: #64748b;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.wccp-secondary-btn:hover {
    color: #334155;
}

/* Animations */
@keyframes wccp-bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

@keyframes wccp-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 8px rgba(225, 29, 72, 0);
    }
}
