.cco-editor,.cco-collection{--cco-ink:#174e48;--cco-paper:#f5f3ec;--cco-accent:#f7664d;max-width:1280px;margin:0 auto;padding:36px 24px;color:var(--cco-ink);font-family:inherit;box-sizing:border-box}.cco-editor *,.cco-collection *{box-sizing:border-box}.cco-back{display:inline-block;margin-bottom:24px;color:var(--cco-ink);font-weight:700}.cco-heading{max-width:820px;margin-bottom:28px}.cco-eyebrow{font-size:12px!important;font-weight:800;letter-spacing:2px}.cco-heading h1{font-size:clamp(26px,3.5vw,44px);line-height:1.12;margin:12px 0 18px}.cco-heading p{font-size:17px;line-height:1.6;margin:8px 0}.cco-price-line strong{font-size:24px}.cco-workspace{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(330px,.85fr);gap:30px;align-items:start}.cco-preview,.cco-controls{background:#fff;border:1px solid #e0e4dc;border-radius:22px;padding:24px;min-width:0}.cco-preview{position:sticky;top:145px;text-align:center;background:linear-gradient(135deg,#faf9f5,#eef4ef)}.cco-preview-title{display:flex;justify-content:space-between;align-items:center;font-size:16px;text-align:left;gap:12px}.cco-preview-title span{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:#637a70}.cco-preview canvas{display:block;width:100%;height:auto;max-height:600px;object-fit:contain;margin:14px auto}.cco-size{font-size:14px;color:#5c7068}.cco-controls h2{font-size:24px;margin:0 0 22px}.cco-controls label{display:block;font-size:15px;font-weight:700;margin:20px 0 8px}.cco-controls input[type=text],.cco-controls input[type=number],.cco-controls select{width:100%;min-height:50px;border:1px solid #c3cfc7;border-radius:10px;padding:12px;background:#fff;color:#183e36;font:inherit;margin-top:8px}.cco-controls input[type=range]{width:100%;display:block;margin:12px 0;accent-color:#24665b}.cco-controls small{display:block;font-size:12px;line-height:1.5;font-weight:400;color:#62746b;margin-top:7px}.cco-controls .cco-checkbox{display:flex;align-items:flex-start;gap:10px;line-height:1.5;font-weight:500}.cco-checkbox input{flex:0 0 auto;margin-top:4px;width:18px;height:18px;accent-color:#24665b}.cco-total{font-size:26px;font-weight:800;margin-bottom:4px}.cco-controls button[type=submit]{width:100%;padding:15px;background:var(--cco-accent);color:#fff;border:0;border-radius:10px;font:inherit;font-weight:800;cursor:pointer;min-height:52px}.cco-controls button:disabled{opacity:.5;cursor:not-allowed}.cco-secondary{display:inline-block;padding:10px 13px;border:1px solid #aec4b6;background:#fff;color:#215b50;border-radius:8px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;margin:4px}.cco-adjust{margin:24px 0;background:#f3f7f2;padding:15px;border:1px solid #dbe5db;border-radius:12px}.cco-adjust summary{font-weight:700;cursor:pointer}.cco-adjust output{font-size:12px}.cco-controls [role=status]{font-size:14px;line-height:1.5;margin:14px 0}.cco-controls [data-cart-link]{display:block;margin-top:16px;font-size:18px;font-weight:800}.cco-controls [data-cart-link][hidden]{display:none}.cco-collection{padding-top:64px;padding-bottom:64px}.cco-collection header{margin-bottom:30px}.cco-collection h2{font-size:clamp(28px,3.5vw,42px);line-height:1.15;margin:10px 0 14px}.cco-card-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}.cco-card{background:#fff;border:1px solid #e0e6dc;border-radius:18px;overflow:hidden;display:flex;flex-direction:column;min-width:0}.cco-card-image{display:block;background:#f3f4ed;padding:14px;text-align:center;aspect-ratio:1/1.2}.cco-card-image img{display:block;width:100%;height:100%;object-fit:contain}.cco-card>div{padding:18px;display:flex;flex-direction:column;flex:1}.cco-card h3{font-size:19px;line-height:1.25;margin:0 0 10px}.cco-card h3 a{color:#174e48;text-decoration:none}.cco-card p{font-size:13px;line-height:1.5;color:#60746b;flex:1;margin:0 0 12px}.cco-card strong{font-size:18px}.cco-card-cta{display:block;margin-top:14px;font-weight:700;color:#17594b}.cco-admin{max-width:1200px}.cco-admin .cco-job{display:flex;gap:24px;padding:20px;background:white;border:1px solid #ddd;margin:16px 0}.cco-job img{object-fit:contain;flex-shrink:0}.cco-editor a:focus-visible,.cco-editor button:focus-visible,.cco-editor input:focus-visible,.cco-editor summary:focus-visible{outline:3px solid #b78946;outline-offset:3px}
@media(max-width:1050px){.cco-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cco-workspace{gap:18px}.cco-preview,.cco-controls{padding:18px}}
@media(max-width:760px){.cco-editor,.cco-collection{padding:24px 16px}.cco-workspace{grid-template-columns:1fr}.cco-preview{position:static}.cco-preview canvas{max-height:450px}.cco-controls{padding:22px}.cco-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cco-card>div{padding:14px}.cco-card h3{font-size:17px}.cco-heading h1{font-size:30px}.cco-preview-title{font-size:14px}}
@media(max-width:380px){.cco-card-grid{grid-template-columns:1fr}}

/* The designer supplies its own product heading. */
.cb-content > article > h1:has(+ .cco-editor){display:none}
.wc-block-cart-item__image img[src*="cco_cart_proof"]{object-fit:contain}

.cb-product[data-product^="cco-"] .cb-image > a{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:12px}
.cb-product[data-product^="cco-"] .cb-image img{width:100%;height:100%;object-fit:contain}

.cco-photo-tools{border:1px solid #dbe5db;padding:15px;border-radius:12px;margin:0 0 24px;background:#f3f7f2;min-width:0}.cco-photo-tools legend{font-weight:800;padding:0 7px}.cco-photo-tools input[type=file]{width:100%;font-size:13px;margin:10px 0}.cco-photo-tools p{font-size:13px;line-height:1.5}.cco-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:760px){.cco-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:380px){.cco-card-grid{grid-template-columns:1fr}}

/* Phone text adjustment: preview and controls share one screen. */
@media(max-width:760px){
 body:has(.cco-editor .cco-adjust[open]){overflow:hidden;}
 .cco-workspace:has(.cco-adjust[open]){position:fixed!important;inset:0!important;z-index:100000;background:#fff;box-sizing:border-box;width:100%;height:100vh;height:100dvh;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(150px,40dvh) minmax(0,1fr);gap:0;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px);overflow:hidden;}
 .cco-workspace:has(.cco-adjust[open]) .cco-preview{position:static!important;box-sizing:border-box;min-height:0;padding:8px 12px;margin:0;border:0;border-radius:0;overflow:hidden;background:#f7f8f3;}
 .cco-workspace:has(.cco-adjust[open]) .cco-preview-title{margin:0 0 4px;font-size:12px;line-height:18px;}
 .cco-workspace:has(.cco-adjust[open]) .cco-preview canvas{display:block;width:100%;height:calc(40dvh - 48px)!important;min-height:0;max-height:calc(40dvh - 48px)!important;object-fit:contain;margin:0;}
 .cco-workspace:has(.cco-adjust[open]) .cco-preview>.cco-size,.cco-workspace:has(.cco-adjust[open]) .cco-preview>button{display:none;}
 .cco-workspace:has(.cco-adjust[open]) .cco-controls{min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;border:0;border-radius:0;margin:0;padding:10px 16px 16px;}
 .cco-workspace:has(.cco-adjust[open]) .cco-controls>:not(.cco-adjust){display:none!important;}
 .cco-workspace:has(.cco-adjust[open]) .cco-adjust{margin:0;padding:10px 12px;border-radius:12px;}
 .cco-workspace:has(.cco-adjust[open]) .cco-adjust summary{position:sticky;top:-10px;z-index:2;background:#eff7f0;padding:10px 0;margin:0 0 6px;cursor:pointer;}
 .cco-workspace:has(.cco-adjust[open]) .cco-adjust summary::after{content:' · Done ×';float:right;font-weight:700;}
 .cco-workspace:has(.cco-adjust[open]) .cco-adjust label{margin:8px 0 3px;font-size:14px;line-height:1.3;}
 .cco-workspace:has(.cco-adjust[open]) .cco-adjust select{min-height:42px;padding:8px;font-size:16px;margin:3px 0;}
 .cco-workspace:has(.cco-adjust[open]) .cco-adjust input[type=range]{height:24px;min-height:24px;margin:3px 0;padding:0;touch-action:pan-y;}
 .cco-workspace:has(.cco-adjust[open]) .cco-adjust output{font-size:12px;line-height:1.2;}
 .cco-workspace:has(.cco-adjust[open]) .cco-adjust button{padding:8px 12px;min-height:38px;margin:6px 0;font-size:13px;}
 .cco-workspace:has(.cco-adjust[open]) .cco-adjust small{font-size:11px;line-height:1.3;}
}

.cco-card:has(img[src*="bone-"]) .cco-card-image{aspect-ratio:1155/690}
.cco-bone .cco-preview canvas{aspect-ratio:5/3}
