/* Калькулятор расхода в статье (шаблон plasters-v8): форма, таблица товаров, окно «Купить» из /ajax/calc_item.php */
.hx-calc{margin:24px 0}
.hx-calc-note:empty{display:none}
.hx-calc-note{margin:0 0 12px;font-weight:600}
.hx-calc-form{display:grid;gap:16px;padding:clamp(18px,2.4vw,28px);border:1px solid var(--hx-line);border-radius:var(--hx-r);background:#fff}
.hx-calc-switch{font-weight:600;color:var(--hx-ink)}
.hx-calc-room{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:0 16px}
.hx-calc-area{display:none;max-width:360px}
.hx-calc:has([data-calc-switch]:checked) .hx-calc-room{display:none}
.hx-calc:has([data-calc-switch]:checked) .hx-calc-area{display:block}
.hx-calc-room .hx-field,.hx-calc-area .hx-field{margin:0}
.hx-calc-skill{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 16px}
.hx-calc-skill p{flex:1 1 100%;margin:0}
.hx-calc-skill .hx-field{flex:0 1 280px;margin:0}
.hx-calc-star{color:var(--hx-err)}
.hx-calc-table td:first-child a{color:var(--hx-navy)}
.hx-calc-table td:first-child{min-width:190px}
.hx-calc-table th,.hx-calc-table td{padding-left:10px;padding-right:10px}
.hx-calc-table thead th{white-space:normal}
.hx-calc-table thead td{border-bottom:1.5px solid var(--hx-ink)}
.hx-calc-table td:last-child{padding-right:0}
.hx-calc-group th{padding-top:18px;background:var(--hx-paper,#f6f3ee);text-align:center;font-weight:700;color:var(--hx-ink)}
.hx-calc .hx-calc-buy{display:none}
.hx-calc.is-done .hx-calc-buy{display:inline-flex}

/* окно товара: разметка /ajax/calc_item.php (классы calc_item*) */
.hx-calc-box{width:min(460px,100%)}
.hx-calc-box .calc_close{display:none}
.hx-calc-box .calc_item-title{display:block;margin:0 40px 18px 0;padding-bottom:14px;border-bottom:1.5px solid var(--hx-navy);font-size:22px;line-height:1.2;font-weight:700;color:var(--hx-ink)}
.hx-calc-box .calc_item-price{display:block;font-size:22px;font-weight:700;color:var(--hx-ink)}
.hx-calc-box .calc_item-row{display:flex;flex-flow:row wrap;justify-content:space-between;gap:16px;padding:16px 0}
.hx-calc-box .calc_item>.calc_item-row{flex-flow:column wrap;padding:0}
.hx-calc-box .calc_item-row_block{display:flex;flex-flow:column wrap}
.hx-calc-box .calc_item-row_title{margin-bottom:6px;font-size:14px;color:var(--hx-txt)}
.hx-calc-box .calc_item-row_title.strong{font-weight:700;color:var(--hx-ink)}
.hx-calc-box .calc_item-colors{display:flex;flex-flow:row wrap;gap:4px;max-width:250px}
.hx-calc-box .calc_item-color{width:38px;height:38px;padding:1px;border:1.5px solid var(--hx-line);border-radius:6px;cursor:pointer}
.hx-calc-box .calc_item-color.selected{border-color:var(--hx-navy)}
.hx-calc-box .calc_item-color img{display:block;width:100%;height:100%;border-radius:4px;object-fit:cover}
.hx-calc-box .calc_item-quantity{display:inline-flex;align-items:stretch;height:40px;border:1.5px solid var(--hx-line);border-radius:var(--hx-pill);overflow:hidden;width:max-content}
.hx-calc-box .calc_item-quantity_minus,.hx-calc-box .calc_item-quantity_plus{display:grid;place-items:center;width:36px;cursor:pointer;user-select:none;-webkit-user-select:none;font-size:18px;color:var(--hx-navy)}
.hx-calc-box .calc_item-quantity_value{width:56px;border:0;border-left:1px solid var(--hx-line);border-right:1px solid var(--hx-line);text-align:center;font:inherit;-moz-appearance:textfield;appearance:textfield}
.hx-calc-box .calc_item-quantity_value::-webkit-inner-spin-button,.hx-calc-box .calc_item-quantity_value::-webkit-outer-spin-button{-webkit-appearance:none}
.hx-calc-box .calc_bottom-row{align-items:center;padding-bottom:0}
.hx-calc-box .to-cart{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 26px;border:1.5px solid var(--hx-navy);border-radius:var(--hx-pill);background:var(--hx-navy);color:#fff;font:700 15px/1 Onest,"Onest Fallback",Arial,sans-serif;cursor:pointer}
.hx-calc-box .to-cart:hover{background:var(--hx-navy2);border-color:var(--hx-navy2)}
.hx-calc-box .to-cart i{display:none}
@media (max-width:480px){
  .hx-calc-box .calc_item-row{flex-direction:column}
  .hx-calc-box .calc_bottom-row{flex-flow:row wrap}
  .hx-calc-box .calc_bottom-row .calc_item-row_title{width:100%}
}
