/**
 * Frontend Styles for Diji WooBooster Pro
 */

/* Infinite Marquee Announcement Bar */
.diji-marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 999;
}

.diji-marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: diji-marquee 25s linear infinite;
}

.diji-marquee-content:hover {
    animation-play-state: paused;
}

@keyframes diji-marquee {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* WhatsApp Floating Agent Chat Widget */
.diji-whatsapp-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99999;
    font-family: inherit;
}

.diji-wa-button {
    background: #25d366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.diji-wa-button:hover {
    transform: scale(1.08);
}

.diji-wa-card {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 300px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none;
    border: 1px solid #e5e7eb;
}

.diji-wa-card-header {
    background: #075e54;
    color: #ffffff;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.diji-wa-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.diji-wa-info h4 {
    margin: 0;
    font-size: 15px;
    color: #ffffff;
}

.diji-wa-info p {
    margin: 2px 0 0 0;
    font-size: 11px;
    color: #a7f3d0;
}

.diji-wa-card-body {
    padding: 16px;
    background: #efeae2;
}

.diji-wa-bubble {
    background: #ffffff;
    padding: 12px 14px;
    border-radius: 0 12px 12px 12px;
    font-size: 13px;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.diji-wa-chat-link {
    display: block;
    margin-top: 14px;
    background: #25d366;
    color: #ffffff !important;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none !important;
}

/* Shopify Sales Pop */
.diji-sales-pop {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    border: 1px solid #e5e7eb;
    max-width: 320px;
    animation: diji-slide-up 0.5s ease;
}

@keyframes diji-slide-up {
    from { transform: translateY(50px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* Sticky Add to Cart Bar */
.diji-sticky-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
}

/* Mesafeli Satış Sözleşmesi Box - Guaranteed Theme Override */
.diji-distance-sales-box {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 16px 0 20px 0 !important;
    padding: 14px 16px !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    color: #1e293b !important;
    z-index: 9999 !important;
    position: relative !important;
    clear: both !important;
}

.diji-distance-sales-box label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    cursor: pointer !important;
    color: #1e293b !important;
    margin: 0 !important;
}

.diji-distance-sales-box input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin-top: 2px !important;
    cursor: pointer !important;
    accent-color: #4f46e5 !important;
}

