.shipping_tabs {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.tabs_content {
    display: grid;
    grid-template-columns: .7fr 1fr;
    width: 100%;
    gap: 10%;
}

.tab_infos {
    display: flex;
    flex-direction: column;
}

.tab_item {
    border-bottom: 1px solid #8095b333;
    padding: 25px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab_item.active {
    background: #F2F4FA;
}

.tab_header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.tab_header img.tab_icon {
    width: 21px;
    height: 21px;
    object-fit: contain;
}

.tab_header h3 {
    margin: 0;
    padding: 0;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.2em;
    letter-spacing: -0.03em;
    color: #003366;
}

.tab_body {
    display: none;
    margin-top: 9px;
    color: #444;

    & p {
        color: #767d95;
        font-family: 'Inter', sans-serif;
        font-size: 17px;
        font-weight: 400;
        line-height: 1.2em;
        letter-spacing: 0;
    }

    & img.mobile_tab_img {
        display: none;
    }
}

.btn_tab {
    background: #fff;
    color: #767D95;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3em;
    letter-spacing: 0.04em;
    padding: 8px 11px;
    margin-top: 25px !important;
    display: inline-block;
    transition: 300ms;

    &:hover {
        background: #2CA8DD;
        color: #fff;
    }
}

.tab_image {
    border-radius: 15px;
    height: fit-content;
    position: sticky;
    top: 130px;

    & .tab_image_inner {
        background: #002C67;
        border-radius: 16px;
        aspect-ratio: 1508 / 1356;
        height: 100%;
    }
}

.tab_image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}


@media (max-width: 767px) {
    .shipping_tabs {
        display: block;
    }

    .tabs_content {
        display: block;
    }

    .tab_infos {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .tab_item {
        padding: 20px 0;
        border-radius: 0;
    }

    .tab_item:first-of-type {
        border-top: 1px solid #8095b333;
    }

    .tab_item.active {
        background: transparent;

        & .tab_header::after {
            rotate: 180deg;
            top: auto;
            bottom: 50%;
        }
    }

    .tab_header {
        position: relative;
        padding-right: 20px;

        &::after {
            content: '';
            background: url('data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"> <path d="M14.702 4 16 5.3l-8.015 8.001L0 5.33l1.298-1.3 6.687 6.675L14.702 4Z" fill="%23003366"></path> </svg>');
            background-position: center;
            background-repeat: no-repeat;
            background-size: contain;
            height: 16px;
            width: 16px;
            position: absolute;
            top: 50%;
            right: 0;
            transform: translateY(-50%);
            transition: 500ms;
        }
    }

    .tab_body {
        display: none;
        margin-top: 12px;
    }

    #page-container #et-boc #et-main-area #main-content .shipping_tabs>.tabs_content>.tab_infos>.tab_item>.tab_header>h3 {
        font-size: 18px !important;
    }

    .tab_header img.tab_icon {
        width: 18px;
        height: 18px;
    }

    .tab_body p {
        font-size: 14px;
        line-height: 1.4em;
    }

    .tab_body .btn_tab {
        display: inline-block;
        margin-top: 18px !important;
        padding: 0;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    /* On cache la colonne d’image desktop */
    .tab_image {
        display: none;
    }

    /* Image intégrée à chaque bloc actif */
    .tab_body img.mobile_tab_img {
        width: 100%;
        border-radius: 10px;
        margin-top: 15px;
    }
}