.customer-auth{max-width:480px;margin:45px auto 70px;padding:24px}.customer-auth-logo img{width:170px}.customer-auth h1{font-size:27px;margin:30px 0}.customer-auth form{display:grid;gap:18px}.customer-auth label{display:grid;gap:8px;font-weight:600}.customer-auth input{width:100%;border:1px solid #dcd8da;border-radius:10px;padding:13px}.customer-auth a,.customer-auth button[data-customer-seller]{color:var(--red)}.customer-seller-entry{border-top:1px solid #eee;margin-top:28px;padding-top:20px;display:flex;gap:12px;flex-wrap:wrap;font-size:13px}.customer-profile{display:grid;gap:16px}.customer-chat{display:grid;grid-template-columns:215px minmax(0,1fr);min-height:480px;gap:20px}.customer-chat>aside{border-inline-end:1px solid #eee;padding-inline-end:16px;max-height:570px;overflow:auto}.customer-thread{display:grid;gap:6px;text-align:start;width:100%;padding:14px 9px;border-bottom:1px solid #eee}.customer-thread.active{background:#fff0f5;border-radius:10px}.customer-thread small{color:#888}.customer-chat>section{min-width:0;display:flex;flex-direction:column}.customer-chat-heading{display:flex;gap:14px;align-items:center;padding:0 0 15px;border-bottom:1px solid #eee}.customer-chat-heading b{color:var(--red)}.customer-chat-heading span{font-size:12px;color:#777}#customer-chat-messages{height:330px;overflow:auto;padding:18px 0;display:flex;flex-direction:column;gap:14px}.customer-message{max-width:88%;padding:12px 15px;background:#f5f4f5;border-radius:14px;align-self:flex-start}.customer-message.mine{background:#fff0f5;align-self:flex-end}.customer-message small{font-size:11px;color:#777}.customer-message p{margin:6px 0 0;white-space:pre-wrap;line-height:1.6;overflow-wrap:anywhere}#paxia-ai-send{display:flex;gap:10px;border-top:1px solid #eee;padding-top:14px}#paxia-ai-send textarea{resize:none;min-width:0;flex:1;border:1px solid #ddd;border-radius:12px;padding:12px}#paxia-ai-send button{align-self:flex-end}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#customer-auth-status,#customer-chat-status{color:#a50035;line-height:1.5;font-size:13px}.image-drop-zone{border:2px dashed #e8a1b8;border-radius:14px;text-align:center;padding:28px 18px;background:#fff8fa;cursor:pointer;transition:background .15s}.image-drop-zone.dragging{background:#ffe1eb;border-color:#fd0051}.image-drop-zone p{margin:8px 0}.image-drop-zone:focus-visible{outline:3px solid #fd0051}.image-choice-actions{display:flex;gap:10px;flex-wrap:wrap}.buyer-image-preview-wrap{display:flex;gap:15px;align-items:center}.buyer-search-preview{max-width:180px;max-height:160px;object-fit:contain}.image-choice-actions .secondary{border:1px solid #ddd;border-radius:22px;padding:9px 16px}html[dir=rtl] .customer-chat{direction:rtl}@media(max-width:650px){.customer-auth{margin:20px auto;padding:20px}.customer-chat{grid-template-columns:1fr;gap:10px;min-height:450px}.customer-chat>aside{display:flex;max-height:80px;border-inline-end:0;border-bottom:1px solid #eee;overflow:auto;gap:8px;padding:0 0 10px}.customer-thread{min-width:130px;max-width:170px;flex-shrink:0;padding:8px}.customer-thread span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#customer-chat-messages{height:300px}#paxia-ai-send{gap:6px}#paxia-ai-send button{padding:12px 18px}.image-drop-zone{padding:22px 10px}}
.customer-provider-logins{display:flex;justify-content:center;gap:22px;margin:24px 0 28px;padding-bottom:22px;border-bottom:0}.customer-provider{display:grid;justify-items:center;gap:8px;font-size:11px;padding:0;min-width:58px}.customer-provider svg,.customer-provider img{width:32px;height:32px;object-fit:contain}.customer-provider:disabled{opacity:.4;cursor:default}.customer-provider:not(:disabled):hover{transform:translateY(-2px)}#customer-wallet-status{color:#a50035;font-size:13px;line-height:1.5}

.image-search-overlay{background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;padding:12px!important}.image-search-overlay .dialog{position:fixed;top:var(--image-panel-top,150px);left:var(--image-panel-left,12px);width:var(--image-panel-width,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - var(--image-panel-top,150px) - 12px);margin:0;box-shadow:0 8px 28px #0003}.image-search-overlay .dialog-head{padding:18px 22px}.image-search-overlay .dialog-head h2{font-size:16px;flex:1;text-align:center}.image-search-overlay #dialog-body{padding:0 22px 20px}.image-search-overlay .image-drop-zone{border-color:#ddd;background:#fff;padding:20px 15px;display:flex;flex-direction:column;align-items:center;gap:8px}.image-search-overlay .image-drop-zone p{margin:0}.image-search-overlay .image-drop-zone b{font-weight:400}.image-upload-icon{width:30px;height:30px;stroke:currentColor;fill:none;stroke-width:1.7}.image-drop-upload{background:var(--red);color:#fff;border-radius:24px;padding:10px 24px;font-weight:600}.image-search-overlay .image-drop-zone small{color:#888;font-size:11px}.image-search-overlay .image-choice-actions{margin-top:0}@media(max-width:450px){.customer-provider-logins{gap:14px}.customer-provider{min-width:50px}.image-search-overlay .dialog-head{padding:15px}.image-search-overlay #dialog-body{padding:0 14px 15px}}

.customer-auth{text-align:center}.customer-auth h1{margin:30px 0 38px}.customer-auth form{text-align:start}.customer-provider-logins{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;width:100%;margin:0 auto 32px;padding:12px 0 32px}.customer-provider{min-width:0;width:100%;gap:12px;font-size:12px;align-content:start;min-height:88px;padding:8px 0}.customer-provider svg,.customer-provider img{width:48px;height:48px;display:block}.customer-email-login{text-align:start;border-bottom:1px solid #eee;padding-bottom:20px}.customer-email-login summary{cursor:pointer;list-style:none;text-align:center;font-weight:600;padding:14px 20px;border:1px solid #ddd;border-radius:28px;display:flex;justify-content:center;align-items:center;gap:12px;min-height:48px}.customer-email-login summary::-webkit-details-marker{display:none}.customer-email-login summary:after{content:"";width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-top:-4px}.customer-email-login[open] summary:after{transform:rotate(225deg);margin-top:4px}.customer-email-login[open] summary{margin-bottom:24px}.customer-email-login summary:focus-visible{outline:3px solid #fe80a9;outline-offset:3px}.customer-signup-link{margin-top:24px}.customer-seller-entry{justify-content:center}@media(max-width:450px){.customer-provider-logins{gap:8px}.customer-provider{min-width:0;font-size:11px}.customer-provider svg,.customer-provider img{width:44px;height:44px}}

body.auth-mode #main{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;padding:max(24px,env(safe-area-inset-top)) 0 max(24px,env(safe-area-inset-bottom))!important}body.auth-mode #main>.customer-auth{flex:0 0 auto;width:100%;max-width:480px;margin:auto;padding:24px}@media(max-width:650px){body.auth-mode #main>.customer-auth{padding:20px}}

/* v0.7.7: usable composers, populated context, equal-sized send controls. */
.customer-chat,.buyer-messenger{grid-template-columns:215px minmax(0,1fr);gap:24px}
.buyer-messenger>section,.buyer-messenger>aside{min-width:0}
.buyer-messenger>aside{text-align:start;border-inline-end:1px solid #eee;padding-inline-end:18px}
.buyer-context-label{font-size:11px;color:#777}.buyer-messenger aside h3{font-size:17px;margin:6px 0 18px}.buyer-messenger aside h4,.customer-chat aside h4{font-size:12px;color:#777;margin:22px 0 12px}.buyer-context-product{display:grid;gap:12px;line-height:1.6;overflow-wrap:anywhere}.buyer-context-product img{width:100%;height:140px;object-fit:contain;background:#faf9fa;border-radius:10px}.buyer-messenger aside dl{font-size:12px;margin:16px 0 24px}.buyer-messenger aside dl div{display:flex;justify-content:space-between;gap:10px;padding:8px 0}.buyer-messenger aside dt{color:#777}.buyer-messenger aside dd{margin:0;text-align:end}.buyer-history-note{font-size:11px;color:#888;line-height:1.7}.customer-ai-profile{padding:12px 0 16px}.customer-ai-profile b{color:var(--red);font-size:18px}.customer-ai-profile p{font-size:12px;color:#777}
#paxia-ai-send,#buyer-reply{display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:12px;align-items:end;width:100%;border-top:1px solid #eee;padding-top:16px}
#paxia-ai-send textarea,#buyer-reply textarea{box-sizing:border-box;width:100%;min-width:0;min-height:48px;height:48px;max-height:150px;resize:vertical;border:1px solid #ddd;border-radius:12px;padding:12px;font-size:14px;line-height:22px}
#buyer-reply label{display:grid;gap:8px;min-width:0}#paxia-ai-send button.primary,#buyer-reply button.primary{box-sizing:border-box;width:104px!important;min-width:104px;height:48px;margin:0;padding:0 12px;align-self:end;border-radius:999px;white-space:nowrap}
#buyer-start{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}#buyer-start>h3{grid-column:1/-1}#buyer-start label:has(textarea),#buyer-start .full{grid-column:1/-1}#buyer-start textarea{min-height:140px}#buyer-start button.primary{width:160px;min-height:44px;justify-self:end;grid-column:1/-1}
@media(max-width:650px){.customer-chat,.buyer-messenger{grid-template-columns:minmax(0,1fr);gap:18px}.buyer-messenger>aside{display:block;border-inline-end:0;border-bottom:1px solid #eee;padding:0 0 16px}.buyer-context-product{grid-template-columns:72px minmax(0,1fr);align-items:center}.buyer-context-product img{height:72px}.buyer-messenger aside dl{margin:12px 0;display:flex;flex-wrap:wrap;gap:16px}.buyer-messenger aside dl div{gap:8px}.buyer-messenger aside h4,.buyer-history-note{margin:12px 0}#buyer-thread-list{display:flex;gap:10px;overflow:auto}#buyer-thread-list button{min-width:130px;max-width:200px}.customer-chat>aside .customer-ai-profile{display:none}.customer-chat>aside h4{flex-shrink:0;align-self:center;margin:0;font-size:11px}#buyer-start{grid-template-columns:minmax(0,1fr)}#paxia-ai-send,#buyer-reply{grid-template-columns:minmax(0,1fr) 84px;gap:8px}#paxia-ai-send button.primary,#buyer-reply button.primary{width:84px!important;min-width:84px}}


.address-list{display:grid;gap:14px;margin-top:18px}.address-card{padding:18px;background:#fafafa;border-radius:14px;overflow-wrap:anywhere}.address-card header{padding:0;background:none;display:flex;justify-content:space-between;gap:10px}.address-card p{line-height:1.65}.address-card>div{display:flex;gap:10px;flex-wrap:wrap}.address-default{display:flex!important;align-items:center;gap:8px}.address-default input{width:auto}.customer-provider-logins{margin:20px 0}.customer-auth #customer-auth-status{line-height:1.7}
.customer-auth-language{position:fixed;top:24px;right:24px;z-index:45;width:44px;height:44px;border-radius:50%;background:#fff;box-shadow:0 1px 8px #0000000b;display:grid;place-items:center;color:#222}.customer-auth-language svg{width:23px;height:23px;pointer-events:none}.customer-auth-language select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.customer-auth-language:focus-within{outline:2px solid #fd0051;outline-offset:3px}@media(max-width:450px){.customer-auth-language{top:18px;right:18px}}

.customer-auth-logo img{height:auto;max-width:100%}
