:root{
  --bg:#f5f7fa;
  --card:#ffffff;
  --text:#1f2a37;
  --muted:#6b7280;
  --line:#e5e7eb;
  --accent:#27ae60;
  --accent2:#2c3e50;
  --shadow:0 10px 25px rgba(0,0,0,.08);
  --radius:14px;
}

.lj-custom-wrap{
  background: var(--bg);
  padding: 18px;
  display:flex;
  justify-content:center;
}

.lj-custom{
  width:100%;
  max-width: 760px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  border: 1px solid var(--line);
}

.lj-custom__head{
  background: linear-gradient(135deg, var(--accent) 0%, #2ecc71 100%);
  color:#fff;
  padding: 16px 18px;
}

.lj-custom__title{
  margin:0;
  font-size: 18px;
  font-weight: 900;
}

.lj-custom__sub{
  margin:4px 0 0;
  opacity:.92;
  font-size: 13px;
}

.lj-custom__body{
  padding: 16px 18px 18px;
}

.lj-row{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
  align-items:flex-end;
}

.lj-field{
  flex: 1 1 220px;
}

.lj-label{
  display:block;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
}

.lj-input{
  width:100%;
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 800;
  outline:none;
  transition: .2s;
}

.lj-input:focus{
  border-color: rgba(39,174,96,.9);
  box-shadow: 0 0 0 4px rgba(39,174,96,.18);
}

.lj-unit{
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.lj-btn{
  border:0;
  cursor:pointer;
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 900;
  font-size: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color:#fff;
  transition:.18s;
  flex: 0 0 auto;
}

.lj-btn:hover{ transform: translateY(-1px); box-shadow: 0 10px 18px rgba(0,0,0,.12); }
.lj-btn:active{ transform: translateY(0px); }

.lj-status{
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.lj-status.ok{ color: #1b7f3a; font-weight: 900; }
.lj-status.err{ color: #b42318; font-weight: 900; }

.lj-result{
  margin-top: 14px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
}

.lj-badge{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding: 14px 16px;
  border-radius: 14px;
  background: #3b3b3b;      /* сива позадина */
  color:#fff;               /* бел текст */
  font-weight: 900;
  font-size: 26px;
  letter-spacing: .3px;
  min-width: 240px;
  box-shadow: 0 10px 18px rgba(0,0,0,.18);
  transform: rotate(-2deg);
}

.lj-badge .lj-price{ line-height: 1.05; }

.lj-badge .lj-unitline{
  margin-top: 6px;
  font-size: 12px;
  font-weight: 900;
  opacity:.92;
  transform: rotate(2deg);
}

.lj-subprices{
  display:flex;
  flex-direction:column;
  gap: 6px;
  color: var(--text);
  font-weight: 900;
}

.lj-subprices .muted{
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

@media (max-width: 520px){
  .lj-badge{ width:100%; }
}
