/* =========================================
   Foxco Features & Benefits Widget
   ========================================= */

.foxco-fb-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

/* ─── Layout: Left (side by side) ─── */
.foxco-fb-layout-left .foxco-fb-wrapper {
    flex-direction: row;
}

.foxco-fb-layout-left .foxco-fb-sidebar {
    flex: 0 0 240px;
    max-width: 240px;
    padding-right: 40px;
    box-sizing: border-box;
}

.foxco-fb-layout-left .foxco-fb-content {
    flex: 1;
    min-width: 0;
}

/* ─── Layout: Top (stacked) ─── */
.foxco-fb-layout-top .foxco-fb-wrapper {
    flex-direction: column;
}

.foxco-fb-layout-top .foxco-fb-sidebar {
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.foxco-fb-layout-top .foxco-fb-content {
    width: 100%;
}

/* ─── Headline ─── */
.foxco-fb-headline {
    margin: 0 0 20px 0;
    transition: opacity 0.25s ease;
    line-height: 1.2;
}

.foxco-fb-layout-top .foxco-fb-headline {
    margin: 0;
}

/* ─── Toggle Wrapper ─── */
.foxco-fb-toggle-wrapper {
    display: inline-flex;
    border-radius: 50px;
    padding: 4px;
    gap: 4px;
    overflow: hidden;
}

.foxco-fb-toggle-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    position: relative;
    line-height: 1.4;
}

.foxco-fb-toggle-btn:focus-visible {
    box-shadow: 0 0 0 2px rgba(232, 123, 53, 0.6);
}

/* ─── Dots ─── */
.foxco-fb-dots {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    justify-content: flex-start;
}

.foxco-fb-layout-top .foxco-fb-dots {
    margin-top: 0;
    margin-left: 8px;
}

.foxco-fb-dot {
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.foxco-fb-dot:hover {
    transform: scale(1.3);
}

/* ─── Content Panels ─── */
.foxco-fb-content {
    position: relative;
}

.foxco-fb-panel {
    display: none;
}

.foxco-fb-panel.active {
    display: block;
}

/* ─── Grid ─── */
.foxco-fb-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* ─── Items ─── */
.foxco-fb-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-sizing: border-box;
    transition: transform 0.25s ease;
}

.foxco-fb-item:hover {
    transform: translateY(-2px);
}

.foxco-fb-item-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-top: 2px;
}

.foxco-fb-item-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.foxco-fb-item-title {
    font-weight: 600;
    line-height: 1.4;
}

.foxco-fb-item-desc {
    margin: 0;
    line-height: 1.6;
    opacity: 0.85;
}

/* ═══════════════════════════════════
   Animations
   ═══════════════════════════════════ */

/* Fade */
.foxco-fb-wrapper[data-animation="fade"] .foxco-fb-item {
    opacity: 0;
}
.foxco-fb-wrapper[data-animation="fade"] .foxco-fb-panel.active .foxco-fb-item {
    animation: foxcoFbFadeIn var(--foxco-fb-duration, 0.35s) ease forwards;
    animation-delay: calc(var(--item-index, 0) * var(--foxco-fb-stagger, 0.06s));
}
@keyframes foxcoFbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Slide Up */
.foxco-fb-wrapper[data-animation="slide-up"] .foxco-fb-item {
    opacity: 0;
    transform: translateY(20px);
}
.foxco-fb-wrapper[data-animation="slide-up"] .foxco-fb-panel.active .foxco-fb-item {
    animation: foxcoFbSlideUp var(--foxco-fb-duration, 0.35s) ease forwards;
    animation-delay: calc(var(--item-index, 0) * var(--foxco-fb-stagger, 0.06s));
}
@keyframes foxcoFbSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Zoom */
.foxco-fb-wrapper[data-animation="zoom"] .foxco-fb-item {
    opacity: 0;
    transform: scale(0.85);
}
.foxco-fb-wrapper[data-animation="zoom"] .foxco-fb-panel.active .foxco-fb-item {
    animation: foxcoFbZoom var(--foxco-fb-duration, 0.35s) ease forwards;
    animation-delay: calc(var(--item-index, 0) * var(--foxco-fb-stagger, 0.06s));
}
@keyframes foxcoFbZoom {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

/* ═══════════════════════════════════
   Responsive
   ═══════════════════════════════════ */
@media (max-width: 1024px) {
    .foxco-fb-layout-left .foxco-fb-sidebar {
        flex: 0 0 200px;
        max-width: 200px;
        padding-right: 24px;
    }
}

@media (max-width: 767px) {
    .foxco-fb-layout-left .foxco-fb-wrapper {
        flex-direction: column;
    }

    .foxco-fb-layout-left .foxco-fb-sidebar {
        flex: none;
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 24px;
    }

    .foxco-fb-grid {
        grid-template-columns: 1fr !important;
    }
}
