.order-main { min-height: 80vh; padding: 36px 24px 36px; background: #fafaf9; }
.order-app { max-width: 1180px; margin: 0 auto; color: #171717; font-size: 15px; line-height: 1.5; letter-spacing: 0; }
.order-app * { box-sizing: border-box; letter-spacing: 0; }
.order-app [hidden] { display: none !important; }
.order-app h1,.order-app h2,.order-app h3,.order-app p { margin: 0; }
.order-app h1 { font-size: 30px; line-height: 1.2; font-weight: 750; }
.order-app h2 { font-size: 20px; line-height: 1.3; }
.order-app h3 { font-size: 18px; line-height: 1.35; }
.order-app p { color: #737681; }
.order-surface { background: #fff; border: 1px solid #efefed; border-radius: 22px; padding: 32px; box-shadow: 0 12px 40px #24242406; min-width: 0; }
.order-success { max-width: 700px; margin: 0 auto; text-align: center; padding: 38px 42px 28px; }
.order-mark { width: 100px; height: 100px; margin: 0 auto 24px; border-radius: 30px; background: #eafaef; display: grid; place-items: center; color: #13a36d; font-size: 58px; font-weight: 600; }
.order-mark.pending { background: #fff3e5; color: #e97816; font-size: 44px; }
.order-mark.order-mark-art { background:transparent; width:120px; height:120px; margin-bottom:18px; }
.order-mark-art img { display:block; width:100%; height:100%; object-fit:contain; }
.order-step-art { display:block; width:56px; height:56px; object-fit:contain; margin:0 auto 10px; }
.order-success h1 + p { margin-top: 12px; font-size: 17px; }
.order-steps-overview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 28px 0; }
.order-step-number { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; background: #fff0e0; color: #f5740b; border-radius: 50%; font-size: 22px; font-weight: 750; }
.order-steps-overview .order-step-number { margin: 0 auto 12px; }
.order-steps-overview strong { display: block; font-size: 15px; }
.order-hint { border-radius: 12px; padding: 14px 18px; background: #fff5eb; color: #b84b06; font-size: 14px; }
.order-app .order-hint { color: #a9460a; }
.order-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 20px; border-radius: 12px; border: 1px solid #ff7800; background: #ff7800; color: white; font: inherit; font-weight: 650; cursor: pointer; text-align: center; text-decoration: none; }
.order-button:hover { background: #ee6d00; }
.order-button:disabled { opacity: .6; cursor: not-allowed; }
.order-button.secondary { background: white; color: #252935; border-color: #dfe1e7; }
.order-button.secondary:hover { background: #f7f8f9; }
.order-app :focus-visible { outline: 3px solid #1688c8; outline-offset: 3px; }
.order-success .order-primary { width: min(100%,460px); margin-top: 22px; min-height: 54px; }
.order-help { border-top: 1px solid #eceef1; margin-top: 28px; padding-top: 20px; text-align: center; }
.order-help strong { display: block; margin-bottom: 12px; }
.order-help-actions { display: flex; justify-content: center; gap: 12px; }
.order-help-actions > * { flex: 1; max-width: 270px; }
.order-help .telegram-sign { color: #16a2df; }
.order-help .chat-sign { color: #ff7800; }
.order-breadcrumb { margin-bottom: 18px; color: #838795; font-size: 13px; }
.order-breadcrumb a { color: #777b87; text-decoration: none; }
.order-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(290px,1fr); gap: 22px; align-items: start; }
.order-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.order-logo { width: 72px; height: 72px; border-radius: 16px; background: #fafaf9; padding: 12px; object-fit: contain; flex-shrink: 0; }
.order-heading h1 { font-size: 23px; line-height:1.3; }
.order-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 9px; color: #818592; font-size: 13px; }
.order-status { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 20px; background: #fff1e3; color: #c3620c; font-size: 13px; font-weight: 600; }
.order-status.good { background: #e8fbef; color: #15814d; }
.order-status.progress { background: #eaf4fe; color: #246caa; }
.order-status.bad { background: #fff0ef; color: #b53b35; }
.order-step { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 16px; padding-bottom: 18px; position: relative; }
.order-step:not(:last-child)::before { content: ''; position: absolute; left: 20px; top: 53px; bottom: 10px; width: 2px; background: #eceef1; }
.order-step-content h2 { margin: 10px 0 10px; font-size: 16px; line-height:1.4; }
.order-step-content p { font-size: 14px; }
.order-input { display: block; width: 100%; border: 1px solid #dfe2e8; background: #fff; padding: 14px; border-radius: 12px; font: inherit; min-height: 52px; margin: 8px 0 10px; }
.order-label { display: block; font-size: 14px; color: #555c67; }
.order-input::placeholder { color:#959aa5; opacity:1; }
.order-form .order-button { width: 100%; margin-top: 16px; }
.order-activation-action { display:flex; justify-content:center; align-items:center; width:100%; margin:8px 0 0; }
.order-activation-action .order-button { width:min(100%,420px); min-height:56px; margin-inline:auto; padding:14px 24px; font-size:16px; }
.order-summary h2 { font-size:18px; }
.order-error { color: #b83735 !important; font-size: 14px; margin-top: 10px !important; }
.order-app .order-summary { display: block; margin: 0; }
.order-summary dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 16px 14px; margin: 24px 0; font-size: 14px; }
.order-summary dt { color: #858894; }
.order-summary dd { text-align: right; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.order-summary .order-status { margin-bottom: 16px; }
.order-summary p { font-size: 14px; }
.order-test { display: block; width: max-content; margin-bottom: 12px; border: 1px dashed #aaa; color: #707070; padding: 3px 8px; font-size: 11px; border-radius: 5px; }
.order-message { margin-top: 14px; padding: 14px; border-left: 3px solid #ff921f; background: #fff8f1; overflow-wrap: anywhere; white-space: pre-wrap; }
.order-message strong { display: block; margin-bottom: 6px; font-size: 13px; }
.order-refresh { min-height: 24px; color: #747987; font-size: 12px; text-align: center; margin: 10px 0; }
.order-footer { text-align: center; font-size: 13px; color: #8b8b8b; padding: 20px 24px; }
dialog.order-instruction { box-sizing:border-box; margin:auto; width:min(640px,calc(100% - 24px)); max-height:calc(100dvh - 40px); border:1px solid #ececec; border-radius:18px; padding:22px 28px; color:#252935; text-align:left; box-shadow:0 20px 70px #15151520; }
.order-instruction::backdrop { background:#15151570; }
.order-instruction h2 { margin:0 0 8px; font-size:22px; line-height:1.3; text-align:left; }
.order-instruction [data-instruction-content] { white-space:pre-wrap; overflow-wrap:anywhere; font-size:15px; line-height:1.6; margin:4px 0 0; text-align:left; }
.order-instruction .order-instruction-steps { list-style:none; counter-reset:instruction; padding:0; margin:0; display:grid; gap:0; white-space:normal; }
.order-instruction .order-instruction-steps li { counter-increment:instruction; display:grid; grid-template-columns:30px minmax(0,1fr); align-items:start; gap:14px; padding:16px 0; margin:0; border-bottom:1px solid #eef0f2; text-align:left; }
.order-instruction .order-instruction-steps li:last-child { border-bottom:0; }
.order-instruction .order-instruction-steps li::before { content:counter(instruction); width:30px; height:30px; display:grid; place-items:center; border-radius:8px; color:#c85605; background:#fff0df; font-weight:700; }
.order-instruction-text { min-width:0; padding-top:3px; white-space:pre-wrap; overflow-wrap:anywhere; }
.order-instruction [data-instruction-content] a { color:#c65300; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px; overflow-wrap:anywhere; }
.order-instruction [data-instruction-content] a:hover { color:#933e00; }
.order-instruction :focus-visible { outline:3px solid #1688c8; outline-offset:3px; }
.order-instruction h2:focus { outline:none; }
.order-instruction form { display:flex; justify-content:flex-end; margin:4px 0 0; padding-top:16px; border-top:1px solid #eef0f2; }
.order-account-entry { display: block; border: 1px solid #e6e6e6; padding: 14px; border-radius: 8px; margin-top: 10px; color: #222; text-decoration: none; overflow-wrap: anywhere; }
.order-account-entry span { display: block; color: #747474; font-size: 13px; margin-top: 4px; }
@media(max-width:900px) { .order-layout { grid-template-columns: minmax(0,1fr); } .order-summary { width: 100%; } .order-summary dl { grid-template-columns: 1fr 1fr; } }
@media(max-width:600px) {
  dialog.order-instruction { padding:20px 18px; max-height:calc(100dvh - 24px); }
  .order-instruction h2 { font-size:20px; }
  .order-instruction .order-instruction-steps li { gap:12px; padding-block:14px; }
  .order-main { padding: 44px 12px 24px; }
  .order-surface { padding: 22px 18px; border-radius: 18px; }
  .order-success { padding: 26px 18px 22px; }
  .order-app h1 { font-size: 25px; }
  .order-success h1 + p { font-size: 15px; }
  .order-mark { width: 78px; height: 78px; font-size: 45px; margin-bottom: 20px; border-radius: 24px; }
  .order-steps-overview { gap: 7px; margin: 24px 0; }
  .order-steps-overview strong { font-size: 12px; }
  .order-help-actions { flex-direction: column; gap: 8px; }
  .order-help-actions > * { max-width: none; width: 100%; }
  .order-heading { gap: 12px; align-items: flex-start; }
  .order-logo { width: 48px; height: 48px; padding: 7px; border-radius: 10px; }
  .order-heading h1 { font-size: 19px; overflow-wrap: anywhere; }
  .order-step { gap: 10px; grid-template-columns: 32px minmax(0,1fr); }
  .order-step-number { width: 32px; height: 32px; font-size: 18px; }
  .order-step:not(:last-child)::before { left: 15px; top: 42px; }
  .order-step-content h2 { font-size: 15px; margin-top: 5px; }
  .order-mark.order-mark-art { width:100px; height:100px; }
  .order-step-art { width:48px; height:48px; }
  .order-input { font-size: 16px; padding: 12px; }
  .order-button { padding: 12px; font-size: 14px; }
  .order-breadcrumb { font-size: 12px; }
}
.order-receipt { margin-top:24px; text-align:center; }
.order-receipt .order-button { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:50px; width:100%; max-width:290px; padding:13px 16px; }
.order-receipt [data-receipt-icon] { display:flex; flex:none; }
.order-receipt .order-button:disabled { opacity:.5; cursor:not-allowed; }
.order-receipt .order-error:empty { display:none; }
.order-gift-art { width:160px; height:140px; object-fit:contain; margin:0 auto 16px; display:block; }
.order-gift-code { display:flex; gap:10px; width:min(100%,480px); margin:24px auto 0; }
.order-gift-code input { min-width:0; flex:1; border:1px solid #eadbcf; border-radius:12px; background:#fff8f1; text-align:center; color:#222; font:700 18px/1.3 monospace; }
.order-gift-code button { display:flex; gap:8px; align-items:center; }
.order-gift-code svg { width:18px; height:18px; flex-shrink:0; }
.order-gift-success .order-receipt { margin:24px auto 0; }
.order-gift-success [data-gift-copy-status]:empty { display:none; }
.order-gift-success > a.order-button { margin-top:16px; }
@media(max-width:520px) { .order-gift-code { flex-direction:column; } .order-gift-code input { min-height:52px; flex:auto; } .order-gift-code button { justify-content:center; } }
