/* Genpar WhatsApp Widget & Product Button Styles */

.genpar-wa-widget-wrap {
    position: fixed;
    bottom: 25px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.genpar-wa-pos-right {
    right: 25px;
}

.genpar-wa-pos-left {
    left: 25px;
}

/* Floating Button */
.genpar-wa-floating-btn {
    position: relative;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.genpar-wa-floating-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.genpar-wa-btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Pulse Animation */
.genpar-wa-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.7;
    animation: genpar-wa-ripple 2s infinite ease-out;
    z-index: 1;
}

@keyframes genpar-wa-ripple {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Tooltip */
.genpar-wa-tooltip {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #1e293b;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.genpar-wa-pos-right .genpar-wa-tooltip {
    right: 72px;
}

.genpar-wa-pos-left .genpar-wa-tooltip {
    left: 72px;
}

.genpar-wa-floating-btn:hover .genpar-wa-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Chat Box */
.genpar-wa-chatbox {
    position: absolute;
    bottom: 75px;
    width: 350px;
    max-width: calc(100vw - 40px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0;
    transform-origin: bottom right;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.25s ease;
    box-sizing: border-box;
}

.genpar-wa-pos-right .genpar-wa-chatbox {
    right: 0;
    transform-origin: bottom right;
}

.genpar-wa-pos-left .genpar-wa-chatbox {
    left: 0;
    transform-origin: bottom left;
}

.genpar-wa-chatbox.genpar-wa-active {
    transform: scale(1);
    opacity: 1;
}

/* Header */
.genpar-wa-chat-header {
    background: #093a7a;
    color: #ffffff;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.genpar-wa-avatar-wrap {
    position: relative;
}

.genpar-wa-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1152a5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.genpar-wa-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #25D366;
    border: 2px solid #093a7a;
    border-radius: 50%;
}

.genpar-wa-header-info {
    flex: 1;
}

.genpar-wa-agent-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.genpar-wa-agent-title {
    font-size: 12px;
    color: #cbd5e1;
    display: block;
    margin-top: 2px;
}

.genpar-wa-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.genpar-wa-close-btn:hover {
    opacity: 1;
}

/* Body */
.genpar-wa-chat-body {
    padding: 16px;
    background: #f8fafc;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 14px 14px;
    max-height: 280px;
    overflow-y: auto;
}

.genpar-wa-message-bubble {
    background: #ffffff;
    padding: 12px 14px;
    border-radius: 12px 12px 12px 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 14px;
    position: relative;
}

.genpar-wa-message-bubble p {
    margin: 0;
    font-size: 13.5px;
    color: #334155;
    line-height: 1.45;
}

.genpar-wa-msg-time {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    text-align: right;
    margin-top: 4px;
}

.genpar-wa-quick-title {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.genpar-wa-quick-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.genpar-wa-quick-btn {
    display: block;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    color: #1e293b;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.genpar-wa-quick-btn:hover {
    background: #eef4fc;
    border-color: #093a7a;
    color: #093a7a;
    transform: translateX(4px);
}

/* Footer */
.genpar-wa-chat-footer {
    padding: 12px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.genpar-wa-input-row {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 24px;
    padding: 4px 6px 4px 14px;
}

.genpar-wa-input-row input {
    flex: 1;
    background: transparent;
    border: none !important;
    outline: none !important;
    font-size: 13px;
    color: #333;
    padding: 6px 0;
}

.genpar-wa-input-row button {
    background: #25D366;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s;
}

.genpar-wa-input-row button:hover {
    background: #20b859;
}

/* Single Product WhatsApp Button */
.genpar-wa-product-btn-wrap {
    margin-top: 12px;
    margin-bottom: 12px;
    width: 100%;
}

.genpar-wa-product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: #ffffff !important;
    font-size: 14.5px;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.25);
}

.genpar-wa-product-btn:hover {
    background: #20b859;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    transform: translateY(-1px);
}

.genpar-wa-no-price .genpar-wa-product-btn {
    background: #093a7a;
    box-shadow: 0 3px 10px rgba(9, 58, 122, 0.25);
}

.genpar-wa-no-price .genpar-wa-product-btn:hover {
    background: #062650;
}

@media (max-width: 768px) {
    .genpar-wa-hide-mobile {
        display: none !important;
    }
    .genpar-wa-widget-wrap {
        bottom: 75px; /* Partdo mobil alt barın üstünde kalması için */
        right: 15px;
    }
    .genpar-wa-floating-btn {
        width: 52px;
        height: 52px;
    }
}
