/**
 * Custom Product Requests - public pages (6.2.0, 2026-10-03)
 *
 * Same look as the site's other redesigned pages: light title band (breadcrumb, H1, one line, chips), white cards,
 * pill buttons, status pills. Everything is scoped to .cpr; the theme styles bare table, th, td, input, select, label,
 * button and h1-h3 globally, so those are restated here on purpose. The toast and the admin note dialog are added to
 * <body> by the script and carry the .cpr class for the tokens.
 * 6.2.1: the status explanation card is gone (owner); the request form is one full-width row.
 */

.cpr{--ink:#0f1b2a;--ink2:#46556a;--text:#243447;--mute:#6b7a8f;--line:#e2e8f0;--line2:#edf1f5;--soft:#f5f8fb;--brand:#0d7ab0;--brand-2:#0b5f8a;--blue:#1a8fc4;color:var(--ink);font-size:15px;line-height:1.55}
.cpr *{box-sizing:border-box}
.cpr :where(p,h1,h2,h3,ol,ul,li){margin:0;padding:0}
.cpr :where(ol,ul){list-style:none}
.cpr-wrap{max-width:1290px;margin:0 auto;padding:0 15px}
.cpr .cpr-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* title band */
.cpr-band{background:#f2f7fb;border-bottom:1px solid var(--line)}
.cpr-band .cpr-wrap{padding-top:30px;padding-bottom:34px}
.cpr .cpr-crumbs{display:flex;flex-wrap:wrap;gap:6px;color:var(--mute);font-size:13.5px}
.cpr .cpr-crumbs a{color:var(--mute);font-weight:400;text-decoration:none}
.cpr .cpr-crumbs a:hover{color:var(--brand)}
.cpr .cpr-h1{margin:4px 0 6px;color:var(--ink);font-size:36px;font-weight:800;line-height:1.12;letter-spacing:-.015em;text-transform:none;text-wrap:balance}
.cpr .cpr-sub{max-width:64ch;color:var(--ink2);font-size:16.5px}
.cpr-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.cpr-chip{display:inline-flex;align-items:center;gap:8px;padding:6px 13px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink2);font-size:13.5px;font-weight:600;font-variant-numeric:tabular-nums}
.cpr-chip svg{flex:0 0 16px;color:var(--brand)}

/* headings (the theme decorates bare headings, and sets h1-h6 to width:100%, which breaks a heading in a flex row) */
.cpr .cpr-h2{width:auto;color:var(--ink);font-size:22px;font-weight:800;line-height:1.25;letter-spacing:-.015em;text-transform:none;text-wrap:balance}
.cpr .cpr-h3{width:auto;color:var(--ink);font-size:16.5px;font-weight:800;line-height:1.3;letter-spacing:-.005em;text-transform:none}
.cpr .cpr-h1::before,.cpr .cpr-h1::after,.cpr .cpr-h2::before,.cpr .cpr-h2::after,.cpr .cpr-h3::before,.cpr .cpr-h3::after{content:none;display:none}
.cpr .cpr-h1::first-letter,.cpr .cpr-h2::first-letter,.cpr .cpr-h3::first-letter{color:inherit}

/* layout */
.cpr-main{padding-top:32px;padding-bottom:56px}
.cpr-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:stretch}

/* cards */
.cpr-card{display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding:26px 28px;border:1px solid var(--line);border-radius:20px;background:#fff}
.cpr-card>*{max-width:100%}
.cpr-ask{border-color:#cfe3f1;background:radial-gradient(90% 140% at 0% 0%,#e3f1fa 0%,rgba(227,241,250,0) 60%),#fff;box-shadow:0 1px 2px rgba(15,27,42,.04),0 20px 40px -32px rgba(13,107,154,.5)}
.cpr .cpr-lead{max-width:62ch;color:var(--text);font-size:15px;line-height:1.65}
.cpr .cpr-lead p{margin:0}
.cpr .cpr-lead a{color:var(--brand);font-weight:700}
.cpr-ic{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#e3f1fa;color:var(--brand)}
.cpr-ic.is-amber{background:#fff4e0;color:#b45309}
.cpr-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin-top:2px}

/* buttons (pills) */
.cpr .cpr-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;height:46px;min-height:0;margin:0;padding:0 24px;border:0;border-radius:50px;background:linear-gradient(180deg,#23a3dc,#1a8fc4);box-shadow:0 12px 24px -14px rgba(26,143,196,1),inset 0 1px 0 rgba(255,255,255,.25);color:#fff;font-family:inherit;font-size:15px;font-weight:700;letter-spacing:0;line-height:1;text-decoration:none;text-transform:none;white-space:nowrap;cursor:pointer;transition:background-color .15s,box-shadow .15s,color .15s,opacity .15s}
.cpr .cpr-btn:hover{background:linear-gradient(180deg,#2aaee8,#1c97cf);color:#fff;text-decoration:none}
.cpr .cpr-btn[disabled]{opacity:.6;cursor:default}
.cpr .cpr-btn.is-ghost{background:#fff;box-shadow:inset 0 0 0 1px #c9dbe8;color:var(--ink)}
.cpr .cpr-btn.is-ghost:hover{background:#fff;box-shadow:inset 0 0 0 1px var(--blue);color:var(--brand)}
.cpr .cpr-btn.is-sm{height:36px;padding:0 16px;font-size:13.5px}
.cpr .cpr-btn svg{flex:none}

/* request form */
.cpr-form{display:flex;flex-direction:column;gap:14px;width:100%}
.cpr-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) auto;grid-template-areas:"nl ul ." "ni ui btn" ". uh .";align-items:center;gap:6px 14px}
.cpr .cpr-fields label{display:block;margin:0;color:var(--ink);font-size:13.5px;font-weight:700;line-height:1.3}
.cpr .cpr-fields input{width:100%;max-width:none;height:46px;min-height:0;margin:0;padding:0 14px;border:1px solid #cfdbe6;border-radius:12px;background:#fff;box-shadow:none;color:var(--ink);font-family:inherit;font-size:15px;line-height:1.3;transition:border-color .15s,box-shadow .15s}
.cpr .cpr-fields input::placeholder{color:#94a3b8;opacity:1}
.cpr .cpr-fields input:hover{border-color:#b4c6d6}
.cpr .cpr-fields input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(26,143,196,.18);outline:0}
.cpr .cpr-fields small{color:var(--mute);font-size:12.5px;line-height:1.4}
.cpr-l-name{grid-area:nl}
.cpr-i-name{grid-area:ni}
.cpr-l-url{grid-area:ul}
.cpr-i-url{grid-area:ui}
.cpr-hint{grid-area:uh}
.cpr .cpr-fields .cpr-btn-submit{grid-area:btn}
.cpr-form-msg{padding:10px 14px;border-radius:12px;background:#fff7ea;color:#8a4b0a;font-size:14px;font-weight:600;line-height:1.45}
.cpr-form-msg:empty{display:none}
.cpr-form-msg.is-error{background:#fdecec;color:#a4221a}

/* usage meter */
.cpr-meter{display:flex;flex-direction:column;gap:8px;width:100%;margin-top:2px;padding-top:16px;border-top:1px solid #e3edf5}
.cpr-meter-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 16px;color:var(--ink2);font-size:14px}
.cpr-meter-top b{color:var(--ink);font-weight:800;font-variant-numeric:tabular-nums}
.cpr .cpr-meter-top a{display:inline-flex;align-items:center;gap:3px;color:var(--brand);font-weight:700;text-decoration:none}
.cpr .cpr-meter-top a:hover{text-decoration:underline}
.cpr-meter-bar{height:6px;overflow:hidden;border-radius:99px;background:#e6eef5}
.cpr-meter-bar span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#23a3dc,#1a8fc4);transition:width .3s}
.cpr-meter.is-full .cpr-meter-bar span{background:#f59e0b}

/* status pills */
.cpr .cpr-pill{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:3px 11px 3px 9px;border-radius:999px;background-color:#eef2f6;color:#475569;font-size:12.5px;font-weight:700;line-height:1.5;white-space:nowrap}
.cpr .cpr-pill::before{content:"";flex:0 0 6px;width:6px;height:6px;border-radius:50%;background:currentColor}
.cpr .cpr-pill.is-not-considered{background-color:#eef2f6;color:#475569}
.cpr .cpr-pill.is-under-consideration{background-color:#fff4e0;color:#b45309}
.cpr .cpr-pill.is-purchased{background-color:#e8f3fb;color:#0d6b9a}
.cpr .cpr-pill.is-added{background-color:#e8f7ee;color:#15803d}
.cpr .cpr-pill.is-rejected{background-color:#fdecec;color:#b42318}


/* signed out: how it works */
.cpr-steps{display:flex;flex-direction:column;gap:14px;width:100%;margin-top:2px}
.cpr-steps li{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:start;gap:12px}
.cpr-step-n{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#e3f1fa;color:var(--brand-2);font-size:14px;font-weight:800;line-height:1}
.cpr-steps b{display:block;color:var(--ink);font-size:15px;font-weight:800;line-height:1.35}
.cpr-steps p{margin-top:2px;color:var(--text);font-size:14px;line-height:1.55}

/* the list: heading, search, filters */
.cpr-list,.cpr-mine{min-width:0}
.cpr-list{margin-top:40px}
.cpr-list-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px}
.cpr .cpr-count{display:inline-block;margin-left:4px;padding:2px 10px;border-radius:999px;background:#eef2f6;color:var(--mute);font-size:13px;font-weight:700;letter-spacing:0;line-height:1.5;vertical-align:middle;font-variant-numeric:tabular-nums}
.cpr-search{position:relative;flex:0 1 340px}
.cpr-search svg{position:absolute;left:15px;top:50%;color:var(--mute);transform:translateY(-50%);pointer-events:none}
.cpr .cpr-search input{width:100%;max-width:none;height:42px;min-height:0;margin:0;padding:0 16px 0 42px;border:1px solid #cfdbe6;border-radius:50px;background:#fff;box-shadow:none;color:var(--ink);font-family:inherit;font-size:14.5px;line-height:1.3;-webkit-appearance:none;appearance:none;transition:border-color .15s,box-shadow .15s}
.cpr .cpr-search input::placeholder{color:#94a3b8;opacity:1}
.cpr .cpr-search input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(26,143,196,.18);outline:0}
.cpr-filters{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.cpr .cpr-filter{display:inline-flex;align-items:center;gap:7px;height:36px;min-height:0;margin:0;padding:0 14px;border:0;border-radius:50px;background:#fff;box-shadow:inset 0 0 0 1px #d5e0ea;color:var(--ink2);font-family:inherit;font-size:13.5px;font-weight:700;letter-spacing:0;line-height:1;text-transform:none;white-space:nowrap;cursor:pointer;transition:background-color .15s,box-shadow .15s,color .15s}
.cpr .cpr-filter b{color:var(--mute);font-weight:700;font-variant-numeric:tabular-nums}
.cpr .cpr-filter:hover{box-shadow:inset 0 0 0 1px var(--blue);color:var(--brand)}
.cpr .cpr-filter[aria-pressed="true"]{background:linear-gradient(180deg,#23a3dc,#1a8fc4);box-shadow:none;color:#fff}
.cpr .cpr-filter[aria-pressed="true"] b{color:rgba(255,255,255,.85)}

/* the list: rows */
.cpr-results{margin-top:14px;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fff;transition:opacity .15s}
.cpr-results[aria-busy="true"]{opacity:.55}
.cpr .cpr-table{width:100%;margin:0;border:0;border-collapse:collapse;border-spacing:0;background:none;font-size:14.5px;line-height:1.45}
.cpr .cpr-table th{padding:12px 20px;border:0;border-bottom:1px solid var(--line);background:#f8fafc;color:var(--ink2);font-size:12px;font-weight:700;letter-spacing:.05em;line-height:1.3;text-align:left;text-transform:uppercase;white-space:nowrap}
.cpr .cpr-table td{padding:14px 20px;border:0;border-bottom:1px solid var(--line2);color:var(--text);text-align:left;vertical-align:middle}
.cpr .cpr-table tbody tr:last-child td{border-bottom:0}
.cpr .cpr-table tbody tr:hover td{background:#fafcfe}
.cpr .cpr-table .cpr-c-product{width:44%}
.cpr .cpr-table .cpr-c-status{width:200px}
.cpr-name{display:block;color:var(--ink);font-size:15px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.cpr .cpr-host{display:inline-flex;align-items:center;gap:5px;max-width:100%;margin-top:2px;color:var(--mute);font-size:13px;font-weight:500;line-height:1.4;text-decoration:none;overflow-wrap:anywhere}
.cpr a.cpr-host:hover{color:var(--brand);text-decoration:underline}
.cpr-host svg{flex:none;opacity:.7}
.cpr-note{display:block;max-width:60ch;color:var(--text);font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.cpr .cpr-note a{color:var(--brand);font-weight:600}
.cpr-none{color:#a3b1c2}

/* admins: status menu and note button in the list */
.cpr select.cpr-status-select{display:inline-block;width:auto;max-width:100%;height:30px;min-height:0;margin:0;padding:0 28px 0 12px;border:0;border-radius:999px;box-shadow:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2346556a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 10px center;background-repeat:no-repeat;background-size:10px;font-family:inherit;font-size:12.5px;font-weight:700;line-height:30px;cursor:pointer;-webkit-appearance:none;appearance:none}
.cpr .cpr-note-btn{display:inline-flex;align-items:center;gap:6px;height:28px;min-height:0;margin:6px 0 0;padding:0 11px;border:0;border-radius:50px;background:#fff;box-shadow:inset 0 0 0 1px #d5e0ea;color:var(--ink2);font-family:inherit;font-size:12.5px;font-weight:700;letter-spacing:0;line-height:1;text-transform:none;cursor:pointer}
.cpr .cpr-note-btn:first-child{margin-top:0}
.cpr .cpr-note-btn:hover{box-shadow:inset 0 0 0 1px var(--blue);color:var(--brand)}

/* pages */
.cpr-pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:14px 20px;border-top:1px solid var(--line);background:#fbfcfe}
.cpr-pager-info{color:var(--mute);font-size:13.5px;font-variant-numeric:tabular-nums}
.cpr-pages{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.cpr .cpr-page-btn{display:inline-grid;place-items:center;min-width:36px;height:36px;min-height:0;margin:0;padding:0 11px;border:0;border-radius:50px;background:#fff;box-shadow:inset 0 0 0 1px #d5e0ea;color:var(--ink2);font-family:inherit;font-size:13.5px;font-weight:700;letter-spacing:0;line-height:1;text-transform:none;cursor:pointer;font-variant-numeric:tabular-nums;transition:box-shadow .15s,color .15s}
.cpr .cpr-page-btn.is-arrow{padding:0}
.cpr .cpr-page-btn:hover:not([disabled]):not(.is-current){box-shadow:inset 0 0 0 1px var(--blue);color:var(--brand)}
.cpr .cpr-page-btn.is-current{background:linear-gradient(180deg,#23a3dc,#1a8fc4);box-shadow:none;color:#fff;cursor:default}
.cpr .cpr-page-btn[disabled]{opacity:.4;cursor:default}
.cpr-page-dots{padding:0 2px;color:var(--mute)}

/* empty list */
.cpr-empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:40px 20px;text-align:center}
.cpr-empty-ic{display:grid;place-items:center;width:48px;height:48px;margin-bottom:6px;border-radius:50%;background:#eef4f9;color:var(--brand)}
.cpr .cpr-empty-t{color:var(--ink);font-size:16px;font-weight:800;overflow-wrap:anywhere}
.cpr .cpr-empty-s{color:var(--mute);font-size:14px}
.cpr-empty .cpr-btn{margin-top:10px}

/* toast (owner's rule: bottom-right above the back-to-top button, dark card, icon disc, countdown bar) */
.cpr-toasts{position:fixed;right:24px;bottom:calc(84px + var(--gpl-top-lift, 0px));z-index:999999;display:flex;flex-direction:column;align-items:flex-end;gap:10px;pointer-events:none}
.cpr-toast{--cpr-tone:#22c55e;position:relative;display:flex;align-items:center;gap:12px;min-width:280px;max-width:380px;margin:0;padding:12px 18px 12px 12px;overflow:hidden;border-radius:14px;background:#0f1b2a;box-shadow:0 22px 44px -16px rgba(15,27,42,.6),0 6px 14px -6px rgba(15,27,42,.3),inset 0 0 0 1px rgba(255,255,255,.08);color:#fff;opacity:0;pointer-events:auto;transform:translateX(calc(100% + 48px));transition:transform .3s cubic-bezier(.55,0,1,.45),opacity .3s ease}
.cpr-toast.is-in{opacity:1;transform:translateX(0);transition:transform .5s cubic-bezier(.16,1,.3,1),opacity .2s ease}
.cpr-toast.is-error{--cpr-tone:#ef4444}
.cpr-toast.is-info{--cpr-tone:#38bdf8}
.cpr-toast-ic{display:grid;flex:none;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--cpr-tone);color:#fff}
.cpr-toast-ic svg{width:17px;height:17px}
.cpr-toast-msg{flex:1 1 auto;min-width:0;color:#fff;font-size:14.5px;font-weight:600;line-height:1.4}
.cpr-toast::after{content:"";position:absolute;left:0;bottom:0;width:100%;height:3px;background:var(--cpr-tone);opacity:.85;transform:scaleX(0);transform-origin:left center}
.cpr-toast.is-in::after{animation:cpr-toast-time var(--cpr-toast-time,4s) linear forwards}
@keyframes cpr-toast-time{from{transform:scaleX(1)}to{transform:scaleX(0)}}

/* admins: note dialog */
.cpr-modal-overlay{position:fixed;inset:0;z-index:999998;display:grid;place-items:center;padding:16px;background:rgba(15,27,42,.5)}
.cpr-modal{width:min(520px,100%);padding:22px 22px 18px;border-radius:18px;background:#fff;box-shadow:0 30px 60px -20px rgba(15,27,42,.45)}
.cpr-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.cpr .cpr-modal-h{width:auto;color:var(--ink);font-size:18px;font-weight:800;line-height:1.3;text-transform:none;overflow-wrap:anywhere}
.cpr .cpr-modal-x{display:grid;flex:none;place-items:center;width:32px;height:32px;min-height:0;margin:0;padding:0;border:0;border-radius:50%;background:#f1f5f9;color:var(--ink2);font-size:20px;line-height:1;cursor:pointer}
.cpr .cpr-modal-x:hover{background:#e2e8f0;color:var(--ink)}
.cpr .cpr-modal textarea{display:block;width:100%;min-height:130px;margin:0;padding:12px 14px;border:1px solid #cfdbe6;border-radius:12px;background:#fff;box-shadow:none;color:var(--ink);font-family:inherit;font-size:15px;line-height:1.5;resize:vertical}
.cpr .cpr-modal textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(26,143,196,.18);outline:0}
.cpr-modal-foot{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:14px}

.cpr a:focus-visible,.cpr button:focus-visible,.cpr select:focus-visible{outline:2px solid #1a8fc4;outline-offset:2px}

@media (prefers-reduced-motion:reduce){
.cpr *{transition:none!important}
.cpr-toast,.cpr-toast.is-in{transform:none;transition:opacity .2s ease}
.cpr-toast.is-in::after{animation:none}
}
@media (max-width:980px){
.cpr-top{grid-template-columns:minmax(0,1fr)}
.cpr-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"nl ul" "ni ui" ". uh" "btn btn"}
.cpr .cpr-fields .cpr-btn-submit{justify-self:start;margin-top:6px}
}
@media (max-width:768px){
.cpr-toasts{left:16px;right:16px;bottom:calc(68px + var(--gpl-top-lift, 0px));align-items:stretch}
.cpr-toast{min-width:0;max-width:none;transform:translateX(calc(100% + 32px))}
}
/* phones: each request becomes a block - name and site on the left, status on the right, the note below */
@media (max-width:720px){
.cpr .cpr-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.cpr .cpr-table,.cpr .cpr-table tbody{display:block}
.cpr .cpr-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:14px 16px;border-bottom:1px solid var(--line2)}
.cpr .cpr-table tbody tr:last-child{border-bottom:0}
.cpr .cpr-table td{display:block;width:auto;padding:0;border:0;background:none}
.cpr .cpr-table tbody tr:hover td{background:none}
.cpr .cpr-table .cpr-c-product{grid-column:1;width:auto}
.cpr .cpr-table .cpr-c-status{grid-column:2;grid-row:1;width:auto}
.cpr .cpr-table .cpr-c-note{grid-column:1 / -1}
.cpr .cpr-table .cpr-c-note:has(>.cpr-none:only-child){display:none}
.cpr-note{padding:8px 11px;border-radius:10px;background:var(--soft);color:var(--ink2);font-size:13.5px}
.cpr-pager{justify-content:center;padding:12px}
.cpr-pager-info{width:100%;text-align:center}
}
@media (max-width:640px){
.cpr-band .cpr-wrap{padding-top:20px;padding-bottom:24px}
.cpr .cpr-h1{font-size:28px}
.cpr .cpr-sub{font-size:15px}
.cpr-chip{padding:5px 11px;font-size:12.5px}
.cpr-main{padding-top:20px;padding-bottom:40px}
.cpr-card{padding:20px 18px;border-radius:18px}
.cpr .cpr-h2{font-size:20px}
.cpr-fields{grid-template-columns:minmax(0,1fr);grid-template-areas:"nl" "ni" "ul" "ui" "uh" "btn"}
.cpr-l-url{margin-top:8px}
.cpr .cpr-fields .cpr-btn-submit,.cpr-signin .cpr-btn{justify-self:stretch;width:100%}
.cpr-actions{width:100%}
.cpr-list{margin-top:32px}
.cpr-search{flex:1 1 100%}
.cpr-filters{flex-wrap:nowrap;margin-right:-15px;margin-left:-15px;padding:0 15px 4px;overflow-x:auto;scrollbar-width:none}
.cpr-filters::-webkit-scrollbar{display:none}
.cpr .cpr-filter{flex:none}
.cpr .cpr-page-btn{min-width:34px;height:34px}
}
