#shop-support{--support-viewport:100dvh;position:fixed;right:max(20px,env(safe-area-inset-right));bottom:calc(max(18px,env(safe-area-inset-bottom)) + var(--support-rise,0px));z-index:35;max-width:calc(100vw - 32px);font:15px/1.4 var(--store-text,'Segoe UI',sans-serif);color:#1d4439}
#shop-support [hidden],.support-owner [hidden]{display:none!important}
.support-launch,.support-send{border:1px solid #1f5143;border-radius:24px;background:#1f5143;color:white;font:600 14px/1.2 var(--store-text,'Segoe UI',sans-serif);padding:11px 17px;cursor:pointer}
.support-launch{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;margin-left:auto;box-shadow:0 4px 18px #183e3430}
.support-launch svg{width:21px;height:21px}
.support-badge{position:absolute;right:-5px;top:-5px;background:#f3d899;color:#234737;border:1px solid #806139;border-radius:50%;font-weight:700;min-width:20px;min-height:20px;display:grid;place-content:center}
.support-panel{display:flex;flex-direction:column;width:min(375px,calc(100vw - 32px));max-height:min(60dvh,calc(var(--support-viewport) - 32px),var(--support-max-height,100dvh));background:#fffefa;border:1px solid #d9c59a;border-radius:17px;box-shadow:0 15px 50px #183d3438;overflow:hidden}
.support-panel header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 14px;background:#eff6fa;border-bottom:1px solid #e8e1d1}
.support-panel h2{margin:0;font:500 21px/1.15 var(--store-display,Georgia,serif);color:#1d4439}
.support-close{min-width:34px;min-height:34px;border:1px solid #dbc99f;border-radius:50%;background:#fffefa;color:#1d4439;font-size:21px;cursor:pointer}
.support-body{padding:12px 14px 14px;overflow:auto;overscroll-behavior:contain;min-height:0}
.support-body p{margin:0 0 8px}
.support-product{font-size:12px;border-left:2px solid #cba76e;padding:4px 7px;color:#4d6659;background:#f6f7f1;overflow-wrap:anywhere}
.support-options{font-size:13px}
.support-options summary{cursor:pointer;color:#31594d}
.support-options[open] summary{margin-bottom:6px}
.support-body form{display:grid;gap:8px}
.support-body label{display:grid;gap:4px;font-weight:600;font-size:13px}
.support-body input:not([type=checkbox]),.support-body select,.support-body textarea{width:100%;box-sizing:border-box;border:1px solid #adbfb5;border-radius:8px;background:white;color:#183e34;padding:7px;font:17px/1.3 var(--store-text,'Segoe UI',sans-serif)}
.support-body textarea{min-height:62px;resize:vertical}
.support-contact{display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,1.5fr);gap:7px;margin-bottom:6px}
.support-body .support-consent{display:flex;align-items:flex-start;gap:6px;font-size:12px;font-weight:400}
.support-consent input{margin:3px 0 0;accent-color:#1f5143}
.support-body .support-privacy{font-size:11px;color:#53685c;margin:0}
.support-body a{color:#214e40;text-decoration:underline;text-underline-offset:2px}
.support-log p{background:#eff5f7;border-radius:8px;padding:8px 10px;white-space:pre-wrap;overflow-wrap:anywhere}
.support-log .support-answer{background:#edf5ee}
.support-status{margin-top:8px!important;font-size:13px}
.support-new{margin-top:4px}
#shop-support.support-in-cart{position:static;max-width:none;margin-top:12px}
#shop-support.support-in-cart .support-panel{width:100%;max-height:min(60dvh,440px);margin-left:auto}
#shop-support.support-in-cart .support-launch{width:auto;height:auto;border-radius:24px;padding:9px 13px;margin-left:0}
#shop-support.support-in-cart .support-launch span:first-of-type{display:inline}
#shop-support :is(button,input,textarea,select,summary,a):focus-visible{outline:2px solid #9a702d;outline-offset:2px}
@media(max-width:760px){
 #shop-support{right:max(12px,env(safe-area-inset-right));bottom:calc(max(12px,env(safe-area-inset-bottom)) + var(--support-rise,0px))}
 #shop-support.support-open{left:max(12px,env(safe-area-inset-left));max-width:none}
 .support-panel{width:100%;max-height:min(80dvh,calc(var(--support-viewport) - 32px))}
 .support-launch{width:60px;height:60px;border-radius:50%;padding:0}
 .support-launch svg{width:27px;height:27px}
 .support-launch span:first-of-type{display:none}
}


/* Conversation layout. The header and composer stay visible while the messages scroll. */
.consult-panel header{background:linear-gradient(120deg,#f1f8fc,#eaf3f7)}
.consult-panel .consult-body{padding:12px;scrollbar-width:thin;min-height:130px}
.consult-feed{display:grid;gap:9px}
.consult-message{justify-self:start;min-width:0;max-width:100%;box-sizing:border-box;border:1px solid #dde6df;border-radius:12px 12px 12px 3px;padding:9px 10px;background:#fbfdfb;white-space:pre-wrap;overflow-wrap:anywhere}
.consult-message p:last-child{margin-bottom:0}
.consult-buyer{justify-self:end;max-width:88%;background:#eaf4fa;border-color:#d4e5ec;border-radius:12px 12px 3px 12px}
.consult-seller{background:#eef6ee;border-color:#c9dcca}
.consult-seller-label{display:block;margin-bottom:3px;color:#1d5544;font-size:12px}
.consult-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:7px;margin-top:7px;padding:6px;background:white;border:1px solid #e8e1d2;border-radius:9px;white-space:normal}
.consult-card img{object-fit:cover;border-radius:6px}
.consult-card div{min-width:0}
.consult-card div:first-child{grid-column:span 2}
.consult-card strong,.consult-card span,.consult-card small{display:block;overflow-wrap:anywhere}
.consult-card strong{font-size:13px;line-height:1.2}
.consult-card span{color:#195346;font-weight:700;font-size:13px}
.consult-card a{border:1px solid #cfb57d;background:#fbf7ec;border-radius:14px;padding:5px 7px;text-decoration:none;font-size:12px;font-weight:700}
.consult-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}
.consult-chips button{border:1px solid #c7dbd5;border-radius:14px;padding:5px 9px;background:#f4f9f7;color:#204e40;font:600 12px/1.3 var(--store-text,'Segoe UI',sans-serif);cursor:pointer}
.consult-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:7px;padding:8px 12px;border-top:1px solid #e8e1d2;background:#fffefa}
.consult-composer textarea{box-sizing:border-box;width:100%;min-height:44px;max-height:110px;resize:vertical;border:1px solid #adbfb5;border-radius:9px;padding:7px;color:#1d4439;background:white;font:18px/1.15 var(--store-text,'Segoe UI',sans-serif)}
.consult-composer button{padding:9px 12px;min-height:44px}
.consult-footer{display:flex;justify-content:space-between;gap:6px;padding:0 12px 8px;color:#52685e;font-size:11px}
.consult-link{border:0;background:none;color:#285648;padding:0;text-decoration:underline;text-underline-offset:2px;font:inherit;cursor:pointer}
.consult-escalation{margin-top:9px}
.consult-escalation-actions{display:flex;align-items:center;gap:12px}
.consult-contact{border:1px solid #e3d6bc;border-radius:9px;padding:9px;background:#fffdfa}
.consult-contact p{margin:0}
.consult-status{color:#31594d;margin:7px 0 0!important;font-size:13px}
.support-send:disabled{opacity:.6;cursor:default}
@media(prefers-reduced-motion:no-preference){
 .support-open .consult-panel{animation:consult-appear 190ms ease-out both}
 @keyframes consult-appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
}
@media(max-width:760px){.consult-panel .consult-body{min-height:100px}.consult-footer{flex-wrap:wrap}}

.consult-contact-open .consult-composer,.consult-contact-open .consult-footer{display:none}
.consult-contact-open .consult-feed,.consult-contact-open .consult-chips{display:none}
.consult-contact-open .consult-contact{padding:11px}
.consult-contact-open .consult-escalation{margin-top:0}
.consult-contact-open .consult-body{padding-bottom:14px}
.consult-contact-open .consult-escalation-actions{flex-wrap:wrap}
.consult-contact-open .consult-escalation-actions .support-send{min-height:44px}
#shop-support[style*="--support-max-height"] .consult-body{min-height:0}