/**
 * Custom Contact Buttons for Product Options - Styles
 * WooCommerce-compatible styling for contact buttons
 */

.ccb-contact-buttons {
    margin: 25px 0;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.ccb-custom-message {
    background: linear-gradient(135deg, #f8f9ff, #e8f2ff);
    border: 1px solid #d1e7ff;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 25px;
    color: #1e40af;
    font-style: normal;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.1);
}

.ccb-contact-buttons h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    letter-spacing: -0.025em;
}

.ccb-buttons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.ccb-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    min-height: 48px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
    cursor: pointer;
}

.ccb-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.ccb-button:active {
    transform: translateY(0);
}

.ccb-button:disabled,
.ccb-button.ccb-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ccb-button.ccb-loading {
    pointer-events: none;
    opacity: 0.8;
}

.ccb-icon {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ccb-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Email Button */
.ccb-email-button {
    background: #ea4335;
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.ccb-email-button:hover {
    background: #d33b2c;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* WhatsApp Button */
.ccb-whatsapp-button {
    background: #25d366;
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.ccb-whatsapp-button:hover {
    background: #128c7e;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Instagram Button */
.ccb-instagram-button {
    background: linear-gradient(45deg, #f58529 0%, #feda77 25%, #dd2a7b 50%, #8134af 75%, #515bd4 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.ccb-instagram-button:hover {
    background: linear-gradient(45deg, #feda77 0%, #dd2a7b 25%, #8134af 50%, #515bd4 75%, #3f51b5 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Facebook Button */
.ccb-facebook-button {
    background: #4267B2;
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.ccb-facebook-button:hover {
    background: #365899;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ccb-buttons-container {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .ccb-button {
        padding: 16px 20px;
        min-height: 52px;
        font-size: 16px;
        font-weight: 500;
    }
    
    .ccb-contact-buttons {
        margin: 20px 0;
        padding: 20px;
        border-radius: 16px;
    }
    
    .ccb-custom-message {
        padding: 16px 18px;
        margin-bottom: 20px;
        font-size: 16px;
        line-height: 1.7;
        border-radius: 12px;
    }
    
    .ccb-contact-buttons h4 {
        font-size: 20px;
        margin-bottom: 24px;
    }
    
    .ccb-icon {
        width: 22px;
        height: 22px;
        margin-right: 12px;
    }
}

@media (max-width: 480px) {
    .ccb-contact-buttons {
        margin: 15px 0;
        padding: 18px;
        border-radius: 14px;
    }
    
    .ccb-button {
        padding: 14px 18px;
        min-height: 50px;
        font-size: 15px;
        font-weight: 500;
    }
    
    .ccb-icon {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }
    
    .ccb-custom-message {
        padding: 14px 16px;
        margin-bottom: 18px;
        font-size: 15px;
        line-height: 1.6;
        border-radius: 10px;
    }
    
    .ccb-contact-buttons h4 {
        font-size: 18px;
        margin-bottom: 20px;
    }
}

/* WooCommerce Integration */
.woocommerce .ccb-contact-buttons {
    margin: 20px 0;
}

.woocommerce .ccb-button {
    font-family: inherit;
    cursor: pointer;
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .ccb-contact-buttons {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .ccb-contact-buttons h4 {
        color: #e2e8f0;
    }
    
    .ccb-custom-message {
        background: #1a365d;
        border-color: #3182ce;
        color: #90cdf4;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ccb-button {
        border-width: 3px;
    }
    
    .ccb-contact-buttons {
        border-width: 2px;
    }
    
    .ccb-custom-message {
        border-width: 2px;
    }
}

/* Focus states for accessibility */
.ccb-button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Animation for contact buttons */
.ccb-contact-buttons {
    opacity: 0;
    transform: translateY(20px);
    animation: ccb-fade-in 0.6s ease-out forwards;
}

@keyframes ccb-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    .ccb-contact-buttons {
        display: none;
    }
} 