/* Ornament studio, scoped to #ornaments / .od-section. Same look as the sticker and tumbler studios. */
.od-section{background:#eef2ef;color:#26393c;padding:72px max(24px,calc((100vw - 1240px)/2));scroll-margin-top:5px}
.od-intro{max-width:850px;margin-bottom:36px}.od-eyebrow,.od-step-label,.od-kicker{font-size:0.75rem;font-weight:700;letter-spacing:.16em;color:#246b6c}
.od-intro h2{font-size:clamp(2.375rem,4.7vw,4rem);line-height:1.05;letter-spacing:-.02em;margin:12px 0 8px}.od-studio{max-width:720px;font-size:1.375rem;line-height:1.35;font-weight:600;color:#246b6c;margin:0 0 14px}.od-lead{max-width:720px;font-size:1.1875rem;line-height:1.6}.od-notice{margin-top:18px;padding-left:14px;border-left:3px solid #279c9a;font-size:0.8125rem;color:#496164}.od-step-label{margin-bottom:16px}
.od-designer{display:grid;grid-template-columns:minmax(320px,420px) 1fr;border:1px solid #cfdbd7;border-radius:24px;background:#fff;box-shadow:0 20px 65px #1d484c0b;align-items:start}
.od-steps{padding:22px 24px;border-right:1px solid #e0e7e4;min-width:0}
.od-panel{padding:16px 0 20px;border-bottom:1px solid #e6ece9}.od-panel:last-child{border-bottom:0}
.od-panel h3{font-size:1.3125rem;margin:4px 0 2px;line-height:1.25}.od-panel h3 small{font-size:0.75rem;font-weight:600;color:#55716d;margin-left:6px}
.od-kicker{font-size:0.6875rem}
.od-hint{font-size:0.75rem;color:#58716b;line-height:1.65;margin-top:10px}
.od-cats{display:grid;grid-template-columns:1fr 1fr;gap:6px;max-height:288px;overflow:auto;margin-top:12px;padding:2px 4px 2px 2px;overscroll-behavior:contain}
.od-section .od-cat{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:8px;text-align:left;min-height:46px;padding:5px 8px;font-size:0.8125rem;line-height:1.2}
.od-cat img{width:34px;height:34px;object-fit:contain}.od-cat small{font-size:0.6875rem;color:#4f625e;font-weight:600}
.od-section .od-cat[aria-selected="true"]{background:#246f70;color:#fff;border-color:#246f70}.od-cat[aria-selected="true"] small{color:#d6eeea}
.od-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:8px;max-height:330px;overflow:auto;margin-top:12px;padding:2px 4px 2px 2px;overscroll-behavior:contain}
.od-section .od-thumb{aspect-ratio:1;padding:6px;min-height:0;display:flex;align-items:center;justify-content:center;background:#fbfaf6}
.od-thumb img{max-width:100%;max-height:100%;display:block;pointer-events:none}
.od-section .od-thumb[aria-selected="true"]{border:3px solid #246f70;background:#e3f2ee}
.od-empty{grid-column:1/-1;font-size:0.8125rem;color:#4f625e;padding:16px 4px}
.od-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.od-fontrow{margin-top:12px}.od-section #od-font{font-size:1.125rem}
.od-textrow{display:grid;grid-template-columns:1fr 110px;gap:14px;margin-top:12px;align-items:end}
.od-finish{padding-top:20px}.od-section .od-big{width:100%;padding:15px 20px;font-size:1rem}
.od-downloads button{font-size:0.75rem}
.od-stage{position:sticky;top:76px;border-radius:0 24px 24px 0;padding:24px 28px;background:#e9eeeb;display:flex;flex-direction:column;align-items:center;min-width:0}
.od-stage-top{width:100%;display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.od-view{font-size:0.6875rem;letter-spacing:.16em;font-weight:700;color:#54716e}.od-dot{width:8px;height:8px;border-radius:50%;background:#279c9a;box-shadow:0 0 0 5px #279c9a18}
.od-window{position:relative;width:100%;max-width:720px;border:2px solid #344c4c;border-radius:14px;background:radial-gradient(circle at 50% 45%,#fff 0,#f4f1ea 60%,#e6e2d8 100%);line-height:0;overflow:hidden}
#od-canvas{display:block;width:100%;height:auto;touch-action:none;outline-offset:3px}
.od-badge{position:absolute;left:12px;right:12px;bottom:12px;margin:0;line-height:1.35;padding:9px 12px;border-radius:10px;background:#ffffffe6;border:1px solid #c7d7d1;font-size:0.8125rem;font-weight:600;color:#185355;text-align:center}
.od-badge.is-hover{background:#246f70;color:#fff;border-color:#246f70}.od-badge[hidden]{display:none}
.od-mode{font-size:0.75rem;color:#315a59;text-align:center;margin:14px 0 0;max-width:720px}.od-caption{font-size:0.6875rem;text-align:center;max-width:720px;color:#586c6a;margin-top:6px;line-height:1.6}
.od-section button,.od-section input,.od-section select,.od-section textarea{font:inherit}
.od-section button{cursor:pointer;min-height:44px;border:1px solid #cddad7;border-radius:10px;background:#fff;color:#26393c;padding:10px 14px;font-size:0.875rem;font-weight:600;line-height:1.3;transition:background .15s,border-color .15s}
.od-section button:hover:not(:disabled){background:#eaf5f1;border-color:#279c9a}.od-section button:disabled{opacity:.38;cursor:not-allowed}
.od-section :focus-visible{outline:3px solid #167d80;outline-offset:3px}
.od-section .od-primary{background:#246f70;color:#fff;border-color:#246f70}.od-section .od-primary:hover:not(:disabled){background:#185355;color:#fff}
.od-section label{display:block;font-size:0.8125rem;font-weight:600;line-height:1.45;margin-top:10px}
.od-section input[type="range"]{display:block;width:100%;margin-top:12px;accent-color:#246f70}
.od-section input[type="color"]{display:block;width:100%;height:44px;margin-top:7px;padding:3px;border:1px solid #cbd8d4;border-radius:8px;background:#fff;cursor:pointer}
.od-section input:not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),.od-section select,.od-section textarea:not(.od-sr-only){display:block;width:100%;min-height:44px;border:1px solid #cbd8d4;border-radius:8px;padding:10px 12px;background:#fff;color:#26393c;margin-top:7px;font-size:0.9375rem}
.od-section output{color:#246f70;font-variant-numeric:tabular-nums}
.od-order{margin-top:42px}.od-order-grid{display:grid;grid-template-columns:1fr 1fr;gap:38px}
.od-section fieldset{border:0;padding:0;min-width:0}.od-section legend{font-size:1.625rem;font-weight:600}
.od-fields{display:grid;grid-template-columns:1fr 1fr;gap:6px 18px;margin:12px 0}
.od-privacy{max-width:650px;margin:26px 0 16px}.od-section .od-submit{padding:15px 25px;font-size:1rem}
.od-err{color:#9c3753;font-weight:700;margin:10px 0 14px;font-size:0.875rem;line-height:1.4}.od-err[hidden]{display:none}
.od-section [aria-invalid="true"]{border-color:#9c3753!important}
.od-section .od-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;min-height:0!important}
.od-result{margin-top:32px;border:1px solid #8ac0b3;border-radius:16px;padding:24px;background:#e6f1ec;outline:none}.od-result[hidden]{display:none}.od-result h3{font-size:1.875rem;margin-bottom:10px}.od-result p{max-width:750px;font-size:0.875rem}
#od-thanks dl{display:grid;grid-template-columns:minmax(120px,max-content) 1fr;gap:6px 16px;margin:18px 0 8px;font-size:0.9375rem}#od-thanks dt{opacity:.75}#od-thanks dd{margin:0;overflow-wrap:anywhere}
/* 3D preview */
.od-mockup{position:fixed;inset:0;margin:auto;width:min(1000px,94vw);max-width:1000px;max-height:94dvh;border:1px solid #cbdad3;border-radius:24px;padding:0;color:#26393c;background:#f4f3ef;box-shadow:0 30px 100px #0005;overflow:auto}
.od-mockup::backdrop{background:#132a2cd9;backdrop-filter:blur(6px)}.od-mockup:not([open]){display:none}
.od-mockup-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 30px;border-bottom:1px solid #dae3de}.od-mockup-header h3{font-size:2.25rem;line-height:1.1;margin-top:8px}
.od-mockup-header button,.od-rotation button{cursor:pointer;min-height:44px;border:1px solid #cddad7;border-radius:10px;background:#fff;color:#26393c;padding:10px 14px;font:inherit;font-size:0.875rem;font-weight:600}
.od-mockup-grid{display:grid;grid-template-columns:1.3fr 1fr;min-height:540px}
.od-mockup-stage{display:flex;align-items:center;justify-content:center;min-width:0;min-height:440px;background:radial-gradient(ellipse at 48% 42%,#fffdf6 0,#e7efea 55%,#d7e4df 100%);border-radius:0 0 0 24px;perspective:1100px;touch-action:none;cursor:grab;overflow:hidden}
.od-mockup-stage.is-dragging{cursor:grabbing}
.od-scene{width:min(88%,460px);aspect-ratio:1;display:flex;align-items:center;justify-content:center;transform-style:preserve-3d}
.od-rig{position:relative;width:100%;aspect-ratio:1;transform-style:preserve-3d;transform:rotateX(var(--od-rx,10deg)) rotateY(var(--od-ry,-24deg));transition:transform .08s linear}
.od-layer{position:absolute;inset:0;width:100%;height:100%;display:block;user-select:none;pointer-events:none}
.od-rig .od-layer:last-child{filter:drop-shadow(0 3px 3px #3a22104d)}
.od-mockup-info{padding:28px 30px;min-width:0}
.od-specs{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;margin:16px 0}.od-specs dt{font-size:0.6875rem;color:#58716b}.od-specs dd{margin:2px 0 0;font-size:1rem;font-weight:700;overflow-wrap:anywhere}
.od-mockup-message{font-size:0.875rem;color:#3c5a57;margin:6px 0 16px}
.od-rotation{border-top:1px solid #dae3de;border-bottom:1px solid #dae3de;padding:16px 0}.od-rotation label{display:flex;justify-content:space-between;font-size:0.875rem;font-weight:700}.od-rotation output{color:#246f70}.od-rotation input{width:100%;margin:12px 0 4px;accent-color:#246f70}.od-rotation .od-hint{margin:6px 0 12px}
.od-mockup-disclaimer{font-size:0.6875rem;color:#58716b;line-height:1.6;margin-top:14px}
@media(max-width:900px){
 .od-designer{grid-template-columns:minmax(0,1fr)}.od-steps{border-right:0;border-bottom:1px solid #e0e7e4;padding:16px 18px}
 .od-stage{position:static;padding:16px 14px;border-radius:0 0 24px 24px}
 .od-cats{max-height:236px}.od-grid{max-height:250px;grid-template-columns:repeat(auto-fill,minmax(66px,1fr))}
 .od-order-grid{grid-template-columns:minmax(0,1fr);gap:20px}.od-mockup-grid{grid-template-columns:minmax(0,1fr)}.od-mockup-stage{border-radius:0;min-height:340px}
 .od-section{padding:44px 14px}.od-intro h2{font-size:2.375rem}.od-lead{font-size:1rem}.od-mockup-header h3{font-size:1.625rem}.od-mockup-header{padding:16px 18px}
}
@media(max-width:420px){.od-fields{grid-template-columns:minmax(0,1fr)}.od-cats{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.od-rig{transition:none}}
/* Nov 13 2026 (Cesar's feedback): comments, photo crop + snap, true-size 3D layers */
.od-comments{grid-column:1/-1}.od-comments label{display:block}.od-comments textarea{width:100%;min-height:110px;resize:vertical}
.od-check{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:0.9375rem;font-weight:600;cursor:pointer}.od-check input{width:20px;height:20px;accent-color:#246f70;margin:0}
.od-crop{position:fixed;inset:0;margin:auto;width:min(900px,94vw);max-height:94dvh;border:1px solid #cbdad3;border-radius:24px;padding:0;color:#26393c;background:#f4f3ef;box-shadow:0 30px 100px #0005;overflow:auto}
.od-crop::backdrop{background:#13232399}
.od-crop .od-mockup-header button{font-size:1.375rem;line-height:1;padding:8px 14px}
.od-crop-body{padding:18px 26px 24px}
#od-crop-canvas{display:block;width:100%;height:auto;border-radius:14px;background:#e9efec;touch-action:none;outline-offset:3px}
.od-crop-actions{align-items:center}.od-crop-actions .od-grow{flex:1}
@media(max-width:700px){.od-crop-body{padding:12px 14px 18px}.od-crop-actions .od-grow{display:none}}
/* 3D: orthographic projection so the backing and the raised front show at the same outline size (no perspective enlargement) */
.od-mockup-stage{perspective:none}
.od-rig .od-layer:last-child{filter:none}
.od-section .od-check{display:flex!important;flex-direction:row;align-items:center}
.od-section .od-check input[type="checkbox"]{display:inline-block!important;width:22px!important;height:22px!important;min-height:0!important;padding:0!important;margin:0!important;flex:none;border:0!important}

/* Nov 13 2026: center buttons + on-canvas text editing */
.od-center{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.od-center button{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 10px;font-size:0.8125rem}.od-center svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;flex:none}.od-center button:disabled{opacity:.45;cursor:not-allowed}
#od-text{display:block;width:100%;min-height:58px;resize:vertical;font:inherit;line-height:1.35}
.ce-inplace,textarea.ce-inplace{position:absolute!important;z-index:5;margin:0!important;padding:0!important;border:2px dashed #157d80!important;border-radius:4px!important;background:rgba(255,255,255,.88)!important;text-align:center;white-space:pre;overflow:hidden;resize:none;outline:none;box-shadow:0 0 0 3px rgba(21,125,128,.18);min-height:0!important;max-width:none!important;display:block!important;box-sizing:border-box!important}

/* Nov 14 2026: curved lettering controls */
.ce-curve-row{margin-top:10px}.ce-curve-row label{display:flex;align-items:center;gap:6px;font-weight:600}.ce-curve-row label svg,.ce-curve-float svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;flex:none}.ce-curve-row output{margin-left:auto;font-weight:500;color:#157d80}.ce-curve-row input[type=range]{width:100%;accent-color:#157d80}
.ce-curve-float{position:absolute;z-index:6;display:flex;align-items:center;gap:6px;padding:4px 10px;border:1px solid #157d80;border-radius:999px;background:#fff;color:#26393c;box-shadow:0 4px 14px rgba(20,50,50,.18);font:600 0.75rem/1 Outfit,system-ui,sans-serif;line-height:1}.ce-curve-float[hidden]{display:none}.ce-curve-float input[type=range]{width:110px;min-height:0;margin:0;padding:0;border:0;accent-color:#157d80}.ce-curve-float output{min-width:4.6em;text-align:right;white-space:nowrap}
/* Nov 14 2026: text rotation controls + on-canvas rotate cursor */
.ce-rotate-row{margin-top:10px}.ce-rotate-row label{display:flex;align-items:center;gap:6px;font-weight:600}.ce-rotate-row label svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}.ce-rotate-row output{margin-left:auto;font-weight:500;color:#157d80}.ce-rotate-row input[type=range]{width:100%;accent-color:#157d80}.ce-rotate-btns{display:flex;gap:6px;margin-top:6px}.ce-rotate-btns button{flex:1;min-height:36px;padding:4px 8px;border:1px solid #cbd8d4;border-radius:8px;background:#fff;color:#26393c;font:600 0.8125rem/1 Outfit,system-ui,sans-serif;cursor:pointer}.ce-rotate-btns button:hover{border-color:#157d80;color:#157d80}.ce-rotate-btns button:focus-visible{outline:2px solid #157d80;outline-offset:2px}

