/**
 * Stallazo WhatsApp & Marketplace Enhancements Styles
 */

/* WhatsApp Product Button */
.stallazo-whatsapp-product-wrapper {
    margin: 15px 0 20px 0;
    width: 100%;
}

.stallazo-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.stallazo-whatsapp-btn:hover {
    background: linear-gradient(135deg, #1ebd5b 0%, #0d7065 100%);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.stallazo-whatsapp-btn:active {
    transform: translateY(0);
}

.stallazo-wa-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stallazo-wa-pulse {
    position: absolute;
    right: 18px;
    width: 9px;
    height: 9px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: stallazo-pulse 1.8s infinite;
}

@keyframes stallazo-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Store Header WhatsApp Badge */
.stallazo-whatsapp-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #25D366;
    color: #ffffff !important;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none !important;
    transition: background-color 0.2s, transform 0.2s;
}

.stallazo-whatsapp-store-badge:hover {
    background-color: #128C7E;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Floating WhatsApp Button */
.stallazo-floating-whatsapp {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    z-index: 99999 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #25D366 !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.stallazo-floating-whatsapp:hover {
    background: #128C7E !important;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 24px rgba(18, 140, 126, 0.5) !important;
}

/* Verified Vendor Badges */
.stallazo-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    vertical-align: middle;
    margin-left: 6px;
    border: 1px solid #bae6fd;
    line-height: 1;
}

.stallazo-verified-badge.large {
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 16px;
}

.stallazo-verified-badge svg {
    flex-shrink: 0;
}

/* Vendor QR Code Container */
.stallazo-qr-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    max-width: 520px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.stallazo-qr-card-header h3 {
    margin: 0 0 8px 0;
    color: #111827;
    font-size: 20px;
}

.stallazo-qr-card-header p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 24px;
}

.stallazo-qr-canvas-wrapper {
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 24px;
    display: inline-block;
    margin-bottom: 20px;
}

.stallazo-qr-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.stallazo-qr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.stallazo-qr-btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.stallazo-qr-btn-primary:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.stallazo-qr-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.stallazo-qr-btn-secondary:hover {
    background: #e5e7eb;
}

/* Order WhatsApp Actions */
.stallazo-order-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #25D366;
    color: #ffffff !important;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background-color 0.2s;
}

.stallazo-order-wa-btn:hover {
    background: #128C7E;
    color: #ffffff !important;
}

@media print {
    body * {
        visibility: hidden;
    }
    #stallazo-printable-qr-card, #stallazo-printable-qr-card * {
        visibility: visible;
    }
    #stallazo-printable-qr-card {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        border: 2px solid #000;
    }
}
