@charset "utf-8";
/* ================================================================
   FOOD REGULATION COMPARISON
   ================================================================ */

.food-regulations {
    width: 100%;
    margin: 35px 0;
}


/* ------------------------------------------------
   Header
   ------------------------------------------------ */

.food-regulations-header {
    margin-bottom: 22px;
}

.food-regulations-header h2 {
    margin: 0 0 8px 0;
}

.food-regulations-header p {
    margin: 0;
    line-height: 1.6;
    color: #666;
}


/* ------------------------------------------------
   Desktop table
   ------------------------------------------------ */

.food-table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #fff;
    background: #fff;
}

.food-comparison-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    font-size: 14px;
}


/* Table header */

.food-comparison-table thead th {
    padding: 14px 12px;
    background: #333;
    color: #fff;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    border-right: 1px solid rgba(255,255,255,.15);

}

.food-comparison-table thead th:first-child,
.food-comparison-table thead th:nth-child(2) {
    text-align: left;
}

.food-comparison-table thead th:last-child {
    border-right: 0;
}

.country-flag {
    display: inline-block;
    margin-right: 4px;
}


/* Table body */

.food-comparison-table tbody td {
    padding: 15px 12px;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: middle;
    text-align: center;
}

.food-comparison-table tbody tr:last-child td {
    border-bottom: 1px solid #ccc;
}

.food-comparison-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.food-comparison-table tbody tr:hover {
    background: #f4f4f4;
}


/* Ingredient */

.food-comparison-table .food-ingredient {
    min-width: 160px;
    text-align: left;
}

.food-ingredient strong {
    display: block;
    font-size: 15px;
}

.food-code {
    display: inline-block;
    margin-top: 4px;
    color: #777;
    font-size: 12px;
}


/* Use */

.food-comparison-table .food-use {
    min-width: 240px;
    max-width: 310px;
    text-align: left;
    line-height: 1.5;
    color: #2a3744;
}


/* ------------------------------------------------
   Status badges
   ------------------------------------------------ */

.food-status {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 600;
    white-space: nowrap;
}

.food-status.allowed {
    background: #b0c19b;
    color: #2a3744;
}

.food-status.restricted {
    background: #f3d796;
    color: #2a3744;
}

.food-status.not-allowed {
    background: #eeb799;
    color: #2a3744;
}


/* ------------------------------------------------
   Legend
   ------------------------------------------------ */

.food-table-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 16px;
    font-size: 12px;
    color: #666;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}


/* ------------------------------------------------
   Note
   ------------------------------------------------ */

.food-table-note {
    margin-top: 18px;
    padding: 15px 18px;
    border-left: 3px solid #ccc;
    background: #f7f7f7;
    color: #666;
    font-size: 12px;
    line-height: 1.6;
}

.food-table-note p {
    margin: 4px 0 0 0;
}

.food-review-date {
    margin-top: 10px !important;
    font-size: 11px;
    color: #888;
}


/* ================================================================
   MOBILE CARDS
   ================================================================ */

.food-mobile-cards {
    display: none;
}


/* ================================================================
   MOBILE
   ================================================================ */

@media (max-width: 767px) {

    .food-regulations {
        margin: 25px 0;
    }


    /* Hide desktop table */

    .food-table-container {
        display: none;
    }


    /* Show cards */

    .food-mobile-cards {
        display: block;
    }


    .food-card {
        margin-bottom: 15px;
        padding: 17px;
        border: 1px solid #ddd;
        border-radius: 6px;
        background: #fff;
    }


    /* Card header */

    .food-card-header {
        padding-bottom: 12px;
        border-bottom: 1px solid #e5e5e5;
    }

    .food-card-header h3 {
        display: inline;
        margin: 0;
        font-size: 17px;
    }

    .food-card-header .food-code {
        margin-left: 6px;
    }


    /* Primary use */

    .food-card-use {
        padding: 13px 0;
        border-bottom: 1px solid #e5e5e5;
    }

    .food-card-label {
        display: block;
        margin-bottom: 4px;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .4px;
        color: #888;
    }

    .food-card-use p {
        margin: 0;
        font-size: 13px;
        line-height: 1.5;
        color: #555;
    }


    /* Countries */

    .food-card-countries {
        padding-top: 5px;
    }

    .food-country {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .food-country:last-child {
        border-bottom: 0;
    }

    .food-country-name {
        font-size: 13px;
        color: #444;
    }


    /* Legend */

    .food-table-legend {
        display: block;
        margin-top: 18px;
    }

    .legend-item {
        margin-bottom: 8px;
    }


    /* Note */

    .food-table-note {
        margin-top: 15px;
        padding: 12px 14px;
    }

}