.hdc{--hdc-primary:#0f8a4b;--hdc-accent:#d97706;font-family:'Bricolage Grotesque', Sans-serif;color:#0f172a;width:100%;max-width:95%;margin:0 auto;padding:20px 12px;box-sizing:border-box;container-type:inline-size;line-height:1.4}
.hdc *,.hdc *:before,.hdc *:after{box-sizing:border-box}
.hdc button{font-family:inherit;line-height:1.2;text-transform:none;letter-spacing:0;box-shadow:none;margin:0}
.hdc input{font-family:inherit;margin:0;box-shadow:none;max-width:100%;padding: 10px !important;
    min-height: 20px !important}
.hdc h2,.hdc h3,.hdc h4,.hdc p{letter-spacing:0}
.hdc-head{text-align:center;margin-bottom:24px}
.hdc-head h2{margin:0;font-size:32px;font-weight:800;position:relative;display:inline-block;padding-bottom:10px;color:#0f172a}
.hdc-head h2:after{content:"";position:absolute;left:25%;right:25%;bottom:0;height:3px;border-radius:2px;background:var(--hdc-primary)}
.hdc-head p{margin:12px 0 0;color:#64748b;font-size:15px}
.hdc-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
.hdc-panel,.hdc-quote-wrap{min-width:0;max-width:100%}
.hdc-panel{background:#fff;border-radius:14px;padding:18px;border-top:3px solid var(--hdc-primary);box-shadow:0 6px 24px rgba(15,23,42,.08)}
.hdc-ptitle{margin:0 0 14px;text-align:center;color:var(--hdc-primary);font-size:20px;font-weight:700;font-family: 'Bricolage Grotesque'}
.hdc-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:12px;margin-bottom:12px}
.hdc-box[hidden],.hdc-ps[hidden],.hdc-slabbox[hidden]{display:none}
.hdc-lbl{font-size:13px;font-weight:600;margin-bottom:6px;color:#0f172a}
.hdc-center{text-align:center}
.hdc-toggle{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.hdc-toggle button{padding:9px 6px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;font-weight:600;font-size:13px;cursor:pointer;color:#0f172a}
.hdc-toggle button.active{background:#dcfce7;border-color:var(--hdc-primary);color:var(--hdc-primary)}
.hdc-total{background:linear-gradient(135deg, var(--hdc-primary), #2765c7);color:#fff;border-radius:8px;text-align:center;padding:10px;margin-bottom:12px}
.hdc-total strong{display:block;font-size:24px;font-weight:800}
.hdc-total small{font-size:11px;font-weight:600}
.hdc-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-bottom:12px}
.hdc-field{min-width:0;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:10px}
.hdc-stepper{display:flex;width:100%;border:1px solid #cbd5e1;border-radius:8px;overflow:hidden;background:#fff}
.hdc-stepper button{flex:0 0 32px;width:32px;border:0;background:#f1f5f9;font-size:18px;font-weight:700;cursor:pointer;color:#0f172a;padding:0}
.hdc-stepper input{flex:1 1 0;width:0;min-width:0;border:0;text-align:center;font-weight:700;font-size:16px;padding:8px 2px;-moz-appearance:textfield;background:#fff;color:#0f172a;border-radius:0;height:auto}
.hdc-stepper input::-webkit-outer-spin-button,.hdc-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

.hdc-btnrow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-bottom:12px}
.hdc-btnrow>*:only-child{grid-column:1/-1}
.hdc-ps-btn{border:1px solid #cbd5e1;background:#f8fafc;border-radius:8px;padding:10px;font-weight:600;font-size:13px;cursor:pointer;color:#0f172a}
.hdc-gstbox{display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid #cbd5e1;border-radius:8px;padding:8px 10px;font-weight:700;font-size:13px;color:var(--hdc-primary);background:#fff;cursor:pointer;margin:0}
.hdc-switch{position:relative;display:inline-block;width:44px;height:24px;flex:0 0 44px}
.hdc-switch input{opacity:0;width:0;height:0;position:absolute}
.hdc-switch span{position:absolute;inset:0;background:#cbd5e1;border-radius:24px;transition:.2s;cursor:pointer}
.hdc-switch span:before{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s}
.hdc-switch input:checked+span{background:var(--hdc-primary)}
.hdc-switch input:checked+span:before{transform:translateX(20px)}

/* Price settings panel */
.hdc-ps{border:1px solid #86efac;border-radius:14px;padding:12px;background:#fff}
.hdc-ps-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:10px}
.hdc-ps-head strong{display:block;font-size:15px}
.hdc-ps-head small{color:#64748b;font-size:11px}
.hdc-ps-close{width:26px;height:26px;border-radius:50%;border:1px solid #cbd5e1;background:#f1f5f9;color:#64748b;cursor:pointer;font-size:16px;padding:0}
.hdc-ps-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.hdc-ps-col{min-width:0;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:10px}
.hdc-ps-col h4{margin:0 0 8px;padding-bottom:6px;border-bottom:1px dashed #cbd5e1;font-size:12px;font-weight:700;color:#0f172a}
.hdc-psrow{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-bottom:8px}
.hdc-pslbl{font-size:12px;color:#334155;min-width:0}
.hdc-ig,.hdc-sl .rs{display:inline-flex;align-items:center;flex:0 0 auto;width:104px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;padding:0 6px;overflow:hidden}
.hdc-ig i,.hdc-sl .rs i{font-style:normal;font-size:12px;color:#64748b;margin-right:4px}
.hdc-ig em{font-style:normal;font-size:10px;color:#94a3b8;margin-left:3px;white-space:nowrap}
.hdc-ig input,.hdc-sl input{flex:1 1 0;width:0;min-width:0;border:0;background:transparent;text-align:right;font-weight:600;font-size:13px;padding:5px 0;color:#0f172a;-moz-appearance:textfield;height:auto;outline:0}
.hdc-ig input::-webkit-outer-spin-button,.hdc-ig input::-webkit-inner-spin-button,.hdc-sl input::-webkit-outer-spin-button,.hdc-sl input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.hdc-ps-btns{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin:12px 0}
.hdc-ps-btns button{border:1px solid #cbd5e1;background:#f1f5f9;color:#334155;border-radius:6px;padding:7px 12px;font-size:12px;font-weight:600;cursor:pointer}
.hdc-ps-btns .hdc-b-save{background:#152d61;border-color:#152d61;color:#fff}
.hdc-ps-btns .hdc-b-slabs{background:#fff;border-color:#38bdf8;color:#0284c7}
.hdc-slabbox{border:1px solid #e2e8f0;border-radius:10px;padding:10px;background:#f8fafc}
.hdc-slabtitle{font-size:13px;font-weight:700;margin-bottom:8px}
.hdc-slabtools{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:10px}
.hdc-steplbl{font-size:12px;color:#334155}
.hdc-step{width:52px;border:1px solid #cbd5e1;border-radius:6px;text-align:center;padding:4px;font-size:12px;background:#fff;color:#0f172a}
.hdc-slabtools button{border:1px solid #cbd5e1;background:#fff;color:#334155;border-radius:6px;padding:5px 9px;font-size:12px;font-weight:600;cursor:pointer}
.hdc-slabtools button.g{background:#152d61;border-color:#152d61;color:#fff}
.hdc-slabgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;max-height:260px;overflow-y:auto;padding-right:6px;scrollbar-width:thin;scrollbar-color:#22c55e #e2e8f0}
.hdc-slabgrid::-webkit-scrollbar{width:6px}
.hdc-slabgrid::-webkit-scrollbar-thumb{background:#152d61;border-radius:6px}
.hdc-sl{display:flex;justify-content:space-between;align-items:center;gap:6px;background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:6px 8px;font-size:12px;font-weight:600;min-width:0}
.hdc-sl .rs{width:84px}

/* Quotation card */
.hdc-quote{position:relative;overflow:hidden;background:#fff;border:2px solid var(--hdc-primary);border-radius:12px;padding: 22px 25px;font-size:13px;box-shadow:0 6px 24px rgba(15,23,42,.08)}
.hdc-wm{position:absolute;left:50%;top:50%;width:140px;height:140px;object-fit:contain;transform:translate(-50%,-50%);opacity:.1;pointer-events:none}
.hdc-quote>*:not(.hdc-wm){position:relative}
.hdc-qhead{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px;flex-wrap:wrap}
.hdc-qtitle{font-weight:800;font-size:12px}
.hdc-badges span{font-size:10px;font-weight:700;border-radius:10px;padding:2px 8px;margin-left:4px}
.hdc-badges .b1{background:#e0f2fe;color:#0369a1;border:1px solid #7dd3fc}
.hdc-badges .b2{background:#dcfce7;color:var(--hdc-primary);border:1px solid #86efac}
.hdc-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:10px}
.hdc-stats div{border:1px solid #e2e8f0;border-radius:6px;padding:4px;text-align:center}
.hdc-stats small{display:block;font-size:8px;font-weight:700;color:#64748b}
.hdc-stats b{font-size:12px}
.hdc-break{border:1px solid #e2e8f0;border-radius:8px;padding:8px;margin-bottom:8px;background:rgba(255,255,255,.85)}
.hdc-btitle{color:var(--hdc-primary);font-weight:700;border-bottom:1px dashed #cbd5e1;padding-bottom:5px;margin-bottom:4px}
.hdc-row{display:grid;grid-template-columns:1.3fr 1fr 1fr;padding:3px 0;border-bottom:1px solid #f1f5f9}
.hdc-row .c{text-align:center}
.hdc-row .r{text-align:right;color:var(--hdc-primary);font-weight:600}
.hdc-btotal{border-top:2px solid var(--hdc-primary);border-bottom:0;margin-top:6px;padding-top:6px;color:var(--hdc-primary);font-weight:700}
.hdc-line{display:flex;justify-content:space-between;gap:10px;padding:5px 0;border-bottom:1px solid #f1f5f9}
.hdc-line span{color:#475569}
.hdc-sub{font-weight:700}
.hdc-sub span{color:#0f172a}
.hdc-grand{display:flex;justify-content:space-between;align-items:center;border-top:2px solid var(--hdc-primary);margin-top:6px;padding-top:8px}
.hdc-grand strong{display:block;font-size:17px;color:var(--hdc-primary)}
.hdc-grand small{color:var(--hdc-primary);font-weight:600;font-size:11px}
.hdc-grand em{font-style:normal;font-size:22px;font-weight:800;color:var(--hdc-primary)}
.hdc-note{display:flex;gap:8px;margin-top:10px;padding:8px;border-left:3px solid #94a3b8;background:#f1f5f9;border-radius:6px;font-size:11px;line-height:1.5;color:#334155}
.hdc-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-top:12px}
.hdc-actions button{border:0;border-radius:8px;padding:11px;color:#fff;font-weight:700;font-size:14px;cursor:pointer}
.hdc-save{background:linear-gradient(135deg, #132755, #2a56bb)}
.hdc-wa{background:linear-gradient(135deg,#22c55e,#16a34a)}

/* Responsive – based on the width of the area the shortcode sits in */
@container (max-width:760px){
	.hdc-grid{grid-template-columns:minmax(0,1fr)}
	.hdc-head h2{font-size:26px}
}
@container (max-width:460px){
	.hdc-fields,.hdc-ps-cols,.hdc-btnrow{grid-template-columns:minmax(0,1fr)}
	.hdc-slabgrid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:800px){.hdc-grid{grid-template-columns:minmax(0,1fr)}}
input[type=text], input[type=email], input[type=url], input[type=password], input[type=search], input[type=number], input[type=tel], input[type=range], input[type=date], input[type=month], input[type=week], input[type=time], input[type=datetime], input[type=datetime-local], input[type=color], textarea, select, .wp-block-search .wp-block-search__input, .wc-block-product-search .wc-block-product-search__field, .woocommerce .select2-container .select2-selection--single, .woocommerce-page .select2-container .select2-selection--single{
	min-height:15px!important;
}
.hdc-slabtools.hdc input{
	min-width:100px!important;
}