/* WhatsApp Quote Request - Public Styles v2.0 */

/* ======== WhatsApp Buttons (shared) ======== */
.wcqr-whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 0;
    width: auto;
    min-width: 200px;
    color: #ffffff !important;
}

.wcqr-whatsapp-button:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.wcqr-whatsapp-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Cart button */
.wcqr-cart-button {
    width: 100%;
    text-align: center;
    padding: 15px !important;
    font-size: 1.1em;
    margin-top: 10px;
}

/* Product button */
.wcqr-product-button {
    width: 100%;
    padding: 15px !important;
    font-size: 1.1em;
    margin: 15px 0;
}

/* Checkout button */
.wcqr-checkout-button {
    width: 100%;
    text-align: center;
    padding: 15px !important;
    font-size: 1.1em;
}

/* Shortcode button */
.wcqr-shortcode-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background-color: #25D366;
    color: white !important;
    text-decoration: none !important;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.wcqr-shortcode-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.wcqr-shortcode-button:hover {
    background-color: #128C7E;
    color: white !important;
}

/* ======== Floating Button ======== */
.wcqr-floating-button {
    position: fixed;
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Floating tooltip */
.wcqr-floating-tooltip {
    position: fixed;
    z-index: 999997;
    background: #333;
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    white-space: pre-wrap !important;
    width: fit-content !important;
    width: -moz-fit-content !important;
    display: table !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.wcqr-floating-button:hover+.wcqr-floating-tooltip,
#wcqr-floating-button-wrap:hover .wcqr-floating-tooltip {
    opacity: 1;
}

/* Float animations */
@keyframes wcqr-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes wcqr-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* GDPR Popup */
.wcqr-floating-gdpr {
    position: fixed;
    z-index: 999999;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    max-width: 320px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
}

.wcqr-floating-gdpr p {
    margin: 0 0 15px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.wcqr-gdpr-actions {
    display: flex;
    gap: 10px;
}

.wcqr-gdpr-accept {
    background: #25D366;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s;
}

.wcqr-gdpr-accept:hover {
    background: #128C7E;
}

.wcqr-gdpr-cancel {
    background: #f0f0f1;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.wcqr-gdpr-cancel:hover {
    background: #e4e5e7;
}

/* ======== Multi-Agent Modal ======== */
.wcqr-agent-modal {
    position: fixed;
    z-index: 999998;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    width: 280px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wcqr-agent-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #25D366;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.wcqr-agent-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.wcqr-agent-modal-close:hover {
    opacity: 1;
}

.wcqr-agent-list {
    padding: 6px 0;
}

.wcqr-agent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none !important;
    color: #333 !important;
    transition: background 0.2s;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.wcqr-agent-item:last-child {
    border-bottom: none;
}

.wcqr-agent-item:hover {
    background: #f0faf4;
}

.wcqr-agent-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #e8f5ee;
    border-radius: 50%;
    flex-shrink: 0;
}

.wcqr-agent-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.wcqr-agent-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.wcqr-agent-item:hover .wcqr-agent-arrow {
    opacity: 1;
}

/* ======== Toast & States ======== */
.wcqr-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    animation: wcqr-slideIn 0.3s ease;
    font-size: 14px;
    max-width: 300px;
}

@keyframes wcqr-slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.wcqr-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: white;
    animation: wcqr-spin 1s ease-in-out infinite;
}

@keyframes wcqr-spin {
    to {
        transform: rotate(360deg);
    }
}

.wcqr-button-loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.wcqr-error {
    color: #dc3232;
    font-size: 14px;
    margin: 10px 0;
    padding: 10px;
    background: #fbeaea;
    border: 1px solid #dc3232;
    border-radius: 4px;
}

/* ======== Responsive ======== */
@media (max-width: 768px) {
    .wcqr-whatsapp-button {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }

    .wcqr-toast {
        left: 20px;
        right: 20px;
        max-width: none;
        text-align: center;
    }

    .wcqr-floating-gdpr {
        left: 15px !important;
        right: 15px !important;
        max-width: none;
    }
}