/* Exactopep COA Manager: self-contained library and accessible PDF dialog. */
.epcoa-library{max-width:1180px;margin:50px auto 100px;padding:0 24px;color:#1B2B31;font-family:inherit}
.epcoa-library-header{padding:45px clamp(25px,5vw,65px);background:linear-gradient(115deg,#1B2B31,#20383D 55%,#357B7D);border-radius:15px;color:#fff}
.epcoa-library-header h1{color:#fff;font-size:clamp(2.6rem,5vw,4.6rem);line-height:1.08;margin:10px 0 18px}
.epcoa-library-header p:not(.epcoa-kicker){max-width:680px;font-size:1rem;color:#d4e7e7;margin:0}
.epcoa-kicker{font-weight:850;letter-spacing:.13em;color:#a3e1dc;font-size:.76rem}
.epcoa-search{display:flex;flex-direction:column;gap:10px;margin:32px 0 22px}
.epcoa-search label{font-weight:750;color:#1B2B31}
.epcoa-search input{width:100%;font:inherit;padding:14px 18px;border:1px solid #bdd6d3;border-radius:8px;background:#fff;color:#1B2B31}
.epcoa-search input:focus{outline:2px solid #357B7D;outline-offset:2px}
.epcoa-results{border:1px solid #D4E4E2;border-radius:11px;overflow-x:auto;background:#fff}
.epcoa-table{width:100%;border-collapse:collapse;text-align:left;font-size:.9rem}
.epcoa-table th{background:#E2EEEE;color:#1B2B31;font-size:.72rem;letter-spacing:.08em;text-transform:uppercase}
.epcoa-table td,.epcoa-table th{padding:18px;border-bottom:1px solid #D4E4E2}
.epcoa-table tr:last-child td{border-bottom:0}
.epcoa-table .epcoa-record[hidden]{display:none!important}
.epcoa-view{background:#357B7D;color:#fff;border:0;border-radius:7px;padding:10px 15px;cursor:pointer;font-size:.82rem;font-weight:750;white-space:nowrap}
.epcoa-view:hover,.epcoa-view:focus-visible{background:#286365;color:#fff}
#epcoa-no-results{padding:22px;color:#546D70}
.epcoa-small{color:#546D70;font-size:.82rem;margin-top:17px}
.epcoa-dialog{position:fixed;inset:0;margin:auto;border:0;border-radius:14px;width:min(960px,calc(100vw - 25px));height:min(86vh,820px);max-height:95vh;max-width:95vw;padding:0;overflow:hidden;background:#fff;color:#1B2B31;box-shadow:0 28px 100px rgba(0,0,0,.36)}
.epcoa-dialog::backdrop{background:rgba(7,26,35,.76)}
.epcoa-modal-head{height:70px;padding:18px 23px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #D4E4E2;background:#fff}
.epcoa-modal-head strong{font-size:1rem;color:#1B2B31}
.epcoa-close{font:inherit;font-size:1.6rem;line-height:1;cursor:pointer;border:0;background:transparent;color:#1B2B31;padding:6px 11px}
.epcoa-modal-body{height:calc(100% - 70px);display:flex;flex-direction:column;overflow:auto;padding:14px 21px 18px}
.epcoa-doc-identity{font-size:.87rem;font-weight:750;color:#1B2B31;margin:0 0 2px}
.epcoa-doc-source{font-size:.72rem;color:#546D70;margin:0 0 10px}
.epcoa-frame{flex:1;min-height:300px;width:100%;border:1px solid #D4E4E2;border-radius:5px;background:#fff}
.epcoa-newtab{display:block;margin-top:10px;color:#357B7D!important;font-size:.8rem;font-weight:750;text-align:center;padding:8px}
.epcoa-doc-list{display:grid;gap:10px;margin:12px 0}
.epcoa-doc-select{padding:16px;text-align:left;border:1px solid #D4E4E2;border-radius:9px;background:#EFF7F5;color:#1B2B31;cursor:pointer;font-weight:700}
.epcoa-doc-select:hover{background:#E2EEEE}
.epcoa-doc-instruction{margin:0 0 10px;font-size:.85rem;color:#546D70}
@media(max-width:700px){.epcoa-library{margin:24px auto 70px;padding:0 14px}.epcoa-table{min-width:570px}.epcoa-dialog{height:min(94vh,820px)}.epcoa-modal-body{padding:10px}.epcoa-modal-head{height:60px}.epcoa-frame{min-height:250px}}

/* Bring the plugin hero up once the automatic WordPress page title is hidden. */
body.epcoa-library-ready .epcoa-library{margin-top:10px}


/* v1.0.2: Generate a COA link when the custom product template has none. */
.epcoa-product-shortcut{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:17px;padding:17px 19px;border:1px solid #B6D2CE;border-radius:10px;background:#E2EEEE;color:#1B2B31!important;text-decoration:none!important;cursor:pointer}
.epcoa-product-shortcut-left{display:grid;gap:2px}
.epcoa-product-shortcut small{color:#357B7D;font-size:.68rem;font-weight:850;letter-spacing:.1em;text-transform:uppercase}
.epcoa-product-shortcut strong{color:#1B2B31;font-size:.82rem}
.epcoa-product-shortcut b{min-width:max-content;color:#357B7D;font-size:.7rem;text-transform:uppercase}
.epcoa-product-shortcut:hover,.epcoa-product-shortcut:focus-visible{background:#D3E7E4;border-color:#357B7D}
.epcoa-product-shortcut:focus-visible{outline:2px solid #357B7D;outline-offset:3px}
@media(max-width:680px){.epcoa-product-shortcut{align-items:start;flex-direction:column}}
