/* Мастер оформления заказа, «Мои заказы» и карточка заказа в админке. */
.wizard{display:flex;background:#fff;min-height:0}
.theme-98 .wizard{background:transparent}
.wz-side{width:170px;flex:none;display:flex;flex-direction:column;gap:14px;padding:16px 12px;background:linear-gradient(#3a6ed8,#0a246a);color:#fff}
.wz-side>svg{width:64px;height:64px;filter:drop-shadow(0 2px 3px rgba(0,0,0,.4))}
.wz-side small{margin-top:auto;opacity:.8;font-size:11px}
.wz-side .login-steps{color:#c6d3f7;gap:6px}
.wz-side .login-steps li.run{color:#fff}
.wz-side .login-steps li.run::before{content:"▶";animation:none}
.wz-side .login-steps li.ok{color:#a8f0a8}
.theme-98 .wz-side{background:#000080}
.theme-vista .wz-side{background:linear-gradient(#e9f1fb,#c4d8f2);color:#1e3287}
.theme-vista .wz-side .login-steps{color:#5a6c9a}
.theme-vista .wz-side .login-steps li.run{color:#1e3287}
.theme-vista .wz-side .login-steps li.ok{color:#1f7a1f}
.wz-main{flex:1;min-width:0;display:flex;flex-direction:column;padding:14px 18px 8px;overflow:hidden}
.wz-main h2{margin:0 0 8px;font-size:17px;font-weight:normal;color:#215dc6}
.wz-body{flex:1;overflow:auto;min-height:0;display:flex;flex-direction:column;gap:10px;padding-right:2px}
.wz-body .hint{color:#666;margin:0}
#w-checkout .savebar .login-msg{text-align:left;margin-right:auto}
#w-checkout .savebar .login-msg.err{color:#c00}
.co-form{grid-template-columns:120px 1fr}
.co-city{position:relative}
.co-sugg{position:absolute;z-index:5;left:0;right:0;top:100%;background:#fff;border:1px solid #7f9db9;box-shadow:2px 2px 6px rgba(0,0,0,.25);max-height:220px;overflow:auto}
.co-sugg button{display:block;width:100%;text-align:left;border:none;background:none;padding:4px 8px;font:inherit;cursor:pointer}
.co-sugg button:hover,.co-sugg button:focus{background:#316ac5;color:#fff}
.co-sugg i{display:block;padding:6px 8px;color:#888}
.co-kinds{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}
.co-kinds .hint{grid-column:1/-1}
.co-kind{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;text-align:left;padding:8px 10px;border:1px solid #c6d3f7;border-radius:4px;background:linear-gradient(#fff,#f3f7fe);font:inherit;cursor:pointer}
.co-kind:hover{border-color:#316ac5}
.co-kind.on{border:2px solid #316ac5;background:#e8f0fd;padding:7px 9px}
.co-kind:disabled{opacity:.6;cursor:default}
.co-kind small,.co-point small{display:block;color:#666;font-size:11px}
.co-ico{font-size:22px}
.co-price{text-align:right;white-space:nowrap}
.co-price b{color:#0a246a}
.co-price .err{color:#c00;white-space:normal;max-width:120px}
.co-pfilter{display:flex;gap:8px;align-items:center}
.co-pfilter input{flex:1;padding:4px;border:1px solid #7f9db9;font:inherit}
.co-points{flex:1;min-height:150px;overflow:auto}
.co-point{display:grid;grid-template-columns:62px 1fr auto;gap:8px;align-items:center;width:100%;text-align:left;border:none;border-bottom:1px dotted #ccc;background:none;padding:5px 8px;font:inherit;cursor:pointer}
.co-point:hover{background:#f3f7fe}
.co-point.on{background:#316ac5;color:#fff}
.co-point.on small,.co-point.on .co-price b{color:#fff}
.co-ptype{font-size:10px;text-transform:uppercase;text-align:center;border:1px solid #7f9db9;border-radius:3px;padding:1px 2px;background:#f5f8ff;color:#215dc6}
.co-ptype.postamat{border-color:#3a9a3a;background:#effaef;color:#1f7a1f}
.co-flags i{font-style:normal;margin-right:8px}
.co-pays{display:flex;flex-direction:column;gap:8px}
.co-pay{display:flex;gap:10px;align-items:flex-start;padding:8px 10px;border:1px solid #c6d3f7;border-radius:4px;cursor:pointer;background:#fff}
.co-pay small{display:block;color:#666}
.co-pay.off{opacity:.55;cursor:default}
.co-pay:has(input:checked){border-color:#316ac5;background:#e8f0fd}
.co-sum td:nth-child(2),.co-sum td:nth-child(3){text-align:right;white-space:nowrap}
.co-total td{border-top:2px solid #c6d3f7;font-size:13px}
.co-dl{display:grid;grid-template-columns:100px 1fr;gap:4px 10px;margin:0}
.co-dl dt{color:#666}
.co-dl dd{margin:0}
.co-agree{display:flex;gap:6px;align-items:flex-start}
.co-done{display:flex;flex-direction:column;align-items:center;gap:12px;padding:14px 4px;text-align:center}
.co-done p{margin:0}
.co-big{font-size:18px;color:#1f7a1f}
/* номер заказа — «талон»: крупно, выделяется целиком одним кликом */
.co-ticket{display:flex;align-items:center;gap:12px;padding:10px 14px;background:#fff;border:2px dashed #7f9db9;border-radius:4px}
.co-ticket-label{font-size:11px;color:#666;text-transform:uppercase;letter-spacing:.05em}
.co-ticket-id{font:bold 24px/1 "Lucida Console","Courier New",monospace;color:#0a246a;letter-spacing:.06em;user-select:all}
.co-save{max-width:440px;padding:8px 12px;text-align:left;border:1px solid #e8b23a;background:#fff8dc;border-radius:3px;line-height:1.45}
.linkbtn{border:none;background:none;padding:0;font:inherit;color:#0645ad;text-decoration:underline;cursor:pointer}
.linkbtn:hover{color:#c00}
/* Мои заказы */
.orders{display:flex;gap:8px;padding:8px;min-height:0;background:#fff}
.theme-98 .orders{background:transparent}
.ord-list{width:200px;flex:none;overflow:auto}
.ord-item{display:flex;gap:8px;align-items:center;width:100%;text-align:left;border:none;border-bottom:1px dotted #ccc;background:none;padding:6px 8px;font:inherit;cursor:pointer}
.ord-item small{display:block;color:#666;font-size:11px}
.ord-item.on{background:#316ac5;color:#fff}
.ord-item.on small{color:#e8f0fd}
.ord-ico{font-size:18px}
.ord-view{flex:1;min-width:0;overflow:auto;padding:0 4px}
.ord-view h3{margin:4px 0 10px;font-size:15px;color:#215dc6;font-weight:normal}
.ord-view h3 small{color:#888;font-size:11px}
.ord-view h4{margin:12px 0 4px;font-size:12px;color:#215dc6}
.ord-flow{display:flex;list-style:none;margin:0 0 12px;padding:0;counter-reset:s}
.ord-flow li{flex:1;text-align:center;font-size:11px;color:#999;position:relative;padding-top:22px}
.ord-flow li::before{content:"";position:absolute;top:4px;left:50%;width:14px;height:14px;margin-left:-7px;border-radius:50%;border:2px solid #c6d3f7;background:#fff;z-index:1}
.ord-flow li+li::after{content:"";position:absolute;top:11px;right:50%;width:100%;height:2px;background:#c6d3f7}
.ord-flow li.ok{color:#1f7a1f}
.ord-flow li.ok::before{background:#3a9a3a;border-color:#3a9a3a}
.ord-flow li.ok::after,.ord-flow li.run::after{background:#3a9a3a}
.ord-flow li.run{color:#215dc6;font-weight:bold}
.ord-flow li.run::before{border-color:#316ac5;background:#dfeaff;box-shadow:0 0 0 3px rgba(49,106,197,.25)}
.ord-stop{font-size:14px;font-weight:bold;color:#c00}
.ord-pay{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:8px 10px;margin-bottom:10px;border:1px solid #e8b23a;background:#fff8dc;border-radius:3px}
.ord-pay .btn{text-decoration:none;color:inherit}
.ord-note{background:#f5f8ff;border:1px solid #c6d3f7;padding:6px 8px}
.ord-hist{margin:0;padding-left:16px;font-size:12px}
.ord-hist small{color:#888}
.ord-view .tbl td:nth-child(2),.ord-view .tbl td:nth-child(3){text-align:right;white-space:nowrap}
#ord-find.on{border-color:#7f9db9;background:#fff;box-shadow:inset 1px 1px 2px rgba(0,0,0,.15)}
/* Найти заказ */
.ord-find{display:flex;gap:14px;align-items:flex-start;max-width:470px;margin:6px auto;padding:4px 2px}
.ord-find-ico{width:48px;height:48px;flex:none;filter:drop-shadow(0 2px 2px rgba(0,0,0,.25))}
.ord-find-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:10px}
.ord-find-main h3{margin:4px 0 0}
.ord-find .hint{margin:0;color:#555;line-height:1.45}
.ord-group{margin:0;padding:8px 12px 12px;border:1px solid #c6d3f7;border-radius:4px}
.ord-group legend{padding:0 4px;color:#215dc6}
.ord-form{grid-template-columns:110px 1fr}
#of-id{font-family:"Lucida Console","Courier New",monospace;letter-spacing:.05em}
.ord-find-err{min-height:1em;margin:0;color:#c00}
.ord-find-err:empty{display:none}
.ord-find-actions{display:flex;gap:8px}
.ord-find .mini{margin:0}
@media (max-width:700px){
  .wz-side{display:none}
  .co-form{grid-template-columns:1fr}
  .co-form>label{text-align:left}
  .orders{flex-direction:column}
  .ord-list{width:auto;max-height:140px}
  .ord-find-ico{display:none}
  .ord-form{grid-template-columns:1fr}
  .ord-form>label{text-align:left}
  .co-ticket{flex-wrap:wrap;justify-content:center}
  .co-point{grid-template-columns:52px 1fr}
  .co-point .co-price{grid-column:2;text-align:left}
}
/* Админка: заказы, карточка заказа, настройки доставки и оплаты */
.os-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
.os-tabs{display:flex;gap:3px;flex-wrap:wrap;margin-right:auto}
.os-tabs .btn{min-width:0}
.os-tabs .btn.on{font-weight:bold;box-shadow:inset 0 -2px #316ac5}
.os-row{cursor:pointer}
.os-st{display:inline-block;padding:1px 6px;border-radius:3px;background:#eef2fb;color:#215dc6;font-size:11px;white-space:nowrap}
.os-st.st-new{background:#fff3c4;color:#8a5a00;font-weight:bold}
.os-st.st-awaiting_payment{background:#f3f3f3;color:#666}
.os-st.st-delivered{background:#e3f6e3;color:#1f7a1f}
.os-st.st-cancelled,.os-st.st-returned{background:#fde8e8;color:#b00}
.os-st.st-deleted{background:#eee;color:#555;text-decoration:line-through}
.os-find{flex:1 1 220px;max-width:340px;padding:3px 6px;border:1px solid #7f9db9;font:inherit}
.os-bulk{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.os-bulk .btn{min-width:0}
.os-all{display:inline-flex;gap:4px;align-items:center}
.os-tbl .os-pick{width:22px;cursor:default}
.os-tbl .os-pick input{width:16px;height:16px;margin:0}
.os-tbl tr.sel td{background:#e8f0fd}
.oc-warn{margin:6px 0;padding-left:18px;max-width:420px}
.oc-warn li{margin:2px 0}
.oc{overflow:auto;padding:12px 16px;background:#fff}
.oc h3{margin:10px 0 6px;font-size:13px;color:#215dc6;border-bottom:1px solid #c6d3f7;padding-bottom:3px}
.oc-acts{flex-wrap:wrap;gap:4px}
.oc-acts .btn{min-width:0}
.oc-next{padding:8px 10px;border:1px solid #c6d3f7;background:#f5f8ff;border-radius:3px}
.oc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:0 18px}
.oc-grid textarea{width:100%;padding:4px;border:1px solid #7f9db9;font:inherit;margin-bottom:4px}
.oc-grid .tbl td:nth-child(n+2){white-space:nowrap}
.oc-grid .tbl td:last-child{text-align:right}
.oc-sw{display:inline-block;width:10px;height:10px;border:1px solid #888;margin-right:5px;vertical-align:-1px}
.oc-intake{grid-template-columns:90px 1fr}
.sh-state{padding:8px 10px;border:1px solid #e8b23a;background:#fff8dc;border-radius:3px;margin-bottom:6px}
.sh-state.ok{border-color:#3a9a3a;background:#effaef}
.sh-chk{display:inline-flex;gap:4px;align-items:center;color:#222}
.cp-main .form>.sh-chk{text-align:left;justify-self:start}
.sh-bar{position:sticky;bottom:-14px;display:flex;gap:6px;justify-content:flex-end;align-items:center;padding:10px 0;margin-top:14px;background:#fff;border-top:1px solid #c6d3f7}
.sh-bar .mini{margin-right:auto;color:#b00}
/* Заказы в админке на телефоне: строки таблицы — карточками, кнопки крупнее */
@media (max-width:700px){
  .os-tbl thead{display:none}
  .os-tbl,.os-tbl tbody{display:block}
  .os-tbl tr{display:grid;grid-template-columns:28px 1fr auto;gap:2px 8px;padding:8px 4px;border-bottom:1px solid #d5d2c5}
  .os-tbl td{display:block;border:0;padding:0}
  .os-tbl .os-pick{grid-row:1/span 4;padding-top:2px}
  .os-tbl .os-pick input{width:20px;height:20px}
  .os-tbl .os-id,.os-tbl .os-who,.os-tbl .os-items,.os-tbl .os-dlv{grid-column:2}
  .os-tbl .os-sum,.os-tbl .os-status{grid-column:3;text-align:right}
  .os-tbl .os-sum{grid-row:1}
  .os-tbl .os-status{grid-row:2}
  .os-find{max-width:none;padding:6px 8px}
  .os-tools .btn,.oc-acts .btn{padding:7px 10px}
  .oc{padding:10px}
  .oc-grid .tbl td:nth-child(n+2){white-space:normal}
}
