/* GBP Edge Popup Styles */

.gbp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.gbp-popup-container {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

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

.gbp-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
}

.gbp-popup-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.gbp-popup-content {
    padding: 50px 40px 40px;
    text-align: center;
}

/* Price Badge */
.gbp-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
    border-radius: 50px;
    border: 2px solid #022447;
}

.price-old {
    font-size: 1.5rem;
    font-weight: 700;
    color: #999;
    text-decoration: line-through;
    position: relative;
}

.price-new {
    font-size: 1.8rem;
    font-weight: 900;
    color: #022447;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 8px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Title */
.gbp-popup-title {
    font-size: 2rem;
    font-weight: 700;
    color: #022447;
    margin-bottom: 15px;
    line-height: 1.3;
}

.gbp-popup-title .highlight {
    color: #034a7b;
    font-size: 1.6rem;
}

/* Subtitle */
.gbp-popup-subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

.text-accent {
    color: #FFA500;
    font-size: 1.15rem;
}

/* CTA Button */
.gbp-popup-cta {
    display: inline-block;
    background: linear-gradient(135deg, #022447 0%, #034a7b 100%);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(2, 36, 71, 0.4);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.gbp-popup-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(2, 36, 71, 0.5);
}

/* Trust Elements */
.gbp-popup-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

.trust-item i {
    color: #28a745;
    font-size: 1rem;
}

/* Features List */
.gbp-popup-features {
    text-align: left;
    background: #f0f7ff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.gbp-popup-features h3 {
    font-size: 1.2rem;
    color: #022447;
    margin-bottom: 15px;
    text-align: center;
}

.gbp-popup-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gbp-popup-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #555;
}

.gbp-popup-features li:last-child {
    margin-bottom: 0;
}

.gbp-popup-features li i {
    color: #FFA500;
    font-size: 1.1rem;
    margin-top: 3px;
}

/* Urgency Banner */
.gbp-popup-urgency {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border: 2px solid #ffc107;
    border-radius: 10px;
    font-size: 1rem;
    color: #856404;
    font-weight: 600;
}

.gbp-popup-urgency i {
    color: #ff6b6b;
    font-size: 1.2rem;
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.gbp-popup-urgency strong {
    color: #dc3545;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gbp-popup-content {
        padding: 40px 25px 30px;
    }

    .gbp-popup-title {
        font-size: 1.6rem;
    }

    .gbp-popup-title .highlight {
        font-size: 1.3rem;
    }

    .gbp-popup-subtitle {
        font-size: 1rem;
    }

    .gbp-popup-cta {
        font-size: 1.1rem;
        padding: 15px 30px;
        width: 100%;
    }

    .price-old {
        font-size: 1.2rem;
    }

    .price-new {
        font-size: 1.5rem;
    }

    .trust-item {
        font-size: 0.85rem;
    }

    .gbp-popup-features {
        padding: 20px;
    }

    .gbp-popup-urgency {
        font-size: 0.9rem;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .gbp-popup-overlay {
        padding: 10px;
    }

    .gbp-popup-container {
        border-radius: 15px;
    }

    .gbp-popup-content {
        padding: 35px 20px 25px;
    }

    .gbp-popup-badge {
        flex-direction: column;
        gap: 10px;
    }

    .gbp-popup-trust {
        flex-direction: column;
        gap: 10px;
    }
}

/* Scrollbar styling for popup */
.gbp-popup-container::-webkit-scrollbar {
    width: 8px;
}

.gbp-popup-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.gbp-popup-container::-webkit-scrollbar-thumb {
    background: #022447;
    border-radius: 10px;
}

.gbp-popup-container::-webkit-scrollbar-thumb:hover {
    background: #034a7b;
}
