/* Buy Check WooCommerce Overlay Styles */

/* Overlay Container */
#bcw-overlay-container {
    position: relative;
    z-index: 1000;
}

/* Main Overlay */
.bcw-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Overlay Content */
.bcw-overlay-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: bcw-fadeIn 0.3s ease-out;
}

@keyframes bcw-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Question and Message Styles */
.bcw-question,
.bcw-message {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 30px;
    line-height: 1.4;
    font-family: inherit;
}

/* Buttons Container */
.bcw-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.bcw-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
    font-family: inherit;
}

.bcw-btn-yes {
    background-color: #61ce70;
    color: #ffffff;
}

.bcw-btn-yes:hover {
    background-color: #4caf50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(97, 206, 112, 0.3);
}

.bcw-btn-no {
    background-color: #f44336;
    color: #ffffff;
}

.bcw-btn-no:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.3);
}

.bcw-btn-confirmed {
    background-color: #2196f3;
    color: #ffffff;
}

.bcw-btn-confirmed:hover {
    background-color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

/* Contact Information */
.bcw-contact-info {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bcw-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.bcw-contact-item:hover {
    background-color: #e9ecef;
}

.bcw-contact-item a {
    color: #2196f3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.bcw-contact-item a:hover {
    color: #1976d2;
    text-decoration: underline;
}

/* Icons */
.bcw-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.bcw-email-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232196f3'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.bcw-phone-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232196f3'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

/* Responsive Design */
@media (max-width: 768px) {
    .bcw-overlay-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .bcw-question,
    .bcw-message {
        font-size: 1.25rem;
    }
    
    .bcw-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .bcw-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .bcw-contact-info {
        gap: 10px;
    }
    
    .bcw-contact-item {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .bcw-overlay-content {
        padding: 25px 15px;
    }
    
    .bcw-question,
    .bcw-message {
        font-size: 1.1rem;
    }
}

/* Elementor Compatibility */
.elementor .bcw-overlay-content {
    font-family: var(--e-global-typography-primary-font-family, inherit);
    color: var(--e-global-color-text, #333333);
}

.elementor .bcw-btn {
    font-family: var(--e-global-typography-primary-font-family, inherit);
    background-color: var(--e-global-color-primary, #61ce70);
    color: var(--e-global-color-primary-contrast, #ffffff);
}

.elementor .bcw-btn:hover {
    background-color: var(--e-global-color-primary-hover, #4caf50);
}

/* WooCommerce Compatibility */
.woocommerce .bcw-overlay-content {
    font-family: inherit;
}

/* Fade out animation */
.bcw-overlay.fade-out {
    animation: bcw-fadeOut 0.3s ease-in forwards;
}

@keyframes bcw-fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
