/* cw-hdd-calculator.css — layout for the NVR/DVR hard drive calculator (#cc-calc) under cw/clean (Hyva).
   Replaces the Luma theme's Magento_Cms/css/mathcalc.css. Load only on /nvr-dvr-record-time-calculator.html. 2026-11-17 speed chat. */
#cc-calc{--c-line:var(--cw-line,#dfe5ec);--c-soft:var(--cw-blue-soft,#eaf2fb);--c-blue:var(--cw-blue,#1565c0);--c-navy:var(--cw-navy,#0b2545);margin:16px 0 32px;font-size:15px}
#cc-calc .grid-container>.grid12-12:first-child{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px}
#cc-calc #add-row,#cc-calc #clear-all{display:inline-flex;align-items:center;gap:6px;width:auto;padding:9px 16px;border-radius:999px;font-weight:600;cursor:pointer;user-select:none}
#cc-calc #add-row{background:var(--c-blue);color:#fff}
#cc-calc #clear-all{background:#fff;color:var(--c-navy);border:1px solid var(--c-line)}
#cc-calc #add-row span,#cc-calc #clear-all span{font-weight:700}
#cc-calc .calc-head,#cc-calc-content .row{display:grid;grid-template-columns:.7fr 1fr 1.6fr 1.6fr 1.4fr .8fr 1.4fr .7fr;gap:8px;align-items:center}
#cc-calc .calc-head{background:var(--c-soft);border-radius:8px;padding:8px 10px;font-weight:600;color:var(--c-navy);font-size:13px}
#cc-calc-content{display:flex;flex-direction:column}
#cc-calc-content .row{padding:8px 10px;border-bottom:1px solid var(--c-line)}
#cc-calc-content .mobileonly{display:none}
#cc-calc input[type=text],#cc-calc select{width:100%;min-width:0;height:38px;padding:0 8px;border:1px solid var(--c-line);border-radius:6px;background:#fff;color:#222;font:inherit;box-sizing:border-box}
#cc-calc input[name="bitrate[]"]{background:#f7fafd;color:#51606f}
#cc-calc #days{max-width:120px}
#cc-calc .button.dropdown{display:block;padding:0;margin:0;border:0;border-radius:0;background:none;box-shadow:none;min-height:0;width:100%;color:inherit}
#cc-calc-content .audio{width:20px;height:20px}
#cc-calc-content .btn-remove{justify-self:center;width:32px;height:32px;line-height:32px;text-align:center;border-radius:50%;color:#b00020;font-weight:700;cursor:pointer;border:1px solid var(--c-line)}
#cc-calc .grid-sub{display:flex;justify-content:space-between;align-items:center;padding:10px;margin:8px 0;background:var(--c-soft);border-radius:8px}
#cc-calc .removablespacer{display:none}
#cc-calc #sub-total{font-weight:700}
#cc-calc .grid-total{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end;justify-content:space-between;padding:14px;border:1px solid var(--c-line);border-radius:8px}
#cc-calc .grid-total h4{margin:0 0 6px;font-size:16px;color:var(--c-navy)}
#cc-calc .grid-total button{padding:10px 22px;border:0;border-radius:999px;background:var(--cw-cta,#f59e0b);color:#fff;font-weight:700;cursor:pointer}
#cc-calc #calc-total{font-size:22px;font-weight:800;color:var(--c-navy)}
#cc-calc .grid-total h4 .grid12-6{display:block}
@media (max-width:767px){
 #cc-calc .calc-head{display:none}
 #cc-calc-content .row{grid-template-columns:1fr 1fr;border:1px solid var(--c-line);border-radius:8px;margin-bottom:10px}
 #cc-calc-content .row-count{grid-column:1/2;font-weight:700;color:var(--c-navy)}
 #cc-calc-content .row-count::before{content:"Line "}
 #cc-calc-content .btn-remove{grid-column:2/3;grid-row:1;justify-self:end}
 #cc-calc-content .mobileonly{display:inline;font-size:13px;color:#51606f}
 #cc-calc-content .mobileonly br{display:none}
 #cc-calc-content .brate::before{content:"Kbps per camera";display:block;font-size:13px;color:#51606f}
 #cc-calc-content .row>div:nth-child(2) .mobileonly{display:block}
}
#cc-calc{display:flow-root}#cc-calc .grid-bottom,#cc-calc .grid-sub,#cc-calc .grid-total,#cc-calc .calc-head{float:none;width:auto;height:auto}#cc-calc .grid-container{height:auto}
#cc-calc select{appearance:auto;-webkit-appearance:menulist;font-weight:400}
