.deb-calculator{--deb-primary:#111827;--deb-accent:#d946ef;--deb-radius:18px;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:24px;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#0f172a}.deb-panel{background:#fff;border:1px solid #e5e7eb;border-radius:var(--deb-radius);box-shadow:0 10px 30px rgba(15,23,42,.06)}.deb-form{padding:22px}.deb-summary{padding:18px;position:sticky;top:24px;height:fit-content}.deb-title{font-size:32px;line-height:1.1;font-weight:800;margin:0 0 6px}.deb-subtitle{color:#64748b;margin:0 0 18px}.deb-page-indicator{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;background:#f8fafc;border:1px solid #e2e8f0;color:#475569;font-size:12px;font-weight:700;white-space:nowrap}.deb-section{margin-bottom:18px;padding:18px;border:1px solid #eef2f7;border-radius:16px;background:#fff}.deb-section h3{margin:0 0 14px;font-size:18px}.deb-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px}.deb-field{grid-column:span 12}.deb-field[data-width="6"]{grid-column:span 6}.deb-field[data-width="4"]{grid-column:span 4}.deb-field[data-width="3"]{grid-column:span 3}.deb-label{display:block;font-size:13px;font-weight:700;margin-bottom:6px}.deb-required{color:#e11d48}.deb-control,.deb-field textarea{width:100%;padding:12px 14px;border:1px solid #dbe2ea;border-radius:12px;background:#fff}.deb-field textarea{min-height:100px;resize:vertical}.deb-help{margin-top:6px;color:#94a3b8;font-size:12px}.deb-options{display:grid;gap:10px}.deb-choice{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;cursor:pointer}.deb-choice.active{border-color:#d946ef;background:#fdf2f8}.deb-choice img{width:58px;height:58px;object-fit:cover;border-radius:12px;background:#f8fafc}.deb-qty-wrap{padding:12px;border:1px solid #e5e7eb;border-radius:16px;background:linear-gradient(180deg,#fff,#faf5ff)}.deb-qty-header{display:flex;justify-content:flex-end;margin-bottom:8px}.deb-qty-price{display:inline-flex;padding:6px 10px;border-radius:999px;background:#f5f3ff;color:#7c3aed;font-size:12px;font-weight:800}.deb-qty{display:flex;align-items:center;gap:10px}.deb-qty button{width:42px;height:42px;border:none;border-radius:14px;background:#111827;color:#fff;font-size:22px;cursor:pointer;line-height:1}.deb-qty input{width:100%;text-align:center;font-size:18px;font-weight:700}.deb-summary h3{margin:0 0 12px}.deb-lines{display:flex;flex-direction:column;gap:10px}.deb-line{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #eef2f7}.deb-line small{color:#64748b}.deb-total{display:flex;justify-content:space-between;align-items:center;padding:16px 0 8px;font-size:20px;font-weight:800}.deb-actions{display:flex;flex-direction:column;gap:10px;margin-top:12px}.deb-btn{appearance:none;border:none;background:var(--deb-primary);color:#fff;padding:12px 16px;border-radius:14px;font-weight:700;cursor:pointer}.deb-btn.ghost{background:#eef2ff;color:#312e81}.deb-btn.pink{background:var(--deb-accent)}.deb-nav{display:flex;gap:12px;justify-content:space-between}.deb-inline{display:flex;align-items:center;gap:8px}.deb-note{margin-top:12px;color:#64748b;font-size:13px}.deb-success{margin-top:12px;padding:12px 14px;border-radius:12px;background:#ecfdf5;color:#166534;border:1px solid #bbf7d0}.deb-loading{opacity:.72;pointer-events:none}.deb-print-wrap{display:none}.deb-separator{height:1px;background:#e5e7eb}.deb-html{color:#334155}.deb-order-form{margin-top:20px;padding-top:14px;border-top:1px solid #e5e7eb}@media print{body *{visibility:hidden}.deb-print-wrap,.deb-print-wrap *{visibility:visible}.deb-print-wrap{display:block;position:absolute;left:0;top:0;width:100%;background:#fff;padding:30px}}@media (max-width:980px){.deb-calculator{grid-template-columns:1fr}.deb-summary{position:static}.deb-field[data-width="6"],.deb-field[data-width="4"],.deb-field[data-width="3"]{grid-column:span 12}.deb-title{font-size:26px}}
.deb-calculator-wrapper{display:block;box-sizing:border-box}.deb-calculator-root{display:block;box-sizing:border-box}
.deb-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.deb-tab{padding:8px 18px;border-radius:999px;border:2px solid #e5e7eb;background:#f8fafc;color:#475569;font-size:13px;font-weight:700;cursor:pointer;transition:background .18s,color .18s,border-color .18s;white-space:nowrap}.deb-tab.active{background:var(--deb-primary);color:#fff;border-color:var(--deb-primary)}.deb-tab:hover:not(.active){background:#eef2ff;border-color:#c7d2fe;color:#3730a3}
.deb-two-cols{display:grid;grid-template-columns:1fr 1fr;gap:16px;width:100%}.deb-col{min-width:0}.deb-file-upload-zone{margin-top:14px;padding:12px;border:1px dashed #dbe2ea;border-radius:12px;background:#fafafa}.deb-file-upload-zone input[type=file]{border-style:dashed!important}.deb-terms{margin-top:16px}.deb-terms-check{display:flex;align-items:flex-start;gap:10px;padding:14px 16px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;color:#334155;font-size:13px;line-height:1.5}.deb-terms-check input{margin-top:3px;flex:0 0 auto}.deb-terms-check a{color:var(--deb-accent);font-weight:700;text-decoration:none}.deb-terms-check a:hover{text-decoration:underline}@media(max-width:768px){.deb-two-cols{grid-template-columns:1fr}}

/* Desktop refinement */
@media (min-width:981px){.deb-calculator-wrapper{width:min(100%,clamp(300px,27vw,400px))!important;max-width:clamp(300px,27vw,400px)!important;margin:0 auto!important}.deb-calculator-root{width:100%!important;max-width:100%!important}.deb-calculator{grid-template-columns:minmax(0,1fr)!important;gap:10px!important;align-items:stretch}.deb-panel{border-radius:12px;box-shadow:0 6px 18px rgba(15,23,42,.05)}.deb-form,.deb-summary{padding:12px!important}.deb-summary{position:static!important;top:auto!important}.deb-inline{gap:8px!important}.deb-title{font-size:18px!important;margin-bottom:3px!important}.deb-subtitle{max-width:none!important;margin-bottom:10px!important;font-size:11px!important;line-height:1.35!important}.deb-page-indicator{font-size:9px!important;padding:4px 7px!important}.deb-section{margin-bottom:10px!important;padding:10px!important;border-radius:12px!important}.deb-section h3{font-size:13px!important;margin-bottom:8px!important}.deb-grid{gap:8px!important}.deb-label{font-size:11px!important;margin-bottom:4px!important}.deb-field[data-width="6"],.deb-field[data-width="4"],.deb-field[data-width="3"]{grid-column:span 12!important}.deb-control,.deb-field textarea{min-height:34px!important;padding:7px 9px!important;border-radius:9px!important;font-size:12px!important}.deb-field textarea{min-height:70px!important}.deb-help{font-size:10px!important;margin-top:4px!important}.deb-options{gap:8px!important}.deb-choice{padding:8px 10px!important;border-radius:10px!important;gap:8px!important}.deb-choice img{width:42px;height:42px}.deb-qty-wrap{height:100%!important;padding:8px!important;border-radius:12px!important}.deb-qty-header{margin-bottom:6px}.deb-qty input.deb-control{min-height:32px!important;padding:4px 8px!important}.deb-qty button{width:26px;height:26px}.deb-two-cols{grid-template-columns:1fr!important;gap:8px!important}.deb-order-form h3,.deb-summary h3{font-size:14px!important;margin-bottom:8px!important}.deb-line{padding:6px 0!important;font-size:11.5px!important}.deb-line small{font-size:10px!important}.deb-total{padding:10px 0 4px!important;font-size:15px!important}.deb-actions{gap:7px!important;margin-top:10px!important}.deb-btn{min-height:36px!important;font-size:11px!important;padding:8px 10px!important;border-radius:10px!important}.deb-file-upload-zone{margin-top:10px!important;padding:8px!important;border-radius:9px!important}.deb-terms{margin-top:10px!important}.deb-terms-check{padding:8px 10px!important;border-radius:10px!important;font-size:11px!important;gap:7px!important}.deb-note{font-size:10px!important;line-height:1.35!important}}


/* v1.5.1 universal compact front-end override */
.deb-calculator{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}.deb-panel{border-radius:12px!important;box-shadow:0 6px 18px rgba(15,23,42,.05)!important}.deb-form,.deb-summary{padding:12px!important}.deb-summary{position:static!important;top:auto!important;height:auto!important}.deb-inline{gap:8px!important}.deb-title{font-size:18px!important;margin-bottom:3px!important}.deb-subtitle{max-width:none!important;margin-bottom:10px!important;font-size:11px!important;line-height:1.35!important}.deb-page-indicator{font-size:9px!important;padding:4px 7px!important}.deb-section{margin-bottom:10px!important;padding:10px!important;border-radius:12px!important}.deb-section h3{font-size:13px!important;margin-bottom:8px!important}.deb-grid{gap:8px!important}.deb-label{font-size:11px!important;margin-bottom:4px!important}.deb-field[data-width="6"],.deb-field[data-width="4"],.deb-field[data-width="3"]{grid-column:span 12!important}.deb-control,.deb-field textarea{min-height:34px!important;padding:7px 9px!important;border-radius:9px!important;font-size:12px!important}.deb-field textarea{min-height:70px!important}.deb-help{font-size:10px!important;margin-top:4px!important}.deb-options{gap:8px!important}.deb-choice{padding:8px 10px!important;border-radius:10px!important;gap:8px!important}.deb-choice img{width:42px!important;height:42px!important}.deb-qty-wrap{height:100%!important;padding:8px!important;border-radius:12px!important}.deb-qty-header{margin-bottom:6px!important}.deb-qty input.deb-control{min-height:32px!important;padding:4px 8px!important}.deb-qty button{width:26px!important;height:26px!important}.deb-order-form h3,.deb-summary h3{font-size:14px!important;margin-bottom:8px!important}.deb-line{padding:6px 0!important;font-size:11.5px!important}.deb-line small{font-size:10px!important}.deb-total{padding:10px 0 4px!important;font-size:15px!important}.deb-actions{gap:7px!important;margin-top:10px!important}.deb-btn{min-height:36px!important;font-size:11px!important;padding:8px 10px!important;border-radius:10px!important}.deb-file-upload-zone{margin-top:10px!important;padding:8px!important;border-radius:9px!important}.deb-terms{margin-top:10px!important}.deb-terms-check{padding:8px 10px!important;border-radius:10px!important;font-size:11px!important;gap:7px!important}.deb-note{font-size:10px!important;line-height:1.35!important}


/* v1.5.3 admin-divider-and-width-fix */
@media (min-width:768px){
  .deb-calculator-root{width:100%!important;max-width:100%!important}
  .deb-two-cols{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important;align-items:start!important}
  .deb-col{min-width:0!important}
}
@media (max-width:767px){
  .deb-two-cols{grid-template-columns:1fr!important}
}


/* v1.5.5 true-desktop-split-layout */
.deb-grid>*,.deb-two-cols>*,.deb-col>*{min-width:0!important}
.deb-section h3,.deb-label,.deb-help,.deb-line span,.deb-line small{overflow-wrap:anywhere}
@media (min-width:1100px){
  .deb-calculator-wrapper{width:auto!important;max-width:none!important}
  .deb-calculator-root{width:100%!important;max-width:100%!important}
  .deb-calculator{grid-template-columns:minmax(0,1fr) minmax(260px,320px)!important;gap:16px!important;align-items:start!important}
  .deb-calculator-main,.deb-side-stack{min-width:0!important}
  .deb-side-stack{display:grid!important;gap:12px!important;align-self:start!important}
  .deb-order-panel{display:block!important}
  .deb-two-cols{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;align-items:start!important}
}
@media (max-width:1099px){
  .deb-calculator-wrapper{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
  .deb-calculator-root{width:100%!important;max-width:100%!important}
  .deb-calculator{grid-template-columns:1fr!important;gap:10px!important}
  .deb-side-stack{display:grid!important;gap:10px!important}
  .deb-two-cols{grid-template-columns:1fr!important;gap:8px!important}
}


/* v1.6.1 platine-per-post-and-cart-scroll-fix */
.deb-btn.pink{background:#982058!important;box-shadow:0 8px 18px rgba(152,32,88,.18)}
.deb-btn.pink:hover{background:#8a1d50!important}
.deb-order-panel,.deb-summary{padding:20px!important}
.deb-side-stack{gap:14px!important}
.deb-order-grid{gap:12px!important}
.deb-order-grid .deb-field,.deb-order-panel .deb-file-upload-zone,.deb-order-panel .deb-terms,.deb-order-panel .deb-success{padding-left:2px;padding-right:2px}
.deb-color-panel{margin-top:10px}
.deb-color-panel h3,.deb-section h3{line-height:1.25;padding-right:10px;overflow-wrap:anywhere;word-break:break-word}
.deb-label{line-height:1.3;padding-right:8px;overflow-wrap:anywhere;word-break:break-word}
.deb-help{line-height:1.35;overflow-wrap:anywhere}
.deb-page-indicator{display:none!important}
.deb-grid{row-gap:14px!important}
.deb-section>.deb-grid{padding-bottom:10px!important}
.deb-field.deb-field-quantity .deb-label{position:relative;top:7px;z-index:2;margin-bottom:6px!important}
.deb-field[data-field-key="height"] .deb-label{position:relative;top:8px;z-index:2;margin-bottom:6px!important}
.deb-qty-wrap{padding:13px 12px 12px!important}
.deb-field[data-width="3"] .deb-label,.deb-field[data-width="4"] .deb-label,.deb-field[data-width="6"] .deb-label{font-size:12px!important}
@media (min-width:1100px){
  .deb-calculator{grid-template-columns:minmax(0,1fr) minmax(320px,360px)!important;gap:18px!important}
  .deb-side-stack{display:grid!important;gap:14px!important;align-self:start!important;position:sticky!important;top:18px!important;max-height:calc(100vh - 36px)!important;overflow-y:auto!important;padding-right:8px!important;scrollbar-gutter:stable}
  .deb-two-cols{gap:14px!important}
  .deb-section{padding:18px 16px 22px!important}
  .deb-field[data-width="3"],.deb-field[data-width="4"]{grid-column:span 12!important}
  .deb-color-panel{margin-top:12px!important}
  .deb-summary{position:static!important;top:auto!important;max-height:none!important;overflow:visible!important}
  .deb-summary .deb-lines{max-height:none!important;overflow:visible!important}
}
@media (max-width:1099px){
  .deb-color-panel{margin-top:8px!important}
  .deb-side-stack{max-height:none!important;overflow:visible!important;padding-right:0!important}
}

/* v1.6.8 qty-button-center-fix */
.deb-qty{align-items:center!important}
.deb-qty button{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;padding:0!important;text-align:center!important;line-height:1!important;font-weight:700!important;font-family:Arial,Helvetica,sans-serif!important;vertical-align:middle!important;border-radius:999px!important}
.deb-qty button[data-qty-minus]{font-size:20px!important}
.deb-qty button[data-qty-plus]{font-size:18px!important}
@media (max-width:1099px){
  .deb-qty button[data-qty-minus],.deb-qty button[data-qty-plus]{font-size:16px!important}
}
