/* Chapino calculator — PrintStudio light */
[hidden]{display:none !important}
.ch-calc{max-width:none;margin:20px 0 0;color:var(--text);position:relative}
.ch-calc__tabs{display:flex;gap:8px;margin:16px 0}
.ch-calc__tab{border:1px solid var(--line);background:#fff;color:var(--muted);padding:10px 18px;border-radius:12px;cursor:pointer;font-weight:700}
.ch-calc__tab.is-active{background:var(--lime);border-color:var(--lime);color:#111}
.ch-calc__panel[hidden]{display:none!important}
.ch-calc__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,500px);gap:0;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow);margin-top:12px;align-items:start}
.ch-calc__fields{display:grid;grid-template-columns:1fr 1fr;gap:18px 22px;padding:22px 24px;align-content:start}
.ch-calc__fields--single{display:grid;grid-template-columns:1fr;padding:18px;background:#fff;border:1px solid var(--line);border-radius:18px;margin-top:12px}
.ch-calc__book-only,.ch-calc__booklet-only{display:contents}
.ch-calc__book-only[hidden],.ch-calc__booklet-only[hidden]{display:none!important}
.ch-field--wide{grid-column:1 / -1}
.ch-calc .service-card{min-height:0;padding:12px 14px}
.ch-calc .service-card h3{margin:0;font-size:13.5px}
.ch-calc .service-grid{gap:8px}
.ch-field label{display:block;margin-bottom:8px;font-weight:700}
.ch-calc__price{padding:24px 22px;background:#141716;color:#d9dcd9}
.ch-price__label{font-size:16px;color:#fff;font-weight:800}
.ch-price__row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:12px 0;border-bottom:1px solid #2a2e2b;color:#c5c8c6;font-size:14px}
.ch-price__row strong{color:#fff;font-weight:700}
.ch-price__total strong,#ch-total{font-size:28px;font-weight:800;color:var(--lime);line-height:1.3}
.ch-price__breakdown{list-style:none;margin:12px 0;padding:0}
.ch-price__breakdown li{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:#b7bbbb;padding:6px 0}
.ch-price__note{font-size:13px;color:#d5d8d4;margin:14px 0 0;line-height:1.8}
.ch-price__note.is-error{color:#ff8b8b}
.ch-customer{margin-top:12px;display:grid;gap:8px}
.ch-customer[hidden],#ch-order-actions[hidden]{display:none!important}
.ch-customer .ch-field label{color:#c8cbca}
.ch-customer input,.ch-customer textarea,.ch-customer select{background:#0c0e0f;color:#f3f4ef;border-color:#2a2e2b;padding:10px 12px}
.ch-file{display:flex;align-items:center;gap:8px;cursor:pointer}
.ch-file input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.ch-file span{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:999px;border:1px solid #3a3f3c;color:#fff;font-size:12px;font-weight:700}
.ch-file-name{display:block;margin-top:6px;color:#d7e38a;font-size:12px}
.ch-review{margin-top:12px;padding:12px;border-radius:16px;background:#101312;border:1px solid #2a2e2b}
.ch-review h3{margin:0 0 8px;color:#fff;font-size:15px}
.ch-review li{display:flex;justify-content:space-between;gap:10px;padding:5px 0;color:#d5d8d4;font-size:13px;border-bottom:1px solid #2a2e2b}
.ch-success{margin-top:12px;padding:14px;border-radius:16px;background:var(--lime-soft);color:#24300a;font-weight:700;line-height:1.8}
.ch-pay{display:grid;gap:8px;margin-top:10px}
.ch-success .ch-hint{color:color-mix(in srgb, var(--lime) 35%, #1a2a24);font-weight:500}
.ch-success .ch-btn--ghost{color:#1c2410;background:#fff;border:1px solid #8aa03a}
.ch-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 14px;border-radius:999px;font-weight:700;width:100%;margin-top:8px;cursor:pointer}
.ch-btn--primary{background:var(--lime);color:#0b0d0e;border:0}
.ch-btn--ghost{background:transparent;border:1px solid #2a2e2b;color:#d9dcd9}
.ch-hint{font-size:11px;color:#8e9395}
.ch-quote-intro{color:var(--muted);margin-bottom:12px}
.option-row{display:flex;flex-wrap:wrap;gap:6px}
.option{border:1px solid var(--line,#e4ddd0);background:#fff;color:#4a4f50;padding:8px 14px;border-radius:999px;font-size:13px;font-weight:700;line-height:1.5}
.option:hover,.option.active{border-color:color-mix(in srgb, var(--lime) 42%, #1c2e28);color:color-mix(in srgb, var(--lime) 30%, #16241f);background:var(--lime-soft)}
.counter{display:flex;align-items:center;gap:8px;width:100%}
.counter button{width:34px;height:34px;background:#fff;color:color-mix(in srgb, var(--lime) 42%, #1c2e28);border:1px solid var(--line,#e4ddd0);border-radius:999px;font-size:18px}
.counter input{text-align:center;direction:ltr;flex:1;min-height:34px;padding:6px 8px}
.ch-nums{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ch-field--hidden,.is-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.ch-select{width:100%;min-height:46px;border:1px solid var(--line,#e4ddd0);border-radius:12px;background:#fff;padding:0 14px;font:inherit;color:#222}
.ch-select:focus{outline:none;border-color:color-mix(in srgb, var(--lime) 42%, #1c2e28);box-shadow:0 0 0 3px rgba(var(--lime-rgb),.35)}
@media(max-width:900px){
  .ch-calc__grid{grid-template-columns:1fr}
  .ch-calc__price{border-right:0;border-top:1px solid #2a2e2b}
  .ch-calc__fields{grid-template-columns:1fr;padding:18px}
  .ch-calc .service-grid{
    display:flex;grid-template-columns:none;gap:8px;overflow-x:auto;
    scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;padding:2px 2px 8px;margin:0
  }
  .ch-calc .service-card{
    flex:0 0 128px;min-height:86px;scroll-snap-align:start;padding:10px 12px
  }
  .ch-calc .service-card h3{margin-top:6px;font-size:13px}
  .ch-calc .service-card small{font-size:10px}
}

/* Order form steps + sections */
.ch-calc__steps{
  display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0 0 16px;padding:0;
}
.ch-calc__steps li{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 12px;border-radius:12px;background:#f4f5f2;border:1px solid var(--line,#e7e2d8);
  font-size:12.5px;font-weight:700;color:#5c615e;
}
.ch-calc__steps li span{
  display:inline-flex;align-items:center;justify-content:center;
  width:22px;height:22px;border-radius:50%;background:#e4e6df;font-size:11px;font-weight:800;
}
.ch-calc__steps li.is-active{background:var(--lime-soft);border-color:#d5e88a;color:#2a3408}
.ch-calc__steps li.is-active span{background:var(--lime);color:#141716}
.ch-calc__steps li.is-done{background:#eef6e8;border-color:#c6e0b8;color:#2a4a20}
.ch-section-title{
  grid-column:1/-1;margin:0 0 4px;font-size:14px;font-weight:800;color:#141716;
  padding-bottom:6px;border-bottom:1px dashed var(--line,#e7e2d8);
}
.ch-section-title--light{color:#eef0ea;border-bottom-color:#2a2e2b}
.ch-calc .ch-field input:focus,
.ch-calc .ch-field select:focus,
.ch-calc .ch-field textarea:focus{
  outline:2px solid rgba(var(--lime-rgb),.45);outline-offset:1px;border-color:var(--lime);
}
.ch-calc .ch-field label .req{color:#c43b3b}
.ch-hint{display:block;margin-top:6px;font-size:12px;color:#6a6f70;font-weight:500}
.ch-calc__fields{gap:14px}
@media(max-width:640px){
  .ch-calc__steps{gap:6px}
  .ch-calc__steps li{flex:1 1 calc(50% - 6px);justify-content:center;font-size:11.5px}
}

.ch-quote-fields{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  width:100%;
  max-width:none;
  margin-top:12px;
  padding:18px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-sizing:border-box;
}
.ch-quote-row{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  width:100%;
}
.ch-quote-row .ch-field{min-width:0;width:100%}
.ch-quote-row .ch-field label{display:block;margin-bottom:6px}
.ch-quote-row .ch-field input,
.ch-quote-row .ch-field select,
.ch-quote-fields .ch-field textarea{
  width:100%;
  max-width:none;
  box-sizing:border-box;
}
.ch-quote-fields .ch-field--full{width:100%}
.ch-quote-actions{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:12px;
  width:100%;
}
.ch-file-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  margin:0;
  flex:0 0 auto;
}
.ch-file-btn input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.ch-file-btn__ui{
  display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 16px;
  border-radius:14px;background:#141716;color:#fff;font-size:13px;font-weight:800;white-space:nowrap
}
.ch-file-btn__name{font-size:12.5px;color:var(--muted);max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ch-quote-submit{
  width:100%;
  min-height:46px;
  border-radius:14px;
  margin:0 !important;
}
@media(max-width:900px){
  .ch-quote-row{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .ch-quote-row{grid-template-columns:1fr}
  .ch-quote-actions{grid-template-columns:1fr}
  .ch-file-btn{width:100%}
  .ch-file-btn__ui{width:100%}
}

#ch-panel-quote,.ch-calc__panel#ch-panel-quote{width:100%}
#ch-quote-form.ch-calc__form{width:100%;max-width:none}

.ch-calc .service-card{flex-direction:row;align-items:center;gap:10px}
.ch-calc .service-icon{width:36px;height:36px}
.ch-calc .service-icon svg{width:22px;height:22px}

.ch-note--booklet{margin:12px 0 0;padding:12px 14px;border-radius:12px;background:#fff8e8;border:1px solid #f0e0b0;color:#5c4a1a;font-size:12.5px;line-height:1.7}
.ch-note--booklet strong{display:block;margin-bottom:6px}
.ch-note--booklet ul{margin:0;padding:0 18px 0 0;list-style:disc}
.ch-note--booklet li{margin:0 0 4px}

.ch-q-spec{margin:14px 0;padding:14px;border:1px solid #e8e2d6;border-radius:14px;background:#faf8f3}
.ch-q-spec[hidden]{display:none!important}
.ch-q-spec__title{margin:0 0 12px;font-size:13px;font-weight:800;color:#3d4a40}

.ch-quote-row--3{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px 14px}
@media (max-width:900px){
  .ch-quote-row--3{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:560px){
  .ch-quote-row--3{grid-template-columns:1fr!important}
}

.ch-quote-row--2{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px 14px}
@media (max-width:560px){
  .ch-quote-row--2{grid-template-columns:1fr!important}
}

.ch-quote-row--3 > .ch-field{width:100%;min-width:0}

/* —— Calc top bar: lead + steps —— */
.ch-calc__top{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px 20px;
  margin:0 0 14px;
  width:100%;
}
.ch-calc__intro{flex:1 1 280px;min-width:0}
.ch-calc__title{margin:0 0 6px;font-size:1.35rem;font-weight:800;color:#141716;line-height:1.35}
.ch-calc__lead{margin:0;font-size:13.5px;color:#6b6560;line-height:1.7;max-width:52ch}
.ch-calc__lead--spacer{min-height:0}
.ch-calc__steps{
  display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0;
  flex:0 1 auto;justify-content:flex-start;
}
.ch-calc__steps li{flex:0 1 auto}
/* Service tabs: full width equal columns */
.ch-calc .service-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr)) !important;
  gap:10px !important;
  width:100%;
  margin:0 0 14px;
  overflow:visible;
}
.ch-calc .service-card{
  width:100%;
  min-width:0;
  flex:none;
}
.ch-quote-row--4{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px 14px}
@media (max-width:900px){
  .ch-calc__top{flex-direction:column;align-items:stretch}
  .ch-calc__steps{width:100%}
  .ch-calc__steps li{flex:1 1 calc(50% - 8px);justify-content:center}
  .ch-quote-row--4{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .ch-calc .service-grid{
    display:flex !important;
    grid-template-columns:none !important;
    overflow-x:auto;
  }
  .ch-calc .service-card{flex:0 0 140px}
}
@media (max-width:560px){
  .ch-quote-row--4{grid-template-columns:1fr!important}
}
section.section--calc .section-head--calc{
  margin-bottom:8px;
}
section.section--calc .section-head--calc .section-title p{display:none}



/* calc mobile compact 4.16 */
@media (max-width:768px){
  .ch-calc{margin:0!important}
  .ch-calc__top{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:8px!important;
    margin:0 0 10px!important;
    min-height:0!important;
  }
  .ch-calc__intro,.ch-calc__lead--spacer{min-height:0!important}
  .ch-calc__lead--spacer{display:none!important}
  .ch-calc__steps{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    width:100%!important;
    margin:0!important;
    gap:6px!important;
  }
  .ch-calc__steps li{flex:none!important;margin:0!important}
  .ch-calc .service-grid{margin-top:0!important}
}

/* calc gap 4.20 */
@media (max-width:768px){
  section.section--calc .section-head--calc{margin:0 0 4px!important;padding:0!important;min-height:0!important}
  section.section--calc .section-title{margin:0!important}
  section.section--calc .section-title h2{margin:0 0 4px!important}
  section.section--calc .section-title p,
  section.section--calc .section--calc__lead{margin:0 0 6px!important}
  .ch-calc{margin:0!important;padding:0!important}
  .ch-calc__top{margin:0 0 8px!important;gap:6px!important;min-height:0!important}
  .ch-calc__intro{margin:0!important;min-height:0!important}
  .ch-calc__steps{margin:0!important}
  .ch-calc .service-grid{margin:0 0 10px!important}
}

/* top--embed 4.21 */
.ch-calc__top--embed{display:block!important;margin:0 0 10px!important;min-height:0!important}
.ch-calc__top--embed .ch-calc__steps{margin:0!important}
@media (max-width:768px){
  .ch-calc__top--embed{margin:0 0 8px!important}
  section.section--calc .section-head--calc{margin:0 0 6px!important}
  section.section--calc .ch-calc{margin-top:0!important}
}

/* hide steps 4.23 */
.ch-calc__steps{display:none!important}
.ch-calc__top--embed{display:none!important;height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
