/* ESP Partition Calculator v1.2 - fully scoped frontend styles */
.esp-pc,.esp-pc *{box-sizing:border-box}
.esp-pc,.esp-pc *{font-family:inherit}.esp-pc{--blue:#1598e5;--green:#12b76a;--text:#252525;--muted:#777;--border:#e0e3e6;direction:rtl;width:100%;max-width:1120px;margin:24px auto;padding:0 10px;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,.85fr);gap:14px;font-family:inherit;color:var(--text);line-height:1.7}
.esp-pc-main,.esp-pc-side{min-width:0}.esp-pc-side{display:flex;flex-direction:column;gap:12px}.esp-card{background:#fff;border:1px solid var(--border);border-radius:5px;padding:12px;margin:0;box-shadow:0 2px 8px rgba(0,0,0,.035)}
.esp-title{font-size:14px;font-weight:700;padding:0 0 8px;margin:0 0 11px;border-bottom:1px solid var(--blue);position:relative}.esp-title:after{content:"";position:absolute;right:0;bottom:-2px;width:42px;height:3px;background:var(--blue);border-radius:2px}
.esp-type-grid{display:flex;flex-direction:column;gap:7px}.esp-type-option{display:block;cursor:pointer}.esp-type-option input{position:absolute;opacity:0}.esp-type-option span{display:flex;align-items:center;justify-content:space-between;min-height:42px;padding:7px 11px;border:1px solid #e2e5e8;border-radius:4px;background:#fafafa;font-size:12px;transition:.18s}.esp-type-option span:before{content:"";width:14px;height:14px;border:1px solid #aeb4b9;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 3px #fff;order:-1}.esp-type-option input:checked+span{border-color:var(--green);background:#f1fff8;color:#087d49}.esp-type-option input:checked+span:before{border-color:var(--green);background:var(--green)}
.esp-model-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.esp-door-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.esp-option-card{display:block;position:relative;min-width:0;cursor:pointer}.esp-option-card input{position:absolute;opacity:0;pointer-events:none}.esp-option-image{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:142px;overflow:hidden;background:#f0f0f0;border:1px solid #dedede;border-radius:3px;transition:.18s}.esp-option-image img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;margin:0!important;padding:0!important}.esp-placeholder{font-size:11px;color:#999}.esp-option-name{display:block;text-align:center;font-size:11px;font-weight:600;padding:6px 2px 0;line-height:1.5}.esp-option-card:hover .esp-option-image{border-color:#a9d7eb}.esp-option-card input:checked~.esp-option-image{border:2px solid var(--green);box-shadow:0 0 0 1px rgba(18,183,106,.08)}.esp-check{display:none;position:absolute;left:6px;top:6px;width:22px;height:22px;border-radius:50%;align-items:center;justify-content:center;background:var(--green);color:#fff;font-size:13px;font-weight:900}.esp-option-card input:checked~.esp-option-image .esp-check{display:flex}.esp-option-card input:checked~.esp-option-name{color:#07834a;font-weight:800}
.esp-door-section{margin-top:12px}.esp-door-card .esp-option-image{height:125px}
.esp-dimension{padding:1px 0 12px}.esp-dimension+.esp-dimension{padding-top:4px}.esp-dim-head{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-bottom:6px}.esp-dim-head strong{font-size:12px}.esp-range-row{display:grid;grid-template-columns:31px minmax(0,1fr) 31px;gap:6px;align-items:center}.esp-range-row input[type=range]{width:100%;height:5px;margin:0;accent-color:var(--blue)}.esp-step-btn{width:31px;height:31px;border:1px solid #d7dce0;border-radius:4px;background:#fff;color:#555;font-size:19px;line-height:1;cursor:pointer}.esp-step-btn:hover{border-color:var(--blue);color:var(--blue)}.esp-number-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:2px}.esp-number-grid label{font-size:10px;color:var(--muted)}.esp-number-grid input{width:100%;height:36px;margin-top:4px;border:1px solid #dfe3e6;border-radius:4px;text-align:center;font-family:inherit;font-size:12px}.esp-total-card{background:#eef9ff;border:1px dashed var(--blue);text-align:center}.esp-total-label{font-size:12px;font-weight:700;margin-bottom:2px}.esp-total{font-size:25px;line-height:1.3;font-weight:900;color:#08a45b;margin:5px 0}.esp-total small{font-size:11px}.esp-area{font-size:10px;color:#70777c}.esp-breakdown{border-top:1px solid #d6e7ef;margin-top:8px;padding-top:5px}.esp-breakdown div{display:flex;justify-content:space-between;gap:7px;padding:3px 0;font-size:9px;color:#6f777d}.esp-breakdown b{color:#333;white-space:nowrap}.esp-note{font-size:8px;color:#7d878d;margin:7px 0 0}.esp-pc [hidden]{display:none!important}
@media(max-width:850px){.esp-pc{grid-template-columns:1fr;max-width:720px}.esp-pc-side{order:-1}.esp-type-grid{display:grid;grid-template-columns:repeat(3,1fr)}.esp-type-option span{min-height:48px;text-align:center;justify-content:center}.esp-type-option span:before{display:none}}
@media(max-width:600px){.esp-pc{margin:12px auto;padding:0 6px;gap:9px}.esp-card{padding:9px}.esp-title{font-size:13px;margin-bottom:9px}.esp-type-grid{grid-template-columns:1fr}.esp-type-option span{min-height:40px}.esp-model-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.esp-door-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.esp-option-image{height:112px}.esp-door-card .esp-option-image{height:112px}.esp-option-name{font-size:10px}.esp-number-grid{grid-template-columns:1fr 1fr}.esp-total{font-size:22px}}

/* v1.4 refinements */
.esp-pc button,.esp-pc input,.esp-pc select,.esp-pc textarea{font-family:inherit}
.esp-pc{font-size:14px}
.esp-card{padding:15px}
.esp-title{font-size:15px;padding-bottom:10px;margin-bottom:13px}
.esp-type-option span{min-height:50px;font-size:14px;padding:9px 13px}
.esp-option-image{height:160px}
.esp-door-card .esp-option-image{height:142px}
.esp-option-name{font-size:13px;padding-top:8px}
.esp-dim-head,.esp-dim-head strong{font-size:14px}
.esp-number-grid label{font-size:12px}
.esp-number-grid input{height:40px;font-size:14px}
.esp-extras-card{padding-bottom:10px}
.esp-toggle-row{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:8px 4px;border-bottom:1px solid #edf0f2;font-size:14px;cursor:pointer}
.esp-toggle-row:last-child{border-bottom:0}
.esp-toggle-row input{position:absolute;opacity:0;pointer-events:none}
.esp-toggle-row i{position:relative;display:block;flex:0 0 46px;width:46px;height:25px;border-radius:20px;background:#c8cdd1;transition:.2s}
.esp-toggle-row i:after{content:"";position:absolute;top:3px;right:3px;width:19px;height:19px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.18);transition:.2s}
.esp-toggle-row input:checked+i{background:#1598e5}
.esp-toggle-row input:checked+i:after{right:24px}
.esp-total-label{font-size:14px}
.esp-total{font-size:28px}
.esp-area{font-size:12px}
.esp-breakdown div{font-size:11px}
.esp-note{font-size:10px}
@media(max-width:600px){.esp-card{padding:12px}.esp-title{font-size:14px}.esp-option-image{height:130px}.esp-door-card .esp-option-image{height:120px}.esp-option-name{font-size:12px}.esp-type-option span{min-height:46px;font-size:13px}.esp-toggle-row{min-height:50px;font-size:13px}.esp-total{font-size:25px}}
