.order-panel{
  flex:1;
  min-width: 300px;
  max-width: 390px;
  background: linear-gradient(180deg, rgba(250,247,241,0.98), rgba(243,238,230,0.96));
  border-radius: 24px;
  border: 1px solid rgba(73,48,33,0.08);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  box-shadow: 0 20px 40px rgba(74,49,29,0.09);
  align-self: center;
}

.order-header{
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--line);
}

.order-header h2{
  font-family: var(--font-display);
  font-size:18px;
  margin:0;
  color: var(--ink);
}

.order-list{
  flex:1;
  overflow-y:auto;
  padding: 10px 16px;
  min-height: 80px;
}

.empty-order{
  color: var(--muted);
  font-size: 14px;
  text-align:center;
  padding: 30px 10px;
  line-height:1.5;
}

.order-line{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}

.order-line:last-child{ border-bottom:none; }

.order-line-name{
  flex:1;
  font-size: 14.5px;
  font-weight:500;
}

.order-line-milk{
  display:inline-block;
  margin-top:2px;
  font-size: 11px;
  font-weight:600;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 1px 8px;
  border-radius: 999px;
}

.order-line-price{
  font-size:13px;
  color: var(--muted);
  display:block;
  margin-top:3px;
}

.stepper{
  display:flex; align-items:center; gap:8px;
}

.stepper button{
  width:28px; height:28px;
  border-radius:50%;
  border:1px solid var(--line);
  background: var(--panel-alt);
  color: var(--ink);
  font-size:16px;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  line-height:1;
}

.stepper button:active{ background: var(--accent-soft); border-color:var(--accent); }
.stepper span{ min-width:16px; text-align:center; font-weight:600; font-size:14px;}
.line-total{
  width: 58px;
  text-align:right;
  font-weight:700;
  font-size:14px;
}

.total-strip{
  position:relative;
  margin: 14px 16px 0;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, rgba(200,210,194,0.9), rgba(223,229,218,0.9));
  border-radius: 16px 16px 6px 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

.total-strip::before{
  content:"";
  position:absolute;
  left:0; right:0; top:-1px;
  height:1px;
  border-top: 1px dashed var(--line);
}

.total-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
}

.tax-row{
  margin-top: 7px;
}

.total-final-row{
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.total-label{
  font-size: 12px;
  text-transform:uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
}

.total-amount{
  font-family: var(--font-display);
  font-weight:700;
  font-size: 36px;
  color: var(--accent-deep);
}

.total-value{
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-deep);
}

.order-footer{
  padding: 14px 16px 18px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.btn{
  flex:1;
  padding: 14px;
  border-radius: 12px;
  font-weight:700;
  font-size: 15px;
  border:none;
  cursor:pointer;
  font-family: var(--font-body);
  transition: transform .12s ease, box-shadow .15s ease, opacity .15s ease;
}

.btn:hover:not(:disabled){ transform: translateY(-1px); }

.btn-primary{
  background: linear-gradient(135deg, var(--accent), #7f9274);
  color: #FFFFFF;
  box-shadow: 0 10px 18px rgba(143,161,138,0.24);
}

.btn-primary:disabled{
  background: var(--panel-alt-2);
  color: var(--muted);
  cursor:not-allowed;
}

.btn-primary:active:not(:disabled){ transform: scale(0.97); }

.btn-secondary{
  background: rgba(255,255,255,0.42);
  border: 1.5px solid rgba(143,161,138,0.7);
  color: var(--accent-deep);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.btn-secondary:disabled{
  border-color: var(--line);
  color: var(--muted);
  cursor:not-allowed;
}

.btn-secondary:active:not(:disabled){ transform: scale(0.97); }

.report-btn{
  margin: 0 16px 16px;
  padding: 10px;
  width: calc(100% - 32px);
  border: 1px solid rgba(143,161,138,0.8);
  border-radius: 10px;
  background: rgba(143,161,138,0.12);
  color: var(--accent-deep);
  font: 600 12px var(--font-body);
  cursor: pointer;
  transition: background .15s ease, transform .12s ease;
}

.report-btn:hover{ background: rgba(143,161,138,0.18); }

@media (max-width: 820px){
  .order-panel{ min-width:0; max-width:none; min-height:390px; }
  .order-list{ max-height:300px; }
}

@media (max-width: 460px){
  .order-footer{ flex-direction:column; }
}
