/* =============================================================
   PRIME PEPTIDES UK - CERTIFICATE OF ANALYSIS UI
   The featured latest-batch card on product/hub pages, the
   download actions in batch tables, and the buy-box CoA link.
   ============================================================= */

/* ---------- Buy-box quick link ---------- */
.pdp__coa-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 0;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--cyan);
    border-radius: var(--r);
    background: var(--cyan-tint);
    text-decoration: none;
    transition: border-color 0.18s ease, transform 0.18s ease;
}
.pdp__coa-link:hover {
    border-color: var(--cyan);
    transform: translateY(-1px);
}
.pdp__coa-link > svg:first-child {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    color: var(--cyan);
}
.pdp__coa-link > span {
    flex: 1 1 auto;
    min-width: 0;
}
.pdp__coa-link b {
    display: block;
    font-family: var(--grot);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}
.pdp__coa-link b + span {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
    color: var(--muted);
}
.pdp__coa-link-arrow {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    color: var(--cyan);
}

/* ---------- Featured latest-batch card ---------- */
.pp-coa-latest {
    margin: 20px 0 0;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--sh-sm);
    overflow: hidden;
}
.pp-coa-latest__badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    background-color: var(--navy);
    background-image: var(--hexes), linear-gradient(100deg, var(--navy-deep), var(--navy-2));
    color: #fff;
    font-family: var(--grot);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.pp-coa-latest__badge svg { width: 15px; height: 15px; color: var(--cyan); }

.pp-coa-latest__grid {
    display: grid;
    gap: 20px;
    padding: 20px;
}
@media (min-width: 720px) {
    .pp-coa-latest__grid {
        grid-template-columns: minmax(0, 1fr) 220px;
        align-items: center;
        gap: 26px;
    }
}

.pp-coa-latest__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px 20px;
}
.pp-coa-fact--wide { grid-column: 1 / -1; }
.pp-coa-fact span {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--faint);
    margin-bottom: 3px;
}
.pp-coa-fact b {
    font-family: var(--grot);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
}
.pp-coa-fact__purity { color: var(--green) !important; }

.pp-coa-latest__actions {
    display: grid;
    gap: 10px;
    justify-items: stretch;
}
.pp-coa-latest__actions .btn { justify-content: center; }
.pp-coa-latest__dl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1px solid var(--border-dark);
    border-radius: var(--r);
    background: var(--surface);
    font-family: var(--grot);
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    transition: border-color 0.16s ease, color 0.16s ease;
}
.pp-coa-latest__dl:hover { border-color: var(--red); color: var(--red); }
.pp-coa-latest__dl svg { width: 14px; height: 14px; }
.pp-coa-latest__note {
    margin: 0;
    padding: 13px 15px;
    border-radius: var(--r);
    background: var(--bg);
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--muted);
}

/* ---------- Download action in batch tables ---------- */
.pp-coa-dl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border: 1px solid var(--border-dark);
    border-radius: 999px;
    background: var(--surface);
    font-family: var(--grot);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--red);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.pp-coa-dl:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}
.pp-coa-dl svg { width: 13px; height: 13px; }
.pp-coa-dl b {
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--red-tint);
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    color: var(--red);
    transition: background 0.16s ease, color 0.16s ease;
}
.pp-coa-dl:hover b { background: rgba(255, 255, 255, 0.22); color: #fff; }
.pp-coa-none {
    font-size: 0.76rem;
    color: var(--faint);
    white-space: nowrap;
}
