/* TAMIZHAN V9: compact top toolbar, accessible mobile hit targets and private chat */
.v9-global-nav{position:sticky;top:0;z-index:140;display:flex;justify-content:center;gap:5px;flex-wrap:wrap;padding:7px 9px;background:#110b17f5;border-bottom:1px solid #a53d5b;box-shadow:0 5px 18px #0009;color:#fff;max-width:100%;box-sizing:border-box}
.v9-global-nav button{color:#fff!important;background:#261323!important;border:1px solid #894353!important;border-radius:9px!important;padding:9px 10px!important;font-size:12px!important;line-height:1.2!important;min-height:39px!important;min-width:60px!important;width:auto!important;font-weight:750;flex:0 1 auto;margin:0!important;box-shadow:none!important}
.v9-global-nav button:disabled{opacity:.38!important;cursor:not-allowed!important}
.v9-global-nav button:hover:not(:disabled),.v9-global-nav button:focus-visible{background:#81263a!important;outline:1px solid #e68b91}
@media(max-width:420px){.v9-global-nav{gap:3px;padding:5px 3px}.v9-global-nav button{font-size:11px!important;min-width:0!important;flex:1 1 auto;padding:9px 2px!important}}
.v9-chatbox,.v9-admin-chat{border:1px solid #a4445e;border-radius:11px;background:#190d16;padding:12px;margin:14px 0;color:#f4e9ed;max-width:100%;min-width:0;box-sizing:border-box}
.v9-chatbox>summary{cursor:pointer;font-weight:800;color:#ffe2e9;list-style-position:inside;padding:4px 2px;overflow-wrap:anywhere}
.v9-chat-inside{margin-top:12px}.v9-chat-hint{font-size:12px;color:#cbb7c1;margin:5px 0 10px}.v9-chat-log{display:flex;flex-direction:column;gap:9px;max-height:250px;min-height:72px;overflow:auto;padding:10px 7px;border:1px solid #634454;border-radius:9px;background:#0e0b13;overflow-wrap:anywhere}
.v9-chat-bubble{max-width:88%;border:1px solid #5b5368;border-radius:10px;padding:9px 11px;color:#fff;background:#29212e;align-self:flex-start;min-width:90px}.v9-chat-bubble.mine{align-self:flex-end;background:#5c1b32;border-color:#a94465}.v9-chat-bubble strong,.v9-chat-bubble b{font-size:12px}.v9-chat-bubble p{margin:5px 0;line-height:1.35;white-space:pre-wrap;word-break:break-word}.v9-chat-bubble time{font-size:10px;opacity:.74}
.v9-chat-label{display:block;margin-top:10px;font-weight:750;font-size:13px}.v9-chat-label textarea,.v9-admin-chat textarea{display:block;margin:7px 0 10px;width:100%;min-width:0;max-width:100%;box-sizing:border-box;min-height:62px;color:#fff;background:#1e1725;border:1px solid #916778;border-radius:8px;padding:10px;font-size:16px}
.v9-chat-actions{display:flex;gap:8px;flex-wrap:wrap}.v9-chat-actions button{width:auto!important;min-height:40px!important;padding:9px 12px!important;font-size:13px!important}
/* Admin Orders are narrow, one-line-ish outlined rows; details open on tap. */
#ordersList{display:grid;gap:7px;min-width:0}#ordersList .v9-order-row{border:1px solid #805365;border-radius:10px;background:#170d1b;overflow:hidden;min-width:0;max-width:100%}#ordersList .v9-order-summary{display:flex;align-items:center;gap:12px;padding:10px 12px;list-style:none;cursor:pointer;min-width:0}#ordersList .v9-order-summary::-webkit-details-marker{display:none}#ordersList .v9-order-summary>span,#ordersList .v9-order-summary>b{min-width:0;overflow-wrap:anywhere}#ordersList .v9-buyer{flex:1.5;display:grid}#ordersList .v9-product{flex:1.4;display:grid}#ordersList .v9-total{flex:0 0 auto;font-size:13px;color:#ffc9b4}#ordersList .v9-state{font-size:11px;color:#e2c3d2;max-width:130px;white-space:normal;text-transform:capitalize}#ordersList .v9-chevron{color:#dba1a7}#ordersList .v9-order-summary small{font-size:10px;color:#b9a5b2;margin-top:2px}#ordersList .v9-order-expanded{padding:0 12px 12px;border-top:1px solid #5e334b}#ordersList .v9-order-expanded>.order-entry{margin-top:10px!important}#ordersList .v9-order-row[open]>.v9-order-summary{background:#3a1827}
@media(max-width:650px){#ordersList .v9-order-summary{gap:6px;padding:9px 8px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'buyer status' 'product price';align-items:start}#ordersList .v9-buyer{grid-area:buyer}#ordersList .v9-product{grid-area:product}#ordersList .v9-total{grid-area:price}#ordersList .v9-state{grid-area:status;max-width:112px;font-size:10px}#ordersList .v9-chevron{display:none}#ordersList .v9-order-expanded{padding:0 6px 10px}#ordersList .v9-order-expanded>.order-entry{padding:10px!important}#ordersList .v9-order-expanded input,#ordersList .v9-order-expanded textarea{max-width:100%}}

/* Full-product-photo preview. Scroll to inspect; touch pinch zoom remains available. */
.product-visual img[data-v9-zoom]{cursor:zoom-in;touch-action:manipulation}
.product-visual img[data-v9-zoom]:focus-visible{outline:3px solid #f1a0b6;outline-offset:3px}
.v9-photo-overlay[hidden]{display:none!important}
.v9-photo-overlay{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:rgba(4,3,9,.95);padding:12px;box-sizing:border-box;overflow:auto;overscroll-behavior:contain}
.v9-photo-panel{width:min(100%,980px);max-height:96dvh;display:flex;flex-direction:column;align-items:center;gap:8px;position:relative}
.v9-photo-close{align-self:flex-end;position:sticky;top:0;color:#fff!important;background:#a5284b!important;border:1px solid #dd9db0!important;padding:11px 16px!important;border-radius:10px!important;min-height:44px!important;width:auto!important;z-index:2}
.v9-photo-panel img{display:block;width:auto;max-width:100%;height:auto;max-height:calc(94dvh - 110px);object-fit:contain;border-radius:10px;border:1px solid #4e3848;background:#15101b}
.v9-photo-caption{color:#fff;word-break:break-word;font-size:13px;text-align:center;margin:3px}
body.v9-photo-open{overflow:hidden}
