:root{
  --altr-create-bg:#f4f1eb;
  --altr-create-panel:#ffffff;
  --altr-create-line:rgba(0,0,0,0.08);
  --altr-create-text:#161616;
  --altr-create-muted:#6f6f6f;
  --altr-create-primary:#111111;
  --altr-create-success:#175c38;
  --altr-create-danger:#b63027;
  --altr-create-soft:#f7f4ee;
  --altr-create-shadow:0 10px 28px rgba(0,0,0,0.05);
}

.altr-create-order-page{
  font-family:"Work Sans",sans-serif;
  color:var(--altr-create-text);
  background:var(--altr-create-bg);
  min-height:100vh;
  padding:20px;
  box-sizing:border-box;
}

.altr-create-order-page *,
.altr-create-order-page *:before,
.altr-create-order-page *:after{
  box-sizing:border-box;
  border-radius:0 !important;
}

.altr-create-order-title,
.altr-create-order-subtitle,
.altr-create-card__header h3,
.altr-field-label,
.altr-summary-total-row--grand strong,
.altr-summary-total-row--grand span{
  font-family:"Jura",sans-serif;
}

.altr-create-order-topbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.altr-create-order-title{
  margin:0 0 4px;
  font-size:28px;
  line-height:1;
}

.altr-create-order-subtitle{
  margin:0;
  color:var(--altr-create-muted);
  font-size:13px;
}

.altr-mode-switch{
  display:flex;
  border:1px solid var(--altr-create-line);
  background:#fff;
}

.altr-mode-switch__btn{
  appearance:none;
  border:0;
  background:#fff;
  color:var(--altr-create-text);
  padding:12px 18px;
  font-family:"Work Sans",sans-serif;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  border-right:1px solid var(--altr-create-line);
}

.altr-mode-switch__btn:last-child{
  border-right:0;
}

.altr-mode-switch__btn.is-active{
  background:var(--altr-create-primary);
  color:#fff;
}

.altr-create-order-layout{
  display:grid;
  grid-template-columns:1.1fr 1fr 1.1fr;
  gap:16px;
  align-items:start;
}

.altr-create-card{
  background:var(--altr-create-panel);
  border:1px solid var(--altr-create-line);
  box-shadow:var(--altr-create-shadow);
  min-height:680px;
  display:flex;
  flex-direction:column;
}

.altr-create-card__header{
  padding:16px 18px;
  border-bottom:1px solid var(--altr-create-line);
  background:#fff;
}

.altr-create-card__header h3{
  margin:0;
  font-size:20px;
}

.altr-create-card__body{
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.altr-field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.altr-field-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}

.altr-field-label{
  font-size:13px;
  color:var(--altr-create-muted);
}

.altr-input,
.altr-select,
.altr-textarea{
  width:100%;
  min-height:48px;
  border:1px solid var(--altr-create-line);
  background:#fff;
  padding:12px 14px;
  outline:none;
  font-family:"Work Sans",sans-serif;
  font-size:14px;
  color:var(--altr-create-text);
}

.altr-textarea{
  min-height:auto;
  resize:vertical;
}

.altr-input:focus,
.altr-select:focus,
.altr-textarea:focus{
  border-color:#000;
}

.altr-searchbox{
  position:relative;
}

.altr-inline-loader{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  width:16px;
  height:16px;
  border:2px solid rgba(0,0,0,0.1);
  border-top:2px solid #000;
  opacity:0;
  pointer-events:none;
  animation:altrCreateSpin .7s linear infinite;
}

.altr-inline-loader.is-visible{
  opacity:1;
}

@keyframes altrCreateSpin{
  to{ transform:translateY(-50%) rotate(360deg); }
}

.altr-results-scroll{
  border:1px solid var(--altr-create-line);
  background:#fff;
  min-height:380px;
  max-height:520px;
  overflow:auto;
}

.altr-empty-box{
  padding:18px;
  color:var(--altr-create-muted);
  font-size:14px;
}

.altr-guest-result,
.altr-product-result{
  appearance:none;
  border:0;
  border-bottom:1px solid var(--altr-create-line);
  background:#fff;
  width:100%;
  text-align:left;
  cursor:pointer;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.altr-guest-result:hover,
.altr-product-result:hover{
  background:var(--altr-create-soft);
}

.altr-guest-result__top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  font-size:14px;
}

.altr-guest-result__meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  color:var(--altr-create-muted);
  font-size:12px;
}

.altr-product-result{
  flex-direction:row;
  justify-content:space-between;
  align-items:center;
}

.altr-product-result__name{
  font-size:14px;
  font-weight:600;
}

.altr-product-result__price{
  font-family:"Jura",sans-serif;
  font-size:18px;
  font-weight:700;
}

.altr-selected-guest{
  border:1px solid var(--altr-create-line);
  background:var(--altr-create-soft);
  padding:14px;
}

.altr-selected-guest__head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
}

.altr-selected-guest__title{
  font-family:"Jura",sans-serif;
  font-size:16px;
}

.altr-selected-guest__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.altr-selected-guest__grid span{
  display:block;
  font-size:11px;
  color:var(--altr-create-muted);
  margin-bottom:3px;
}

.altr-selected-guest__grid strong{
  display:block;
  font-size:13px;
  word-break:break-word;
}

.altr-mini-btn{
  appearance:none;
  border:1px solid var(--altr-create-line);
  background:#fff;
  padding:8px 12px;
  font-family:"Work Sans",sans-serif;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
}

.altr-summary-block{
  border:1px solid var(--altr-create-line);
  background:#fff;
}

.altr-summary-block__head{
  padding:12px 14px;
  border-bottom:1px solid var(--altr-create-line);
  font-family:"Jura",sans-serif;
  font-size:15px;
}

.altr-order-items{
  padding:12px;
}

.altr-order-items--empty{
  color:var(--altr-create-muted);
  font-size:14px;
}

.altr-order-line{
  display:grid;
  grid-template-columns:1.3fr auto auto;
  gap:12px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid var(--altr-create-line);
}

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

.altr-order-line__main{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.altr-order-line__main span{
  color:var(--altr-create-muted);
  font-size:12px;
}

.altr-order-line__controls{
  display:flex;
  align-items:center;
  gap:8px;
}

.altr-qty-btn{
  appearance:none;
  border:1px solid var(--altr-create-line);
  background:#fff;
  width:34px;
  height:34px;
  cursor:pointer;
  font-size:18px;
  line-height:1;
}

.altr-qty-value{
  min-width:18px;
  text-align:center;
  font-weight:700;
}

.altr-order-line__end{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}

.altr-line-remove{
  appearance:none;
  border:0;
  background:none;
  color:var(--altr-create-danger);
  cursor:pointer;
  font-size:12px;
  padding:0;
  font-weight:600;
}

.altr-fee-entry{
  display:grid;
  grid-template-columns:1fr 140px 120px;
  gap:10px;
  padding:12px;
  border-bottom:1px solid var(--altr-create-line);
}

.altr-fee-list{
  padding:0 12px 12px;
}

.altr-fee-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid var(--altr-create-line);
}

.altr-fee-line:last-child{
  border-bottom:0;
}

.altr-fee-line div{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.altr-fee-line span{
  font-size:12px;
  color:var(--altr-create-muted);
}

.altr-summary-totals{
  border:1px solid var(--altr-create-line);
  background:#fff;
}

.altr-summary-total-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid var(--altr-create-line);
}

.altr-summary-total-row:last-child{
  border-bottom:0;
}

.altr-summary-total-row strong{
  font-family:"Jura",sans-serif;
  font-size:18px;
}

.altr-summary-total-row--grand{
  background:#111;
  color:#fff;
}

.altr-summary-total-row--grand strong{
  font-size:22px;
}

.altr-summary-actions{
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:10px;
}

.altr-btn{
  appearance:none;
  border:1px solid var(--altr-create-line);
  background:#fff;
  color:var(--altr-create-text);
  min-height:50px;
  padding:0 14px;
  font-family:"Work Sans",sans-serif;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:.18s ease;
  position:relative;
}

.altr-btn:hover{
  background:var(--altr-create-soft);
}

.altr-btn--primary{
  background:#111;
  color:#fff;
  border-color:#111;
}

.altr-btn--secondary{
  background:#fff;
  color:#111;
}

.altr-btn--danger{
  background:#fff;
  color:var(--altr-create-danger);
  border-color:var(--altr-create-danger);
}

.altr-btn.is-loading{
  pointer-events:none;
  opacity:.8;
}

.altr-btn.is-loading .altr-btn__text{
  opacity:.6;
}

.altr-btn.is-loading::after{
  content:"";
  width:16px;
  height:16px;
  border:2px solid rgba(255,255,255,0.35);
  border-top:2px solid #fff;
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  animation:altrBtnSpin .7s linear infinite;
}

.altr-btn--secondary.is-loading::after,
.altr-btn--danger.is-loading::after{
  border:2px solid rgba(0,0,0,0.15);
  border-top:2px solid #000;
}

@keyframes altrBtnSpin{
  to{ transform:translateY(-50%) rotate(360deg); }
}

.altr-create-order-feedback{
  min-height:20px;
  font-size:13px;
  font-weight:600;
}

.altr-create-order-feedback.is-success{
  color:var(--altr-create-success);
}

.altr-create-order-feedback.is-error{
  color:var(--altr-create-danger);
}

.is-hidden{
  display:none !important;
}

@media (max-width: 1280px){
  .altr-create-order-layout{
    grid-template-columns:1fr;
  }

  .altr-create-card{
    min-height:auto;
  }
}

@media (max-width: 767px){
  .altr-create-order-page{
    padding:12px;
  }

  .altr-create-order-topbar{
    flex-direction:column;
    align-items:flex-start;
  }

  .altr-fee-entry,
  .altr-summary-actions,
  .altr-order-line{
    grid-template-columns:1fr;
  }

  .altr-selected-guest__grid{
    grid-template-columns:1fr;
  }
}