/* Order messages (Orders 1.1.23 part B; mockups M1–M10, S6). site/order-messages.js. */
/* The thread: one screen over everything (the bottom bar too), like M2 */
.om-open .bottom-nav,.om-open .app-topbar{visibility:hidden}
.om-page{padding:0}
.om-screen{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;background:#f9f5ef;color:var(--ink,#2f2622)}
.om-top{flex:none;background:#f9f5ef;border-bottom:1px solid #ebe2d6}
.om-head{display:flex;align-items:center;gap:12px;padding:calc(env(safe-area-inset-top) + 10px) 14px 10px}
.om-round{width:46px;height:46px;border:0;border-radius:50%;background:#efe7dd;display:grid;place-items:center;color:var(--ink,#2f2622);flex:none;cursor:pointer;padding:0}
.om-round svg{width:20px;height:20px}
.om-ghost{visibility:hidden}
.om-ht{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:10px}
.om-ht b{font:800 20px/1.15 'Archivo',var(--sans,system-ui);font-stretch:92%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.om-hav{width:40px;height:40px;border-radius:50%;object-fit:cover;flex:none;font-size:14px}
.om-scroll{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:12px 14px 18px;overscroll-behavior:contain}
.om-scroll>*{max-width:640px;margin-left:auto;margin-right:auto}
.om-card{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid #ebe2d6;border-radius:20px;background:#fffdf9;text-decoration:none;color:inherit}
.om-card span{min-width:0;flex:1}.om-card b{display:block;font:700 15.5px/1.3 var(--sans,system-ui)}.om-card small{display:block;font:500 14px/1.35 var(--sans,system-ui);color:var(--muted,#776c61);margin-top:2px}
.om-cav{width:40px;height:40px;border-radius:50%;object-fit:cover;flex:none;font-size:14px}
.om-cav.om-sq{border-radius:10px;display:grid;place-items:center;color:#fff;font:800 14px/1 var(--sans,system-ui);font-style:normal}
.om-list{display:flex;flex-direction:column;gap:6px;padding-top:6px}
.om-day{margin:14px 0 6px;text-align:center;font:800 12.5px var(--sans,system-ui);letter-spacing:.14em;text-transform:uppercase;color:#8f847a}
.om-m{display:flex;flex-direction:column;max-width:76%;gap:4px}
.om-m.me{align-self:flex-end;align-items:flex-end}
.om-m.them{align-self:flex-start;align-items:flex-start}
.om-b{margin:0;padding:10px 15px;border-radius:20px;font:500 16.5px/1.38 var(--sans,system-ui);white-space:pre-wrap;overflow-wrap:anywhere}
.om-m.me .om-b{background:var(--orange,#ba4b2a);color:#fff;border-bottom-right-radius:6px}
.om-m.them .om-b{background:#fff;color:var(--ink,#2f2622);border:1px solid #ebe2d6;border-bottom-left-radius:6px}
.om-m.sending{opacity:.6}
.om-m.failed .om-b{background:#e9e1d6;color:#5e534a}
.om-m.failed{cursor:pointer}
.om-seen{align-self:flex-end;margin:0 6px 0 0;font:600 13px var(--sans,system-ui);color:#9b8f86}
.om-retry{align-self:flex-end;border:0;background:none;padding:2px 4px;font:700 13.5px var(--sans,system-ui);color:var(--orange-dark,#95391d);cursor:pointer}
.om-pics{display:grid;gap:4px;width:min(250px,62vw)}
.om-pics2,.om-pics3,.om-pics4{grid-template-columns:1fr 1fr}
.om-pic{aspect-ratio:1;border:0;border-radius:16px;background:#f3ece2 center/cover no-repeat;padding:0;cursor:zoom-in}
.om-pics1 .om-pic{aspect-ratio:4/3}
.om-closed{margin:18px auto 0;text-align:center;font:500 14.5px var(--sans,system-ui);color:var(--muted,#776c61)}
.om-err{margin-top:24px}
/* the composer (M2: camera, the message, send) */
.om-compose{flex:none;background:#fffdf9;border-top:1px solid #ebe2d6;padding:8px 12px calc(env(safe-area-inset-bottom) + 10px)}
.om-compose:empty{display:none}
.om-bar{display:flex;align-items:flex-end;gap:10px;max-width:640px;margin:0 auto}
.om-cam{width:44px;height:48px;display:grid;place-items:center;color:var(--orange,#ba4b2a);cursor:pointer;flex:none}
.om-in{flex:1;min-height:48px;max-height:140px;box-sizing:border-box;border:1px solid #ddd2c4;border-radius:24px;background:#fff;padding:12px 18px;font:500 16.5px/1.35 var(--sans,system-ui);color:var(--ink,#2f2622);resize:none}
.om-in::placeholder{color:#8f847a}
.om-send{width:48px;height:48px;border:0;border-radius:50%;background:var(--orange,#ba4b2a);color:#fff;display:grid;place-items:center;flex:none;cursor:pointer}
.om-tray{display:flex;gap:8px;max-width:640px;margin:2px auto 8px;padding-left:54px}
.om-tph{position:relative;width:62px;height:62px;border-radius:12px;background:#efe7dd center/cover}
.om-tph.up{opacity:.5}
.om-tph button{position:absolute;top:-6px;right:-6px;width:22px;height:22px;border-radius:50%;border:0;background:#2f2622;color:#fff;display:grid;place-items:center;padding:0}
.om-tph button svg{width:10px;height:10px}
/* the website from a message email (M7) */
.om-webpage .om-screen{position:static;min-height:100vh}
.om-wtop{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 6px;max-width:640px;margin:0 auto}
.om-wbrand{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--ink,#2f2622)}
.om-wbrand img{border-radius:8px}.om-wbrand b{font:800 24px/1 'Archivo',var(--sans,system-ui);letter-spacing:-.02em}
.om-wtop>span{font:600 15px var(--sans,system-ui);color:var(--muted,#776c61)}
.om-wname{display:flex;align-items:center;justify-content:center;gap:10px;padding:4px 16px 12px;max-width:640px;margin:0 auto;position:relative}
.om-wname b{font:800 20px/1.2 'Archivo',var(--sans,system-ui);font-stretch:92%}
.om-wname .om-more{position:absolute;right:16px;width:40px;height:40px}
.om-webpage .om-compose{position:sticky;bottom:0}
/* a photo full screen (M2b) */
.om-viewer{position:fixed;inset:0;z-index:10000;background:#121212;display:flex;flex-direction:column;color:#fff}
.om-vtop{display:flex;align-items:center;gap:14px;padding:calc(env(safe-area-inset-top) + 14px) 16px 10px}
.om-vtop span{flex:1;text-align:center;font:600 15px var(--sans,system-ui);margin-right:46px}
.om-vx{width:46px;height:46px;border-radius:50%;border:0;background:#2c2c2c;color:#fff;display:grid;place-items:center}
.om-viewer img{flex:1;min-height:0;width:100%;object-fit:contain}
.om-vbar{display:flex;justify-content:space-around;padding:16px 16px calc(env(safe-area-inset-bottom) + 22px)}
.om-vbar button{border:0;background:none;color:#fff;font:700 17px var(--sans,system-ui);padding:10px 22px}
/* the Message buttons on order screens */
.om-pri{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:56px;margin-top:18px;border-radius:999px;background:var(--orange,#ba4b2a);color:#fff;font:800 18px/1 'Archivo',var(--sans,system-ui);font-stretch:94%;text-decoration:none;box-sizing:border-box}
.om-act{width:100%;flex:none}
.od-when-btns+.om-act,.om-act.om-wide{margin-top:8px}
.om-rowbtn{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 16px;border:1px solid #ddd2c4;border-radius:999px;background:#fff;font:700 14px var(--sans,system-ui);color:var(--ink,#2f2622);text-decoration:none}
.om-rowbtn svg{width:17px;height:17px;color:var(--orange,#ba4b2a)}
.od-rowacts .om-rowbtn{margin-right:6px}
.om-badge{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;box-sizing:border-box;margin-left:7px;border-radius:999px;background:var(--orange,#ba4b2a);color:#fff;font:800 12.5px/1 var(--sans,system-ui);font-style:normal}
/* the shop's Messages tab (M8) */
.om-every{display:flex;align-items:center;gap:10px;width:100%;margin-top:14px;padding:16px 14px 16px 16px;border-radius:20px;border:1px solid #ebe2d6;background:#fffdf9;white-space:nowrap;font:700 16px var(--sans,system-ui);color:var(--ink,#2f2622);text-align:left;cursor:pointer}
.om-every svg{color:var(--orange,#ba4b2a);flex:none}.om-every span{flex:1}.om-every em{font-style:normal;color:#9b8f86;font-size:22px}
.om-ilist{padding:0 14px}
.om-irow{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #f0e8de;text-decoration:none;color:var(--ink,#2f2622)}
.om-irow:last-child{border-bottom:0}
.om-it{flex:1;min-width:0}.om-it b{display:block;font:700 16.5px/1.25 var(--sans,system-ui)}.om-it b small{font:600 14px var(--sans,system-ui);color:#9b8f86}
.om-it>small{display:block;font:500 14.5px/1.3 var(--sans,system-ui);color:#5e534a;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.om-irow.unread .om-it>small{font-weight:700;color:var(--ink,#2f2622)}
.om-iw{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:none}.om-iw small{font:500 13.5px var(--sans,system-ui);color:#8f847a}.om-iw .om-badge{margin:0}
.om-only{margin:10px 4px 0}
/* Message everyone (M10, M10b) */
.om-evsub{margin:-4px 0 6px;font:500 15.5px/1.4 var(--sans,system-ui);color:var(--muted,#776c61)}
.om-ev textarea{min-height:110px}
.om-ev .vz-btn{margin-top:14px}
.om-evprev{padding:14px 18px;border-radius:20px;border-bottom-right-radius:6px;background:var(--orange,#ba4b2a);color:#fff;font:500 16.5px/1.4 var(--sans,system-ui);white-space:pre-wrap;overflow-wrap:anywhere}
.om-evinfo{margin-top:14px}
.om-evinfo>div{display:flex;gap:12px;align-items:flex-start;padding:14px 16px}
.om-evinfo>div+div{border-top:1px solid #f0e8de}
.om-evinfo svg{flex:none;width:34px;height:34px;padding:8px;box-sizing:border-box;border-radius:50%;background:#f3ece2;color:#5e534a}
.om-evinfo b{display:block;font:700 15.5px/1.3 var(--sans,system-ui)}.om-evinfo small{display:block;font:500 14px/1.35 var(--sans,system-ui);color:var(--muted,#776c61);margin-top:2px}
/* a note with a refund or a cancel */
.om-note{margin-top:16px}
/* Order settings › New order alerts (S6) */
.om-alerts .om-sum{display:block}
.om-time{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:4px 18px 14px;font:500 14.5px var(--sans,system-ui);color:var(--muted,#776c61)}
.om-time input{border:1px solid #ddd2c4;border-radius:12px;padding:8px 10px;font:600 15px var(--sans,system-ui);color:var(--ink,#2f2622);background:#fff}
.om-chtime{border:0;background:none;padding:0 18px 12px;font:700 14px var(--sans,system-ui);color:var(--orange,#ba4b2a);cursor:pointer}
.om-more .od-wmrow:disabled{opacity:.5}
@media (min-width:900px){.om-screen:not(.om-web){left:50%;transform:translateX(-50%);max-width:720px;border-left:1px solid #ebe2d6;border-right:1px solid #ebe2d6}}
.om-open .site-header,.om-open .site-footer{display:none}
/* ---- TF 1.1.24 fixes (mock/1124-fixes) ---- */
/* #16: when the chat closes, under the order card; and the order's steps as lines among the messages. */
.om-closes{margin:8px auto 0;text-align:center;font:600 13px var(--sans,system-ui);color:var(--muted,#776c61)}
.om-sys{display:flex;align-items:center;justify-content:center;gap:6px;margin:10px auto;font:700 13.5px var(--sans,system-ui);color:#2f5e3b}
.om-sys svg{width:12px;height:12px}
.om-closed{max-width:350px;line-height:1.4;font-size:14px!important}
/* #15: the ••• menu: useful rows in one card, Report and Block small and plain under it. */
.om-more .om-mtop{padding:2px 14px!important}
.om-more .om-mrow{border:0;border-bottom:1px solid #f0e8de;border-radius:0;background:none;padding:14px 2px;min-height:0;text-decoration:none;color:inherit}
.om-more .om-mrow:last-child{border-bottom:0}.om-more .om-mrow svg{width:22px;height:22px;color:#6f6157}
.om-more .om-mrow b{font:600 16px var(--sans,system-ui)}
.om-mlow{display:flex;justify-content:center;gap:26px;margin:14px 0 4px}
.om-small{border:0;background:none;padding:6px 4px;font:600 14px var(--sans,system-ui);color:#8f847a}
/* A long shop name in the box's hint stays on one line ("Message Mad Batter Confecti…"). */
.om-in::placeholder{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* TF 1.1.24 #29: the summary's time as a button over the native picker. */
.om-time .om-pick{width:auto;min-height:44px;padding:0 14px;border-radius:12px}.om-time .om-pick b{font-size:15.5px}
.om-time .om-pick input{border:0;padding:0}

/* TF 1.1.25 #104: Block asks first; a blocked chat says so with Unblock. */
.om-ask{margin:2px 2px 14px;font:500 15.5px/1.4 var(--sans,system-ui);color:#4a3f37}
.om-unblock{border:0;background:none;padding:0;font:inherit;font-weight:800;color:#ba4b2a;text-decoration:underline}
.om-bsub{display:block;font-size:13px;color:#8f847a}
