/* ============================================================
   COA LIBRARY CSS
   Paste this whole file in the Custom CSS panel (same place as
   the earlier CSS)
   ============================================================ */

/* .pb-coa-library { max-width: 1100px; margin: 0 auto; } */

/* Search bar */
.pb-coa-search {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.pb-coa-search-field { flex: 1; min-width: 220px; }
.pb-coa-search-field label {
    display: block;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6B7684;
    margin-bottom: 6px;
    font-family: "good-times", Sans-serif;
}
.pb-coa-search-field input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 14px;
    box-sizing: border-box;
}
.pb-coa-search-field input::placeholder {
    font-family: "Inter", Sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: normal;
    color: #94a3b8;
    opacity: 1;
}
.pb-coa-search-btn {
    background: #CA3E34;
    color: #fff;
    border: 1px solid #CA3E34;
    border-radius: 999px;
    padding: 12px 28px;
    font-weight: 600;
    cursor: pointer;
    font-family: "Inter", Sans-serif;
}
.pb-coa-search-btn:hover {
    background-color: transparent;
    color: #CA3E34;
}
.pb-coa-clear {
    color: #1e293b;
    text-decoration: underline;
    font-size: 14px;
    padding-bottom: 12px;
}

/* Heading */
.pb-coa-heading { font-size: 26px; font-weight: 400; color: #444444; margin: 30px 0 4px; font-family: "good-times", Sans-serif; }
.pb-coa-count { color: #64748b; font-size: 14px; margin-bottom: 16px; font-family: "Inter", Sans-serif; }

/* Table */
.pb-coa-table {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}
.pb-coa-table-head {
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr 1.5fr;
    background: #f8fafc;
    padding: 14px 24px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6B7684;
    font-family: "good-times", Sans-serif;
}
.pb-coa-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr 1.5fr;
    align-items: center;
    padding: 18px 24px;
    border-top: 1px solid #f1f5f9;
}

.pb-coa-product { display: flex; align-items: center; gap: 12px; }
.pb-coa-icon {
    width: 34px; height: 34px;
    background: #eff6ff;
    color: #1e3a8a;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
/* .pb-coa-icon img { width: 18px; height: 18px; object-fit: contain; } */
.pb-coa-name { font-weight: 400; color: #444444; font-family: "good-times", Sans-serif; }
.pb-coa-subtitle { font-size: 13px; color: #6B7684; font-family: "Inter", Sans-serif; }

.pb-coa-batches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pb-coa-badge {
    background: #f1f5f9;
    color: #444444;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: "Inter", Sans-serif;
    font-weight: 500;
}
.pb-coa-viewall { font-size: 13px; color: #1e3a8a; text-decoration: underline; }

.pb-coa-coming-soon-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 10px 14px;
}
.pb-coa-coming-soon-icon { font-size: 16px; line-height: 1.4; }
.pb-coa-coming-soon-title { font-weight: 600; font-size: 13px; color: #444444; font-family: "Inter", Sans-serif; }
.pb-coa-coming-soon-desc { font-size: 12px; color: #94a3b8; font-family: "Inter", Sans-serif; }

.pb-coa-latest div:first-child { font-weight: 400; color: #6B7684; font-size: 14px; font-family: "good-times", Sans-serif; }
.pb-coa-muted { color: #6B7684; font-size: 13px; font-family: "Inter", Sans-serif; }

.pb-coa-action { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.pb-coa-view { color: #CA3E34; font-weight: 600; text-decoration: none; font-size: 14px; display: inline-flex; align-items: center; }
.pb-coa-view img { margin-right: 5px; width: 14px; height: 14px; object-fit: contain; }
.pb-coa-download { color: #1e293b; text-decoration: none; display: inline-flex; align-items: center; }
.pb-coa-download img { width: 14px; height: 14px; object-fit: contain; }
.pb-coa-coming-soon {
    background: #F6F8FC;
    color: #6B7684;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 999px;
	font-family: "Inter", Sans-serif;	
}

.pb-coa-empty { padding: 40px; text-align: center; color: #94a3b8; }


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: keep the grid table but tighten spacing/columns */
@media (max-width: 900px) {
    .pb-coa-table-head,
    .pb-coa-row {
        grid-template-columns: 1.8fr 1.6fr 1.3fr 1.3fr;
        padding: 16px;
    }
}

/* Mobile: stack rows into cards, hide the table head,
   add small labels above each field using the fixed column
   order (Product, Batches, Latest, Action) so context isn't lost */
@media (max-width: 768px) {
    .pb-coa-search {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .pb-coa-search-field { min-width: 0; }
    .pb-coa-search-btn { width: 100%; }
    .pb-coa-clear { padding-bottom: 0; text-align: center; }

    .pb-coa-heading { font-size: 21px; }

    .pb-coa-table-head { display: none; }

    .pb-coa-table { border-radius: 12px; }

    .pb-coa-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 16px;
    }

    .pb-coa-row > div { position: relative; }

    /* Small uppercase label above each field on mobile */
    .pb-coa-batches::before,
    .pb-coa-latest::before,
    .pb-coa-action::before {
        display: block;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        color: #94a3b8;
        margin-bottom: 4px;
        font-family: "Inter", Sans-serif;
    }
    .pb-coa-batches::before { content: "Available Batches"; }
    .pb-coa-latest::before { content: "Latest COA"; }
    .pb-coa-action::before { content: "Action"; }

    .pb-coa-action { justify-content: flex-start; }
}

@media (max-width: 420px) {
    .pb-coa-name { font-size: 15px; }
    .pb-coa-search-field input,
    .pb-coa-search-btn { font-size: 13px; padding: 11px 14px; }
}
.pb-coa-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
.pb-coa-chip { padding: .25rem .7rem; border-radius: 999px; background: #102b91; color: #fff; font-size: .85rem; text-decoration: none; }
.pb-coa-docs { list-style: none; margin: .5rem 0 1rem; padding: 0; }
.pb-coa-docs li { padding: .45rem 0; border-bottom: 1px solid #e5e7eb; }
.pb-coa-type { margin-left: .5rem; font-size: .75rem; color: #6b7280; }
.pb-coa-soon { color: #6b7280; font-style: italic; }
.pb-coa-product-section, .pb-coa-batch-page { margin: 2rem auto; max-width: 960px; }
