@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700;800&display=swap');
.dtfp-app{--navy:#071b36;--navy2:#0d3157;--orange:#ff6a1a;--line:#dce4ef;font-family:'Jost',Arial,sans-serif!important;color:#0c1e3c;background:linear-gradient(120deg,#082444,#123e66);max-width:1640px;margin:24px auto;border-radius:19px;overflow:hidden;box-shadow:0 22px 55px #061b3340}.dtfp-app *{box-sizing:border-box}.dtfp-app button,.dtfp-app input{font-family:inherit}.dtfp-head{display:grid;grid-template-columns:minmax(270px,1fr) auto auto;align-items:center;gap:22px;padding:24px 28px;color:#fff;background:linear-gradient(115deg,#061a33,#0a2a4c 78%,#103c62)}.dtfp-kicker{font-size:11px;color:#ffa474;letter-spacing:2px;font-weight:700}.dtfp-head h2{font-size:clamp(27px,3vw,43px);font-weight:800;line-height:1.07;margin:7px 0 9px;color:#fff}.dtfp-head h2 em{color:#ff802f;font-style:italic}.dtfp-head p{margin:0;font-size:13px;color:#e2eaf2;max-width:510px;line-height:1.45}.dtfp-steps{display:flex;gap:12px;white-space:nowrap;align-items:center}.dtfp-steps span{display:flex;align-items:center;gap:6px;color:#dce5ef;font-size:11px;font-weight:600}.dtfp-steps b{border:1px solid #b8c9d9;border-radius:50%;width:29px;height:29px;display:grid;place-items:center;font-size:13px}.dtfp-steps .active b{background:var(--orange);border-color:var(--orange);color:#fff}.dtfp-promo{padding:12px 20px;background:linear-gradient(135deg,#ff9231,#f04b0c);border-radius:12px;white-space:nowrap;font-size:13px;font-weight:700;color:#fff;transform:skew(-7deg)}.dtfp-promo>*{display:inline-block;transform:skew(7deg)}.dtfp-promo strong{font-size:34px;line-height:1}.dtfp-promo small{font-size:12px}.dtfp-promo span{display:block;font-size:10px;text-align:center;margin-top:2px}.dtfp-grid{display:grid;grid-template-columns:minmax(235px,25%) minmax(340px,1fr) minmax(245px,25%);gap:10px;padding:10px;min-height:680px}.dtfp-side,.dtfp-work,.dtfp-summary{background:#fff;border-radius:13px;min-width:0;box-shadow:0 6px 18px #061b3312}.dtfp-side{padding:18px;display:flex;flex-direction:column;gap:10px}.dtfp-app h3{font-size:16px;font-weight:800;margin:5px 0 8px;color:#0c1e3c}.dtfp-sheet-fields{order:3;margin-top:7px;border-top:1px solid var(--line);padding-top:10px}.dtfp-sheet-fields h3{font-size:14px}.dtfp-sheet-fields label{display:inline-block;width:48%;font-size:12px;font-weight:600;margin:0 1% 7px 0}.dtfp-app input[type=number]{width:100%;margin-top:5px;border:1px solid #cbd6e6;border-radius:7px;background:#fff;padding:9px 8px;color:#112540;font-size:14px}.dtfp-upload{border:2px dashed #7aa4db;background:#f7faff;border-radius:12px;padding:19px 10px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:7px;cursor:pointer;transition:.2s}.dtfp-upload svg{color:#185bb6}.dtfp-upload strong{font-size:15px;font-weight:800}.dtfp-upload span{font-size:12px}.dtfp-upload-button{display:inline-block!important;padding:9px 18px;border-radius:8px;color:#fff;background:linear-gradient(180deg,#ff922e,#f0520b);font-weight:800;font-size:15px!important;margin-top:5px}.dtfp-upload small{font-size:10px;color:#51647e}.dtfp-upload:hover,.dtfp-upload.dtfp-dragover,.dtfp-upload:focus-visible{background:#edf5ff;border-color:#ff6a1a;outline:2px solid #ff8a4d}.dtfp-section-heading{margin-top:8px!important}.dtfp-files{display:flex;flex-direction:column;gap:7px;max-height:205px;overflow:auto;color:#52617a;font-size:12px}.dtfp-file{border:1px solid #d9e3ef;border-radius:8px;background:#f7faff;padding:10px;cursor:pointer;overflow-wrap:anywhere;line-height:1.4}.dtfp-file:hover{border-color:#ff6a1a}.dtfp-artwork-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.dtfp-outline{padding:9px 6px;border:1px solid #d4dfed;border-radius:8px;background:#fff;color:#1a2e4b;font-weight:700;font-size:12px;cursor:pointer}.dtfp-outline:hover{background:#fff2e9;border-color:#ff6a1a}.dtfp-side-tip{margin-top:auto;background:#f0f5fc;border:1px solid #dbe5f1;border-radius:10px;padding:12px;display:grid;gap:4px}.dtfp-side-tip strong{color:#137b3e;font-size:12px}.dtfp-side-tip span{font-size:11px;color:#52617a;margin-bottom:7px}.dtfp-work{padding:13px;background:#f8faff;position:relative}.dtfp-toolbar{display:flex;justify-content:space-between;align-items:center;gap:7px;flex-wrap:wrap;padding:7px 5px 13px;font-size:13px}.dtfp-toolbar strong{font-weight:800}.dtfp-toolbar span{background:#fff;border:1px solid #d9e2ee;border-radius:7px;padding:5px 9px;font-weight:600}.dtfp-toolbar-hint{font-size:11px;color:#536985}.dtfp-stage{height:570px;overflow:auto;display:flex;align-items:center;justify-content:center;background:#edf2f9;border:1px solid #d5e0ed;border-radius:9px;padding:12px}.dtfp-stage canvas{display:block;max-width:100%;max-height:100%;background:#fff;box-shadow:0 5px 25px #092c4a35;touch-action:none;cursor:crosshair}.dtfp-note{font-size:11px;line-height:1.45;color:#65758c;margin:9px 0}.dtfp-summary{background:transparent;display:flex;flex-direction:column;gap:10px;box-shadow:none}.dtfp-design-card,.dtfp-order-card{background:#fff;border-radius:12px;padding:15px;box-shadow:0 6px 18px #061b3312}.dtfp-design-tabs{display:flex;background:#eef2f9;border-radius:9px;padding:3px;gap:3px;justify-content:space-between}.dtfp-design-tabs span{padding:7px 8px;font-size:11px;font-weight:700;white-space:nowrap}.dtfp-design-tabs .dtfp-active-tab{color:#fff;background:linear-gradient(180deg,#ff8e2e,#f25a11);border-radius:7px}.dtfp-design-card h3{margin-top:14px}.dtfp-design-card label{font-size:12px;font-weight:700}.dtfp-design-status{margin-top:12px;background:#e7f8e8;color:#147c31;border-radius:8px;padding:9px;font-weight:700;font-size:12px}.dtfp-summary-title{font-size:20px!important;margin-bottom:12px!important}.dtfp-invoice{border:1px solid #e0e7f1;border-radius:9px;padding:10px 11px}.dtfp-invoice-label{font-size:11px;font-weight:800;letter-spacing:1.1px;color:#6b7a90;border-bottom:1px solid #e3e9f1;padding-bottom:9px}.dtfp-summary-row{display:flex;justify-content:space-between;gap:9px;align-items:center;border-bottom:1px solid #e5eaf1;padding:9px 0;font-size:12px;color:#142743}.dtfp-summary-row strong{font-size:13px;text-align:right;font-weight:700;white-space:nowrap}.dtfp-invoice hr{display:none}.dtfp-total{background:#ffede6;border-radius:8px;margin-top:10px;padding:11px 9px;display:flex;align-items:center;justify-content:space-between;gap:6px}.dtfp-total span{font-size:13px;font-weight:800}.dtfp-total strong{font-size:27px;color:#e44d13;font-weight:800;white-space:nowrap}.dtfp-checkout-note{font-size:12px;color:#111b2b;font-weight:600;line-height:1.5}.dtfp-primary{width:100%;border:0;border-radius:10px;background:linear-gradient(180deg,#ff8e2c,#ed4d09);color:#fff;padding:15px 8px;font-size:16px;font-weight:800;cursor:pointer;box-shadow:0 6px 12px #ed4d0928}.dtfp-primary.dtfp-ready{background:linear-gradient(180deg,#42cf27,#158d0e)}.dtfp-primary:disabled{opacity:.6;cursor:wait}.dtfp-safe{font-size:11px;color:#307348;margin-top:12px}.dtfp-app #dtfp-status{font-size:12px;color:#ae2929;line-height:1.5}.dtfp-progress[hidden]{display:none!important}.dtfp-progress{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;background:#0b244f88;padding:20px}.dtfp-progress-card{background:#fff;border-radius:17px;padding:27px;width:min(390px,96%);display:flex;align-items:center;flex-direction:column;gap:12px;box-shadow:0 22px 70px #04152a60}.dtfp-progress-icon{background:#fff1e7;color:#f36515;width:54px;height:54px;border-radius:50%;display:grid;place-items:center;font-size:30px}.dtfp-progress-card strong{font-size:17px}.dtfp-progress-track{width:100%;height:12px;border-radius:20px;overflow:hidden;background:#e5ebf3}.dtfp-progress-track div{width:0;height:100%;background:linear-gradient(90deg,#ff9c31,#ef5312);transition:width .15s}.dtfp-progress-percent{font-size:20px;font-weight:800}
@media(max-width:1280px){.dtfp-head{grid-template-columns:1fr auto}.dtfp-steps{grid-row:2;grid-column:1/-1;justify-content:center}.dtfp-grid{grid-template-columns:230px minmax(290px,1fr) 250px}.dtfp-promo strong{font-size:27px}}@media(max-width:1020px){.dtfp-grid{grid-template-columns:235px minmax(0,1fr)}.dtfp-summary{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.dtfp-head{padding:20px}}@media(max-width:650px){.dtfp-head{display:flex;flex-direction:column;align-items:stretch;padding:20px}.dtfp-steps{gap:6px;justify-content:space-between}.dtfp-steps span{font-size:9px}.dtfp-steps b{width:22px;height:22px;font-size:10px}.dtfp-promo{align-self:flex-start}.dtfp-grid{display:flex;flex-direction:column}.dtfp-summary{display:flex}.dtfp-stage{height:430px}.dtfp-side{padding:15px}.dtfp-progress{position:fixed;z-index:9999}}

/* v0.8.1: official horizontal DTFPRINTNOW branding */
.dtfp-brand{display:flex;align-items:center;margin:0 0 14px;min-height:53px}.dtfp-brand img{display:block;width:min(320px,100%);height:auto;max-height:70px;object-fit:contain;object-position:left center}.dtfp-heading .dtfp-kicker{display:block}.dtfp-heading{min-width:0}@media(max-width:650px){.dtfp-brand img{width:min(270px,100%)}.dtfp-brand{margin-bottom:10px}}

/* v1.0 precision layout */
.dtfp-app{max-width:1640px;margin:0 auto;background:linear-gradient(125deg,#052349b8,#06234cba),url('../images/dtf-hero.png') center center/cover fixed;border:2px solid #103b69;border-radius:22px}
.dtfp-head{padding:17px 23px 13px;background:linear-gradient(100deg,#061a35f2,#082d56ee);gap:14px}
.dtfp-head h2{font-size:clamp(30px,3vw,43px);letter-spacing:-.8px;margin:0 0 8px;font-style:italic}
.dtfp-head h2 em{color:#ff7b22}.dtfp-head p{font-size:13px;font-weight:600;max-width:470px}
.dtfp-grid{grid-template-columns:minmax(240px,26%) minmax(420px,1fr) minmax(255px,26%);gap:7px;padding:7px;min-height:0}
.dtfp-side,.dtfp-design-card,.dtfp-order-card{background:#ffffffed;backdrop-filter:blur(9px)}
.dtfp-side{padding:14px;gap:8px}.dtfp-work{padding:11px;background:#f7fafff5}
.dtfp-sheet-fields{order:4}.dtfp-stage{height:560px;display:block;overflow:auto;padding:10px;background:#edf3fa;scrollbar-gutter:stable}
.dtfp-ruler-shell{display:grid;grid-template-columns:45px 560px;grid-template-rows:34px auto;width:max-content;margin:0 auto;align-items:start;justify-items:start}
.dtfp-ruler-corner{grid-column:1;grid-row:1;width:45px;height:34px;background:#edf3fa}
.dtfp-ruler-top{grid-column:2;grid-row:1;display:block;width:560px;height:34px;background:#edf3fa}
.dtfp-ruler-left{grid-column:1;grid-row:2;display:block;width:45px;background:#edf3fa}
.dtfp-stage #dtfp-canvas{grid-column:2;grid-row:2;max-width:none;max-height:none;width:560px;height:auto;cursor:grab;box-shadow:0 0 0 1px #8297b0;touch-action:none}
.dtfp-tools{display:flex;justify-content:space-between;gap:3px;border:1px solid #d5deeb;border-radius:12px;padding:5px;margin:8px 0 2px;background:#fff;box-shadow:0 2px 7px #102a4930}
.dtfp-tool{display:flex;flex:1;min-width:0;align-items:center;flex-direction:column;gap:2px;padding:5px 1px;border:0;border-radius:9px;background:transparent;color:#0c2345;font-size:11px;font-weight:800;cursor:pointer}
.dtfp-tool span{font-size:24px;line-height:1.1}.dtfp-tool.active{background:#ffe1cd}.dtfp-tool:disabled{opacity:.35;cursor:not-allowed}
.dtfp-size-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}.dtfp-dpi-row{display:flex;justify-content:space-between;align-items:center;margin-top:10px;font-size:12px;font-weight:700}.dtfp-dpi-row strong{color:#158341;background:#e4f8e5;padding:5px 10px;border-radius:7px}
.dtfp-invoice .dtfp-total{background:#e4f9e5}.dtfp-invoice .dtfp-total strong{color:#147f28}.dtfp-promo{background:linear-gradient(125deg,#ff9b10,#ff4d0c)}
.dtfp-sheet-fields label{width:48%}
@media(max-width:1250px){.dtfp-grid{grid-template-columns:220px minmax(400px,1fr) 235px}.dtfp-head{grid-template-columns:1fr auto}.dtfp-steps{grid-row:2;grid-column:1/-1}}
@media(max-width:1080px){.dtfp-grid{grid-template-columns:minmax(200px,1fr) minmax(420px,2fr)}.dtfp-summary{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}}
@media(max-width:700px){.dtfp-grid{display:flex;flex-direction:column}.dtfp-summary{display:flex}.dtfp-head{display:flex;flex-direction:column;align-items:stretch}.dtfp-stage{height:460px}.dtfp-ruler-shell{margin:0}.dtfp-tool{font-size:9px}.dtfp-tool span{font-size:20px}}

/* v1.2: Theme owns page photography; plugin uses solid navy. */
.dtfp-app{background:#071b36!important}
.dtfp-stage #dtfp-canvas{touch-action:none}
.dtfp-tool{touch-action:manipulation}
.dtfp-sheet-fields input[readonly]{background:#eef3fa;color:#153b62;cursor:default}
@media(max-width:700px){.dtfp-stage{overflow:auto;-webkit-overflow-scrolling:touch}.dtfp-tools{flex-wrap:wrap}.dtfp-tool{flex:1 1 19%;min-width:48px;min-height:52px}}

/* v1.3: no horizontal canvas scrollbar. Display scales to the column, independent of physical print dimensions. */
.dtfp-app .dtfp-grid,.dtfp-app .dtfp-work{min-width:0}
.dtfp-app .dtfp-stage{overflow-x:hidden!important;overflow-y:auto!important;scrollbar-gutter:stable;min-width:0;max-width:100%;overscroll-behavior-x:none}
.dtfp-app .dtfp-ruler-shell{max-width:100%;margin:0 auto!important;grid-template-rows:34px auto;justify-items:start}
.dtfp-app .dtfp-ruler-top{max-width:100%;height:34px}
.dtfp-app .dtfp-stage #dtfp-canvas{max-width:100%;max-height:none;min-width:0;height:auto;box-sizing:border-box}
.dtfp-app .dtfp-upload small{font-weight:600}

/* v1.3.1 — keep upload failures visible and actionable. */
.dtfp-progress-error[hidden], .dtfp-progress-actions button[hidden]{display:none!important}
.dtfp-app .dtfp-progress-error{color:#a21919;background:#fff1f0;border:1px solid #f3bab4;border-radius:8px;font-size:13px;line-height:1.5;padding:12px;max-width:100%;overflow-wrap:anywhere;text-align:left;margin:0}
.dtfp-progress-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.dtfp-progress-actions button{border:1px solid #b5c5d8;border-radius:8px;background:white;padding:10px 18px;font-size:14px;font-weight:700;color:#12315b;cursor:pointer}
.dtfp-progress-actions #dtfp-upload-retry{background:#f66c21;border-color:#f66c21;color:white}
.dtfp-app .dtfp-progress-card{max-height:88vh;overflow-y:auto}
