/* Coozie artwork editor — see assets/js/coozie-edit.js */
.tt-cze__bar{margin:10px 0 0}
.tt-cze__open{width:100%;background:#fff;border:1px dashed #d9c4b4;color:#8f5b50;border-radius:10px;
  padding:10px 14px;font-weight:800;font-size:13.5px;cursor:pointer;font-family:inherit}
.tt-cze__open:hover{background:#fdf6f1;border-color:#c2907f}

.tt-cze{position:fixed;inset:0;background:rgba(35,25,20,.55);z-index:99999;
  display:none;align-items:center;justify-content:center;padding:18px}
.tt-cze.is-open{display:flex}
.tt-cze__box{background:#fff;border-radius:16px;max-width:1000px;width:100%;
  max-height:94vh;overflow:auto;box-shadow:0 24px 60px rgba(0,0,0,.28)}
.tt-cze__top{display:flex;align-items:center;justify-content:space-between;
  padding:14px 18px;border-bottom:1px solid #f0e6dc;font-size:16px}
.tt-cze__x{background:none;border:0;font-size:26px;line-height:1;cursor:pointer;color:#b09484}
.tt-cze__body{display:grid;grid-template-columns:1fr 300px;gap:18px;padding:18px}
.tt-cze__stage{display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:#faf6f2;border:1px solid #f0e6dc;border-radius:12px;padding:14px;min-height:320px}
/* The checkerboard IS the feature: it is how a customer sees what is now
   see-through. Without it a knocked-out white background looks unchanged. */
.tt-cze__stage canvas{background-image:
  linear-gradient(45deg,#e6ddd3 25%,transparent 25%),linear-gradient(-45deg,#e6ddd3 25%,transparent 25%),
  linear-gradient(45deg,transparent 75%,#e6ddd3 75%),linear-gradient(-45deg,transparent 75%,#e6ddd3 75%);
  background-size:18px 18px;background-position:0 0,0 9px,9px -9px,-9px 0;
  border-radius:8px;max-width:100%}
.tt-cze__stage canvas.is-picking{cursor:crosshair;outline:2px solid #c2907f}
.tt-cze__hint{font-size:12px;color:#8b7a66;margin:10px 0 0;text-align:center}
.tt-cze__side{display:flex;flex-direction:column;gap:14px}
.tt-cze__tool{border:1px solid #f0e6dc;border-radius:12px;padding:13px}
.tt-cze__tool h4{margin:0 0 4px;font-size:14px}
.tt-cze__tool p{margin:0 0 9px;font-size:12px;color:#8b7a66;line-height:1.45}
.tt-cze__row{display:flex;align-items:center;gap:8px;margin-bottom:9px}
.tt-cze__row input[type=color]{width:42px;height:32px;padding:0;border:1px solid #e2d5c9;
  border-radius:8px;background:#fff;cursor:pointer}
.tt-cze__pip{background:#fff;border:1px solid #e2d5c9;border-radius:8px;padding:6px 11px;
  font-weight:700;font-size:12px;cursor:pointer;font-family:inherit}
.tt-cze__pip:hover{background:#faf6f2}
.tt-cze__arrow{color:#b09484;font-weight:900}
.tt-cze__tool label{display:block;font-size:11.5px;color:#8b7a66;font-weight:700;margin-bottom:8px}
.tt-cze__tool input[type=range]{width:100%;margin-top:4px}
.tt-cze__mode{display:flex !important;align-items:center;gap:7px;font-size:12.5px;color:#4a3328}
.tt-cze__apply{width:100%;background:#8f5b50;color:#fff;border:0;border-radius:9px;
  padding:9px;font-weight:800;font-size:13px;cursor:pointer;font-family:inherit}
.tt-cze__apply:hover{background:#7a4c42}
.tt-cze__foot{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}
.tt-cze__undo,.tt-cze__reset{background:#fff;border:1px solid #e2d5c9;color:#6e5145;
  border-radius:9px;padding:9px 13px;font-weight:700;font-size:12.5px;cursor:pointer;font-family:inherit}
.tt-cze__save{flex:1;background:#2c7a4b;color:#fff;border:0;border-radius:9px;padding:9px 14px;
  font-weight:800;font-size:13px;cursor:pointer;font-family:inherit}
.tt-cze__save:disabled{opacity:.6;cursor:default}
@media(max-width:820px){
  .tt-cze__body{grid-template-columns:1fr}
  .tt-cze__stage{min-height:220px}
}

/* Art upgrade — lives with the editor because both are "fix my artwork". */
.tt-cz-upg{display:flex;gap:10px;align-items:flex-start;margin:10px 0 0;padding:11px 13px;
  border:1px solid #eee2d7;border-radius:11px;cursor:pointer;background:#fff}
.tt-cz-upg:hover{background:#fdfaf7}
.tt-cz-upg input{margin:2px 0 0;flex:none;width:17px;height:17px;accent-color:#8f5b50}
.tt-cz-upg__body{display:block;font-size:13px;line-height:1.45}
.tt-cz-upg__body b{display:block;color:#4a3328}
.tt-cz-upg__sub{display:block;color:#8b7a66;font-size:12px;margin-top:2px}
/* Raised only when the DPI check says the file is small — the one moment it
   is genuinely useful rather than an upsell in the way. */
.tt-cz-upg.is-urgent{border-color:#e8c9a0;background:#fff8ee}
.tt-cz-upg.is-urgent .tt-cz-upg__body b{color:#b3701b}

/* "Any other colour" swatch — a hue wheel that says "not one of these", with
   the real <input type=color> hidden inside it so one click opens the picker. */
.tt-cz-trim--custom{position:relative;overflow:hidden;cursor:pointer;padding:0}
.tt-cz-trim--custom input[type=color]{position:absolute;inset:0;opacity:0;
  width:100%;height:100%;padding:0;border:0;cursor:pointer}
.tt-cz-trim__any{display:block;width:100%;height:100%;border-radius:50%;
  background:conic-gradient(#ff3b30,#ffcc00,#34c759,#00c7be,#007aff,#af52de,#ff2d55,#ff3b30)}
/* Once a colour is chosen the wheel is replaced by it, so the row reads as a
   set of colours rather than one permanent rainbow. */
.tt-cz-trim__any.is-picked{background:var(--cz-picked,#fff)}
.tt-cz-matchnote{margin:7px 0 0;font-size:12px;color:#8b7a66;font-style:italic}
