/* ==========================================================================
   Fomaco Tabs – Frontend Styles
   ========================================================================== */

.fomacotabs_wrapper {
    --fomacotabs-accent: #0096B4;
    --fomacotabs-bg: #f5f7f8;
    --fomacotabs-border: #e2e6e9;
    --fomacotabs-text: #163C6C;
    --fomacotabs-text-muted: #5a6d7e;
    --fomacotabs-radius: 0;
    --fomacotabs-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%;
    margin: 1.5em 0;
}

/* ---- Item ---- */
.fomacotabs_item {
    border-bottom: 1px solid var(--fomacotabs-border);
}

.fomacotabs_item:first-child {
    border-top: 1px solid var(--fomacotabs-border);
}

/* ---- Header / Trigger ---- */
.fomacotabs_header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 18px 0px !important;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 16px;
    transition: background var(--fomacotabs-transition);
    font-size: 16px;
    line-height: 1.4;
    color: var(--fomacotabs-text);
}

.fomacotabs_wrapper .fomacotabs_header:hover,
.fomacotabs_wrapper .fomacotabs_header:focus {
    background: transparent !important;
    color: var(--fomacotabs-accent) !important;
    outline: none !important;
}

.fomacotabs_header:hover .fomacotabs_title,
.fomacotabs_header:focus .fomacotabs_title {
    
    color: var(--fomacotabs-accent) !important;
}

.fomacotabs_header:focus-visible {
    outline: 2px solid var(--fomacotabs-accent);
    outline-offset: -2px;
}

/* Active state title color */
.fomacotabs_item--open .fomacotabs_header .fomacotabs_title {
    color: var(--fomacotabs-accent);
}

/* ---- Icon ---- */
.fomacotabs_icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.fomacotabs_icon img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    opacity: 1;
    visibility: visible;
}

/* ---- Title ---- */
.fomacotabs_title {
    flex: 1;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
    white-space: normal;
    transition: color var(--fomacotabs-transition);
}

/* ---- Chevron ---- */
.fomacotabs_chevron {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--fomacotabs-text-muted);
    transition: transform var(--fomacotabs-transition), color var(--fomacotabs-transition);
}

.fomacotabs_item--open .fomacotabs_chevron {
    transform: rotate(180deg);
    color: var(--fomacotabs-accent);
}

/* ---- Panel ---- */
.fomacotabs_panel {
    overflow: hidden;
}

.fomacotabs_panel[hidden] {
    display: none;
}

/* ---- Content ---- */
.fomacotabs_content {
    padding: 4px 20px 24px 45px;
    
    line-height: 1.7;
    color: var(--fomacotabs-text);
}

.fomacotabs_content p {
    margin: 0 0 0.75em;
}

.fomacotabs_content p:last-child {
    margin-bottom: 0;
}



@media (max-width: 768px) {
    .fomacotabs_header {
        padding: 14px 16px;
        gap: 12px;
        font-size: 15px;
    }

    .fomacotabs_icon {
        width: 24px;
        height: 24px;
    }

    .fomacotabs_title {
        font-size: 15px;
    }

    .fomacotabs_content {
        padding: 2px 16px 20px 52px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .fomacotabs_header {
        padding: 12px 12px;
        gap: 10px;
        font-size: 1rem;
        align-items: flex-start;
        gap: 8px;
    }

    .fomacotabs_icon {
        width: 22px;
        height: 22px;
    }

    .fomacotabs_title {
        font-size: 1rem;
         min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        line-height: 1.3;
    }

    .fomacotabs_content {
        padding: 2px 12px 16px 30px;
        font-size: 1rem;
        line-height: 1.6;
    }
        .fomacotabs_chevron {
        align-self: flex-start;
        margin-top: 2px;
    }
}


