/**
 * Foxco Top Banner Widget Styles
 * Version: 1.0.0
 */

.foxco-top-banner {
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.foxco-banner-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.foxco-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.foxco-banner-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.foxco-banner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.foxco-banner-icon svg {
    display: block;
}

.foxco-banner-text {
    flex: 1;
    line-height: 1.5;
}

.foxco-banner-button {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-weight: 600;
    white-space: nowrap;
}

.foxco-banner-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.foxco-banner-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 15px;
    flex-shrink: 0;
    opacity: 0.8;
}

.foxco-banner-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.foxco-banner-close svg {
    display: block;
}

/* Animation Classes */
.foxco-banner-slide-down {
    animation: foxcoBannerSlideDown var(--animation-duration, 500ms) ease-out forwards;
}

.foxco-banner-fade-in {
    animation: foxcoBannerFadeIn var(--animation-duration, 500ms) ease-out forwards;
}

.foxco-banner-fade-slide {
    animation: foxcoBannerFadeSlide var(--animation-duration, 500ms) ease-out forwards;
}

/* Closing Animation */
.foxco-banner-closing.foxco-banner-slide-down,
.foxco-banner-closing.foxco-banner-fade-slide {
    animation: foxcoBannerSlideUp var(--animation-duration, 500ms) ease-in forwards;
}

.foxco-banner-closing.foxco-banner-fade-in {
    animation: foxcoBannerFadeOut var(--animation-duration, 500ms) ease-in forwards;
}

/* Keyframe Animations */
@keyframes foxcoBannerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes foxcoBannerSlideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes foxcoBannerFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes foxcoBannerFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes foxcoBannerFadeSlide {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .foxco-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .foxco-banner-button {
        width: 100%;
        text-align: center;
    }
    
    .foxco-banner-close {
        position: absolute;
        top: 10px;
        right: 10px;
        margin-left: 0;
    }
    
    .foxco-banner-inner {
        padding-right: 40px;
    }
}

/* Elementor Editor Specific */
.elementor-editor-active .foxco-top-banner {
    display: block !important;
    position: relative !important;
}

.elementor-editor-active .foxco-banner-sticky {
    position: relative !important;
}
