/**
 * Ardux Global Widget Styles
 * 
 * Horizontal/wide layout for countdown timer widget
 * Color scheme matches ardux_checkout.css
 */

.ardux-global-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #d13431 0%, #b02d2a 100%);
    border: none;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 6px 20px rgba(209, 52, 49, 0.4), 0 3px 6px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow: hidden;
    animation: slideInUp 0.5s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ardux-global-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(209, 52, 49, 0.5), 0 4px 8px rgba(0, 0, 0, 0.2);
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ardux-widget-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 16px;
    color: #ffffff;
}

.ardux-widget-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
}

.ardux-widget-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: ardux-icon-glow 2s ease-in-out infinite;
}

@keyframes ardux-icon-glow {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    50% {
        opacity: 0.85;
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0);
    }
}

.ardux-widget-icon svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

.ardux-widget-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    flex-shrink: 0;
}

.ardux-widget-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ardux-widget-subtitle {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
    line-height: 1.2;
}

.ardux-countdown-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 6px 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    margin-left: auto;
    align-self: center;
}

.ardux-countdown-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
    white-space: nowrap;
}

.ardux-countdown-display {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 1320px) {
    .ardux-global-widget {
        bottom: 70px;
        /* Position above WhatsApp button which is at 50px */
    }
}

@media (max-width: 768px) {
    .ardux-global-widget {
        bottom: 70px;
        right: 15px;
    }

    .ardux-widget-content {
        gap: 10px;
        padding: 8px 12px;
    }

    .ardux-widget-icon {
        width: 32px;
        height: 32px;
    }

    .ardux-widget-icon svg {
        width: 18px;
        height: 18px;
    }

    .ardux-widget-title {
        font-size: 12px;
    }

    .ardux-widget-subtitle {
        font-size: 9px;
    }

    .ardux-countdown-timer {
        gap: 5px;
        padding: 5px 8px;
    }

    .ardux-countdown-label {
        font-size: 9px;
    }

    .ardux-countdown-display {
        font-size: 16px;
    }
}

/* Mobile - position above full-width WhatsApp button */
@media (max-width: 771px) {
    .ardux-global-widget {
        bottom: 60px;
        /* Position above WhatsApp button which is at bottom: 0 */
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .ardux-widget-content {
        gap: 8px;
        padding: 8px 10px;
    }

    .ardux-widget-icon {
        width: 28px;
        height: 28px;
    }

    .ardux-widget-icon svg {
        width: 16px;
        height: 16px;
    }

    .ardux-widget-title {
        font-size: 11px;
    }

    .ardux-widget-subtitle {
        font-size: 8px;
    }

    .ardux-countdown-timer {
        padding: 4px 7px;
    }

    .ardux-countdown-label {
        font-size: 8px;
    }

    .ardux-countdown-display {
        font-size: 14px;
    }
}