/* Promo Banner Voucher - Frontend Styles */

/* Banner Base Styles */
#pbv-promo-banner {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.pbv-banner-container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.pbv-banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.pbv-banner-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.pbv-banner-text {
    flex: 1;
}

.pbv-banner-main {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 4px;
}

.pbv-banner-details {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.pbv-close-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.pbv-close-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Expand Button */
.pbv-expand-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pbv-expand-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pbv-expand-arrow {
    transition: transform 0.2s ease;
    display: inline-block;
}

.pbv-expand-button.expanded .pbv-expand-arrow {
    transform: rotate(180deg);
}

.pbv-expandable-content {
    margin-top: 8px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 100px;
    }
}

/* Gradient Color Schemes */
.pbv-gradient-orange {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
}

.pbv-gradient-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.pbv-gradient-orange-red {
    background: linear-gradient(135deg, #f46b45 0%, #eea849 100%);
}

.pbv-gradient-blue-green {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.pbv-gradient-purple-pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.pbv-gradient-custom {
    /* Custom gradient set via inline style */
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .pbv-banner-container {
        padding: 12px 15px;
    }

    .pbv-banner-icon {
        font-size: 28px;
    }

    .pbv-banner-main {
        font-size: 15px;
        margin-bottom: 0;
    }

    .pbv-banner-details {
        font-size: 12px;
    }

    .pbv-close-button {
        width: 32px;
        height: 32px;
        font-size: 24px;
    }
}

@media screen and (max-width: 480px) {
    .pbv-banner-container {
        gap: 10px;
    }
    
    .pbv-banner-icon {
        font-size: 24px;
    }
    
    .pbv-banner-main {
        font-size: 14px;
    }
}

/* WooCommerce Cart Styles */
.pbv-cart-qualified,
.pbv-cart-progress {
    background: #f8f9fa;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    width: 100%;
}

.pbv-cart-qualified {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pbv-cart-icon {
    width: 40px;
    height: 40px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
}

.pbv-cart-message {
    flex: 1;
    color: #333;
    font-size: 15px;
    line-height: 1.5;
}

.pbv-cart-progress {
    border-color: #FF6B35;
}

.pbv-cart-progress-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.pbv-cart-progress-icon {
    font-size: 24px;
}

.pbv-cart-progress-text {
    flex: 1;
    color: #333;
    font-size: 15px;
}

.pbv-cart-progress-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.pbv-cart-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B35 0%, #F7931E 100%);
    transition: width 0.3s ease;
    border-radius: 6px;
}

/* Thank You Page Styles */
.pbv-thankyou-message {
    background: #fff;
    border: 3px solid #FF6B35;
    border-radius: 8px;
    padding: 20px 25px;
    margin: 20px 0 30px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pbv-thankyou-icon {
    font-size: 40px;
    line-height: 1;
    flex-shrink: 0;
}

.pbv-thankyou-content {
    flex: 1;
}

.pbv-thankyou-title {
    color: #FF6B35;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.pbv-thankyou-details {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .pbv-thankyou-message {
        padding: 18px 20px;
        gap: 15px;
        align-items: flex-start;
    }

    .pbv-thankyou-icon {
        font-size: 32px;
    }

    .pbv-thankyou-title {
        font-size: 16px;
    }

    .pbv-thankyou-details {
        font-size: 13px;
    }
}

/* Animation for banner appearance */
@keyframes pbvSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#pbv-promo-banner {
    animation: pbvSlideDown 0.4s ease-out;
}

/* Body class for banner active state - no longer needs padding with relative positioning */
body.pbv-banner-active {
    /* Banner now uses relative positioning and pushes content down naturally */
}
