/* «Мои заказы» (/my-orders/): theme/my-orders.php. Palette and buttons follow the festive order page. */
@font-face{font-family:'HeliosExtLight';src:url("vendor/1e7e14da13a01da1d7d2866b.woff") format('woff');font-weight:400;font-style:normal;font-display:swap}
.zylo-my-orders-page{background:#faf6f4}
.zylo-my-orders-page .zylo-native-header{background:#fff;max-width:none;padding-left:max(24px,calc(50% - 556px));padding-right:max(24px,calc(50% - 556px))}
.zylo-my-orders-page .zylo-native-header nav a[aria-current=page]{color:#965e50}
.zylo-my-orders-page .zylo-native-content{max-width:none;margin:0;padding:0;min-height:60vh}
.zylo-my-orders{--mo-ink:#292524;--mo-muted:#786e67;--mo-line:#ece5e1;--mo-field:#dccfc9;--mo-accent:#965e50;--mo-accent-hover:#7e4d41;--mo-soft:#f8eeea;--mo-alert:#a43d33;--mo-heading:'HeliosExtLight','Raleway',Arial,sans-serif;max-width:760px;margin:0 auto;padding:48px 24px 88px;color:var(--mo-ink);font-family:var(--zylo-font)}
.zylo-my-orders *,.zylo-my-orders *::before,.zylo-my-orders *::after{box-sizing:border-box}
:where(.zylo-my-orders) :where(h1,h2,h3,p,ul){margin:0;padding:0}
.zylo-my-orders a{color:inherit}
.zylo-my-orders :is(a,button,input):focus-visible{outline:2px solid var(--mo-accent);outline-offset:3px}
.zylo-my-orders .screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.zylo-my-orders .mo-title{margin:0 0 24px;font-family:var(--mo-heading);font-weight:400;font-size:clamp(34px,6vw,52px);line-height:1.05;letter-spacing:-.04em}
.zylo-my-orders .mo-title:focus{outline:none}
.zylo-my-orders .mo-subtitle{margin:0 0 10px;font-family:var(--mo-heading);font-weight:400;font-size:24px;line-height:1.2;letter-spacing:-.03em}

/* Swapped views keep the page still: a short fade, no movement. The server-rendered view shows at once. */
.mo-view.is-entering{animation:mo-in .18s ease}
.mo-view.is-leaving{opacity:.45;transition:opacity .12s ease}
.zylo-my-orders[aria-busy=true] .mo-button[type=submit]{cursor:progress}

/* Sign-in card */
.mo-card{padding:28px;border-radius:24px;background:#fff;box-shadow:0 20px 50px -38px rgba(96,52,40,.4)}
.mo-lead{font-size:16px;line-height:1.6;color:#4b413c;text-wrap:pretty}
.mo-lead--list{margin-bottom:16px;color:var(--mo-muted);font-size:15px}
.mo-email{font-weight:600;color:var(--mo-ink);overflow-wrap:anywhere}
.mo-form{margin-top:22px}
.mo-label{display:block;margin-bottom:8px;font-size:14px;line-height:1.3;font-weight:600}
.mo-row{display:flex;gap:10px}
.mo-input{flex:1 1 auto;min-width:0;height:52px;padding:0 16px;border:1.5px solid var(--mo-field);border-radius:12px;background:#fff;color:var(--mo-ink);font:400 16px/1.2 var(--zylo-font);transition:border-color .15s ease,box-shadow .15s ease}
.mo-input::placeholder{color:#b3a7a1}
/* Focus follows the shop's form fields (commerce.css); an error stays red while focused. */
.zylo-my-orders .mo-form input.mo-input[aria-invalid=true],.zylo-my-orders .mo-form input.mo-input[aria-invalid=true]:focus{border-color:var(--mo-alert);box-shadow:inset 0 0 0 1px var(--mo-alert)}
.mo-code{max-width:220px;font-size:24px;font-weight:600;letter-spacing:.32em;font-variant-numeric:tabular-nums}
.mo-code::placeholder{letter-spacing:.32em}
.mo-error{min-height:0;margin-top:0;font-size:14px;line-height:1.45;color:var(--mo-alert)}
.mo-error:not(:empty){margin-top:8px}
.mo-notice{margin-top:16px;padding:12px 16px;border-radius:14px;background:var(--mo-soft);font-size:14px;line-height:1.5;color:#5c3a31}
.mo-hint{margin-top:16px;font-size:13px;line-height:1.5;color:var(--mo-muted)}
.mo-auth-actions{display:flex;flex-wrap:wrap;gap:6px 20px;margin-top:18px}
.mo-auth--more{margin-top:28px}

.mo-button{display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:52px;padding:0 24px;border:1.5px solid var(--mo-accent);border-radius:12px;background:var(--mo-accent);color:#fff!important;font:600 15px/1.2 var(--zylo-font);text-align:center;text-decoration:none;cursor:pointer;transition:background-color .18s ease,border-color .18s ease,opacity .18s ease}
.mo-button:active{transform:translateY(1px)}
.mo-button[aria-disabled=true]{opacity:.7;pointer-events:none}
.mo-button--ghost{background:#fff;border-color:#dcc6be;color:var(--mo-ink)!important}
.mo-button--small{position:relative;z-index:1;min-height:44px;padding:0 18px;font-size:14px}
.mo-link{display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;background:none;color:var(--mo-accent);font:600 14px/1.3 var(--zylo-font);text-decoration:underline;text-decoration-color:rgba(150,94,80,.35);text-underline-offset:4px;cursor:pointer}
.mo-link:disabled{color:var(--mo-muted);text-decoration:none;cursor:default}
.mo-link span{font-variant-numeric:tabular-nums;white-space:pre}

/* Signed-in bar */
.mo-account{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin:-8px 0 18px;padding:6px 6px 6px 18px;border-radius:16px;background:rgba(255,255,255,.74);font-size:14px;line-height:1.4;color:var(--mo-muted)}
.mo-account p{min-width:0}
.mo-account .mo-link{padding:0 12px}

/* Orders */
.mo-orders{display:grid;gap:12px;list-style:none}
.mo-order{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:16px;padding:18px;border-radius:20px;background:#fff;box-shadow:0 14px 40px -34px rgba(96,52,40,.45);transition:box-shadow .18s ease}
.mo-thumbs{display:flex;width:68px;height:84px;position:relative}
.mo-thumbs img{position:absolute;top:0;left:0;width:60px;height:75px;border-radius:12px;background:#f1ebe8;object-fit:cover;box-shadow:0 0 0 2px #fff}
.mo-thumbs--2 img:nth-child(2){top:9px;left:8px}
.mo-thumbs--0{width:60px;height:75px;border-radius:12px;background:#f1ebe8}
.mo-order-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.mo-order-number{font-size:17px;line-height:1.3;font-weight:600}
.mo-order-link{text-decoration:none}
.mo-order-link::after{content:'';position:absolute;inset:0;border-radius:20px}
/* The whole card shows the focus of its link. */
.zylo-my-orders .mo-order .mo-order-link:focus-visible{outline:none}
.zylo-my-orders .mo-order .mo-order-link:focus-visible::after{outline:2px solid var(--mo-accent);outline-offset:2px}
.mo-status{display:inline-flex;align-items:center;min-height:24px;padding:0 10px;border-radius:999px;background:var(--mo-soft);color:var(--mo-accent-hover);font-size:12px;line-height:1.2;font-weight:600;white-space:nowrap}
/* Paid orders stand out: a green status with a check, a soft green edge and glow. */
.mo-order.is-paid{background:linear-gradient(115deg,#fff 58%,#f3f8f0);box-shadow:inset 0 0 0 1.5px #d3e4cd,0 16px 40px -30px rgba(61,99,56,.5)}
.mo-order.is-paid .mo-status{gap:5px;padding-left:8px;background:#e3eedf;color:#2f5a2a}
.mo-status svg{width:13px;height:13px;flex:none}
.mo-tone-pending .mo-status{background:#fbf0dc;color:#7a5414}
.mo-tone-alert .mo-status{background:#f9e3e0;color:var(--mo-alert)}
.mo-tone-muted .mo-status{background:#f1eeec;color:var(--mo-muted)}
.mo-order-meta{margin-top:4px;font-size:13px;line-height:1.45;color:var(--mo-muted)}
.mo-order-items{margin-top:6px;font-size:14px;line-height:1.5;color:#4b413c}
.mo-order-note{margin-top:6px;font-size:13px;line-height:1.45;color:var(--mo-muted)}
.mo-order-track{position:relative;z-index:1;margin-top:6px;font-size:13px;line-height:1.45;color:var(--mo-muted)}
.mo-order-track a{color:var(--mo-accent);font-weight:600;text-underline-offset:3px}
.mo-order-side{display:flex;flex-direction:column;align-items:flex-end;gap:10px;text-align:right}
.mo-order-total{font-size:17px;line-height:1.3;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.mo-order-total del{display:block;font-size:13px;font-weight:400;color:var(--mo-muted)}
.mo-order-total ins{text-decoration:none}
.mo-order-total small{display:none}
.mo-order-more{display:inline-flex;align-items:center;gap:2px;font-size:13px;line-height:1.2;font-weight:600;color:var(--mo-accent)}
.mo-order-more svg{width:16px;height:16px;transition:transform .18s ease}
.mo-tone-muted .mo-thumbs img{filter:grayscale(.6);opacity:.75}

.mo-empty{text-align:left}
.mo-empty-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.mo-help{margin-top:28px;font-size:14px;line-height:1.55;color:var(--mo-muted)}
.mo-help a{color:var(--mo-accent);font-weight:600;text-underline-offset:3px}

@media(hover:hover){
.mo-button:hover{background:var(--mo-accent-hover);border-color:var(--mo-accent-hover)}
.mo-button--ghost:hover{background:#fff;border-color:var(--mo-accent);color:var(--mo-ink)!important}
.mo-link:not(:disabled):hover{color:var(--mo-accent-hover);text-decoration-color:currentColor}
.mo-order:has(.mo-order-link:hover){box-shadow:0 18px 44px -28px rgba(96,52,40,.55)}
.mo-order.is-paid:has(.mo-order-link:hover){box-shadow:inset 0 0 0 1.5px #bcd6b4,0 18px 44px -26px rgba(61,99,56,.55)}
.mo-order:has(.mo-order-link:hover) .mo-order-more svg{transform:translateX(3px)}
}

@media(max-width:600px){
.zylo-my-orders{padding:28px 16px 64px}
.zylo-my-orders .mo-title{margin-bottom:18px}
.mo-card{padding:22px 18px;border-radius:20px}
.mo-row{flex-direction:column}
.mo-code{max-width:none;text-align:center}
.mo-button{width:100%}
.mo-button--small{width:auto}
.mo-order{grid-template-columns:auto minmax(0,1fr);gap:12px 14px;padding:16px}
.mo-thumbs{width:52px;height:68px}
.mo-thumbs img{width:46px;height:58px;border-radius:10px}
.mo-thumbs--2 img:nth-child(2){top:8px;left:6px}
.mo-order-side{grid-column:2;flex-direction:row;align-items:center;justify-content:space-between;text-align:left}
.mo-order-total del{display:inline;margin-right:6px}
.mo-account{padding-left:14px}
.mo-empty-actions .mo-button{flex:1 1 auto}
}

@keyframes mo-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.mo-view.is-entering{animation:none}.mo-view.is-leaving,.mo-button,.mo-input,.mo-order,.mo-order-more svg{transition:none}}
