/**
 * FEF Text Marquee — base styles.
 * All colors/spacing/typography are overridable via Elementor style
 * controls in the widget panel; these are sane, minimal defaults.
 */

.fef-tmq-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 50px;
    overflow: hidden;
    box-sizing: border-box;
}
.fef-tmq-wrap *,
.fef-tmq-wrap *::before,
.fef-tmq-wrap *::after {
    box-sizing: border-box;
}

.fef-tmq-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.fef-tmq-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    will-change: transform;
    white-space: nowrap;
}

/* No-loop mode (too few items, or looping disabled) — center statically */
.fef-tmq-no-loop .fef-tmq-track {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Item (icon + text group) ── */
.fef-tmq-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}
a.fef-tmq-item {
    cursor: pointer;
    transition: opacity 0.15s ease;
}
a.fef-tmq-item:hover {
    opacity: 0.8;
}

.fef-tmq-text {
    color: #1e293b;
    font-size: 15px;
    line-height: 1.4;
    display: inline-block;
}

.fef-tmq-icon {
    color: #3b82f6;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Arrows ── */
.fef-tmq-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #1e293b;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    z-index: 2;
    transition: background 0.15s ease, transform 0.1s ease;
}
.fef-tmq-arrow:hover {
    background: #f1f5f9;
}
.fef-tmq-arrow:active {
    transform: scale(0.94);
}
.fef-tmq-arrow-left {
    margin-right: 8px;
}
.fef-tmq-arrow-right {
    margin-left: 8px;
}

/* ── Reduced motion — freeze the marquee, keep content readable ── */
@media (prefers-reduced-motion: reduce) {
    .fef-tmq-track {
        transition: none !important;
    }
}