
.lf-calc-modal { display: none; position: fixed; inset: 0; z-index: 99999; font-family: var(--lf-font, inherit); color: #141517; }

.lf-calc-modal.is-open { display: flex; align-items: center; justify-content: center; padding: 16px; }

.lf-calc-backdrop { position: fixed; inset: 0; background: rgba(16, 17, 19, 0.78); backdrop-filter: blur(4px); }

.lf-calc-dialog { position: relative; z-index: 2; width: 100%; max-width: 1040px; max-height: 92vh; background: #fff; border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.45); display: flex; flex-direction: column; overflow: hidden; }

.lf-calc-head { background: linear-gradient(135deg, #141517 0%, color-mix(in srgb, var(--lf-primary, #b8864b) 22%, #1b1d21 78%) 100%); color: #f4f2ee; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.lf-calc-kicker { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--lf-primary, #b8864b); font-weight: 700; margin-bottom: 3px; }

.lf-calc-title { margin: 0; font-size: 18px; font-weight: 700; color: #fff; }

.lf-calc-close { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; width: 34px; height: 34px; border-radius: 6px; font-size: 20px; cursor: pointer; }

.lf-calc-services { background: linear-gradient(180deg, #1c1e23 0%, #141517 100%); padding: 12px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; border-top: 1px solid rgba(255,255,255,.08); }

.lf-calc-srv-btn { display: flex; align-items: center; gap: 9px; padding: 9px 11px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; color: rgba(255,255,255,.76); text-align: left; cursor: pointer; transition: .15s; }

.lf-calc-srv-btn:hover { border-color: var(--lf-primary, #b8864b); color: #fff; }

.lf-calc-srv-btn.is-active { background: linear-gradient(135deg, color-mix(in srgb, var(--lf-primary, #b8864b) 26%, transparent) 0%, color-mix(in srgb, var(--lf-primary, #b8864b) 10%, transparent) 100%); border-color: var(--lf-primary, #b8864b); color: #fff; }

.lf-calc-srv-check { width: 17px; height: 17px; border-radius: 4px; border: 1.5px solid rgba(255,255,255,.35); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }

.lf-calc-srv-btn.is-active .lf-calc-srv-check { background: var(--lf-primary, #b8864b); border-color: var(--lf-primary, #b8864b); color: #fff; }

.lf-calc-srv-title { font-size: 13px; font-weight: 700; display: block; line-height: 1.2; }

.lf-calc-srv-sub { font-size: 10.5px; opacity: .75; display: block; margin-top: 2px; line-height: 1.2; }

.lf-calc-body { display: grid; grid-template-columns: 1fr 330px; overflow-y: auto; flex: 1; }

.lf-calc-controls { padding: 20px 24px 24px; border-right: 1px solid #e6e4df; overflow-y: auto; }

.lf-calc-group { margin-bottom: 18px; }

.lf-calc-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #141517; margin-bottom: 8px; }

.lf-calc-label span.sub { font-weight: 600; text-transform: none; color: var(--lf-primary, #b8864b); font-size: 12px; }


.lf-calc-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; border-bottom: 1px solid #e6e4df; padding-bottom: 10px; }

.lf-calc-tab { padding: 7px 12px; border-radius: 5px; border: 1px solid #dcdad4; background: #f8f7f4; font-size: 12px; font-weight: 600; color: #555860; cursor: pointer; }

.lf-calc-tab.is-active { background: #141517; border-color: #141517; color: #fff; }

.lf-calc-panel { display: none; }

.lf-calc-panel.is-active { display: block; }

.lf-calc-qty-row { display: flex; align-items: center; gap: 12px; }

.lf-calc-range { flex: 1; accent-color: var(--lf-primary, #b8864b); cursor: pointer; height: 6px; }

.lf-calc-num { width: 96px; padding: 7px 10px; border: 1px solid #d4d2cc; border-radius: 5px; font-size: 14px; font-weight: 700; text-align: center; color: #141517; }

.lf-calc-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.lf-calc-pill { background: #f4f2ee; border: 1px solid #e2dfd8; border-radius: 4px; padding: 5px 10px; font-size: 12px; font-weight: 600; color: #3a3c42; cursor: pointer; }

.lf-calc-pill.is-active { background: #141517; color: #fff; border-color: #141517; }

.lf-calc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.lf-calc-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.lf-calc-opt { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 10px 12px; border: 1px solid #dcdad4; border-radius: 6px; background: #fff; font-size: 13px; font-weight: 500; color: #141517; text-align: left; cursor: pointer; line-height: 1.3; }

.lf-calc-opt:hover { border-color: var(--lf-primary, #b8864b); }

.lf-calc-opt.is-active { background: linear-gradient(135deg, color-mix(in srgb, var(--lf-primary, #b8864b) 14%, #fff 86%) 0%, color-mix(in srgb, var(--lf-primary, #b8864b) 6%, #fff 94%) 100%); border-color: var(--lf-primary, #b8864b); font-weight: 600; }

.lf-calc-opt small { display: block; font-size: 11px; color: #6b6e75; font-weight: 400; margin-top: 3px; }

.lf-calc-opt-top { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 6px; }

.lf-calc-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; background: #f4f2ee; color: #555860; }

.lf-calc-opt.is-active .lf-calc-badge { background: #141517; color: var(--lf-primary, #b8864b); }

.lf-calc-custom-input { width: 100%; margin-top: 8px; padding: 9px 12px; border: 1px solid var(--lf-primary, #b8864b); border-radius: 6px; font-size: 13px; display: none; box-sizing: border-box; }

.lf-calc-custom-input.is-visible { display: block; }

.lf-calc-dropzone { border: 1.5px dashed var(--lf-primary, #b8864b); background: #fbfaf7; border-radius: 8px; padding: 18px 16px; text-align: center; cursor: pointer; display: block; }

.lf-calc-dropzone-title { font-size: 13px; font-weight: 700; color: #141517; }

.lf-calc-dropzone-sub { font-size: 11.5px; color: #6b6e75; margin-top: 4px; }

.lf-calc-file-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }

.lf-calc-file-item { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; background: #f4f2ee; border-radius: 5px; font-size: 12px; }

.lf-calc-file-rm { background: none; border: none; color: #b42318; font-weight: 700; cursor: pointer; font-size: 14px; }

.lf-calc-summary { background: linear-gradient(180deg, #f8f6f2 0%, #f1eee8 100%); padding: 22px 20px; display: flex; flex-direction: column; justify-content: space-between; }

.lf-calc-sum-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #6b6e75; font-weight: 700; }

.lf-calc-unit-price { font-size: 26px; font-weight: 800; color: #141517; margin: 4px 0 12px; }

.lf-calc-disc-pill { display: inline-block; margin-bottom: 12px; padding: 4px 9px; border-radius: 4px; font-size: 11.5px; font-weight: 700; background: color-mix(in srgb, var(--lf-primary, #b8864b) 16%, #fff 84%); color: #141517; }

.lf-calc-total-box { background: #fff; border: 1px solid #e4e0d8; border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; }

.lf-calc-total-val { font-size: 21px; font-weight: 800; color: var(--lf-primary, #b8864b); margin-top: 2px; }

.lf-calc-specs { list-style: none; padding: 0; margin: 0 0 16px; font-size: 12px; color: #3a3c42; border-top: 1px solid #e4e0d8; }

.lf-calc-specs li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #ebe8e1; }

.lf-calc-specs li span:last-child { font-weight: 600; text-align: right; color: #141517; }

.lf-calc-submit { width: 100%; padding: 13px 16px; background: linear-gradient(135deg, var(--lf-primary, #b8864b) 0%, color-mix(in srgb, var(--lf-primary, #b8864b) 76%, #141517 24%) 100%); color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 700; cursor: pointer; transition: .15s; }

.lf-calc-submit:hover { background: var(--lf-accent, #141517); }

.lf-calc-note { font-size: 11px; color: #777a82; line-height: 1.4; margin-top: 10px; }

@media (max-width: 860px) {

  .lf-calc-modal.is-open { padding: 8px; align-items: flex-start; }

  .lf-calc-dialog { max-height: 96vh; overflow-y: auto; }

  .lf-calc-services { grid-template-columns: 1fr 1fr; padding: 10px 14px; }

  .lf-calc-srv-sub { display: none; }

  .lf-calc-body { display: block; }

  .lf-calc-controls { border-right: none; border-bottom: 1px solid #e6e4df; padding: 14px; }

  .lf-calc-grid-2, .lf-calc-grid-3 { grid-template-columns: 1fr; }

}


.lf-calc-modal, .lf-calc-modal * { font-family: var(--lf-font, inherit) !important; }
