.coa-table-wrapper-86650c35 {
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    background-color: #FAFAFA;
    padding: 10px 20px;
    border-radius: 8px;
}

.coa-table-86650c35 {
    width: 100%;
    border-collapse: collapse;
    min-width: unset;
    font-family: inherit;
}

@media (min-width: 768px) {
    .coa-table-86650c35 {
        min-width: 600px;
    }
}

.coa-table-86650c35 th {
    text-align: left;
    padding: 16px 12px;
    font-size: 14px;
    text-transform: uppercase;
    color: #8C99A6;
    border-bottom: 1px solid #EAECEF;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.coa-table-86650c35 td {
    padding: 16px 12px;
    border-bottom: 1px solid #EAECEF;
    color: #718096;
    font-size: 14px;
    vertical-align: middle;
}

.coa-table-86650c35 tr:last-child td {
    border-bottom: none;
}

.coa-table-86650c35 .product-col {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: #2D3748;
}

.coa-table-86650c35 .product-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.coa-table-86650c35 .product-icon-wrap i {
    font-size: 16px;
}

.coa-table-86650c35 .product-icon-wrap svg {
    width: 16px;
    height: 16px;
}

.coa-table-86650c35 .purity-col {
    font-weight: 600;
}

.coa-table-btn-86650c35 {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    text-decoration: none;
    color: #2D3748;
    font-size: 13px;
    font-weight: 500;
    background-color: #ffffff;
    transition: all 0.2s ease;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
}

.coa-table-btn-86650c35:hover {
    border-color: #CBD5E0;
    background-color: #F7FAFC;
    color: #2D3748;
}

/* Modal Styles */
.coa-modal-86650c35 {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.coa-modal-86650c35.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.coa-modal-content-86650c35 {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.coa-modal-close-86650c35 {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
}

.coa-modal-close-86650c35:hover,
.coa-modal-close-86650c35:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.coa-modal-gallery-86650c35 {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.coa-modal-gallery-86650c35 img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/*
 * Column visibility is driven entirely by the per-breakpoint controls, which emit
 * `display: table-cell` or `display: none` from Elementor. Nothing here sets a display
 * value on .col-* so those rules never have to win a specificity fight.
 */

/* Mobile: stay a real table, just tighter. Product left, COA button right. */
@media (max-width: 767px) {
    /*
     * Mobile default: Product + COA only. This lives here rather than relying on the
     * controls' mobile_default, because Elementor does not write a control's default
     * value into the page data, so an untouched control emits no CSS at all. Picking
     * "Show" on mobile in the panel still wins -- that rule carries the element class,
     * so it outranks this one inside the same media query.
     */
    .coa-table-86650c35 th.col-purity,
    .coa-table-86650c35 td.col-purity,
    .coa-table-86650c35 th.col-endotoxin,
    .coa-table-86650c35 td.col-endotoxin,
    .coa-table-86650c35 th.col-heavy-metal,
    .coa-table-86650c35 td.col-heavy-metal,
    .coa-table-86650c35 th.col-lab,
    .coa-table-86650c35 td.col-lab,
    .coa-table-86650c35 th.col-date,
    .coa-table-86650c35 td.col-date {
        display: none;
    }

    .coa-table-wrapper-86650c35 {
        padding: 6px 12px;
    }
    .coa-table-86650c35 {
        table-layout: auto;
    }
    /* Tighter padding on mobile, but the heading size stays at the desktop 14px. */
    .coa-table-86650c35 th {
        padding: 12px 6px;
    }
    .coa-table-86650c35 td {
        padding: 14px 6px;
        font-size: 13px;
    }
    .coa-table-86650c35 .product-col {
        gap: 8px;
    }
    /* Keep the button column as narrow as its content and pinned right. */
    .coa-table-86650c35 th.col-coa,
    .coa-table-86650c35 td.col-coa {
        width: 1%;
    }
    .coa-table-86650c35 td.col-coa {
        text-align: right;
    }
    .coa-table-btn-86650c35 {
        padding: 8px 12px;
        font-size: 12px;
    }
}
