.customer-messages-entry{position:relative;display:inline-flex;align-items:center;gap:.35rem;justify-content:center;flex-shrink:0;min-width:2rem;min-height:2rem;color:var(--text-secondary);border-radius:var(--radius-full);text-decoration:none;font-size:.8125rem;font-weight:600}.customer-messages-entry:hover{background:var(--bg-subtle)}.customer-messages-entry[hidden],.customer-messages-badge[hidden]{display:none}.customer-messages-entry svg{width:1.15rem;height:1.15rem}.customer-messages-badge{position:absolute;top:-.3rem;right:-.35rem;min-width:1.1rem;height:1.1rem;padding-inline:.2rem;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-full);background:#dc2626;color:#fff;font-size:.625rem;font-weight:700;line-height:1}.customer-message-modal{overscroll-behavior:contain;margin:auto;padding:1.75rem;width:min(36rem,calc(100vw - 2rem));max-height:calc(100dvh - 3rem);overflow-y:auto;border:1px solid var(--border);border-radius:var(--radius-xl);color:var(--text-primary);background:var(--bg-surface);box-shadow:var(--shadow-lg);font-family:var(--font-sans)}.customer-message-modal::backdrop{overflow:hidden;overscroll-behavior:contain;background:#18181b7a}.customer-message-modal-head{display:flex;align-items:center;justify-content:space-between;gap:1rem}.customer-message-eyebrow{color:var(--brand);font-size:.8125rem;font-weight:600}.customer-message-remaining{font-size:.75rem;color:var(--text-secondary)}.customer-message-modal h2{font-size:1.35rem;margin:.9rem 0 .35rem;line-height:1.4;overflow-wrap:anywhere}.customer-message-time{color:var(--text-secondary);font-size:.75rem}.customer-message-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;font-size:.9375rem}.customer-message-content{margin-top:1rem}.customer-message-tasks{display:grid;gap:.5rem;margin-top:1rem}.customer-message-task{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.8rem;background:var(--bg-subtle);border:1px solid var(--border);border-radius:var(--radius-md)}.customer-message-task-copy{display:grid;gap:.25rem;min-width:0;font-size:.8125rem;overflow-wrap:anywhere}.customer-message-task-copy span{color:var(--text-secondary)}.customer-message-task button{flex-shrink:0}.customer-message-reply{display:grid;gap:.5rem;margin-top:1.25rem;padding-top:1.25rem;border-top:1px solid var(--border)}.customer-message-reply label{font-size:.8125rem;font-weight:600}.customer-message-reply textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:5rem;border:1px solid var(--border);border-radius:var(--radius-md);padding:.75rem;background:var(--bg-surface);color:var(--text-primary);font:inherit;font-size:.875rem}.customer-message-send{justify-self:end}.customer-message-error{color:#b91c1c;font-size:.8125rem;overflow-wrap:anywhere}.customer-message-error:empty{display:none}.customer-message-actions{display:flex;justify-content:flex-end;gap:.6rem;padding-top:1rem;margin-top:1rem;border-top:1px solid var(--border)}body.customer-messages-open main.container>:not(#customerMessagesView){display:none}.customer-messages-page{max-width:48rem;margin:2rem auto 4rem;padding-inline:.25rem}.customer-messages-back{display:inline-block;margin-bottom:1.25rem;font-size:.875rem;color:var(--text-secondary)}.customer-messages-page h1{font-size:1.75rem;margin-bottom:1.5rem}.customer-message-list{display:grid;gap:.75rem}.customer-message-item{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--bg-surface)}.customer-message-item.is-customer{margin-left:2rem}.customer-message-item summary{display:flex;align-items:center;gap:.75rem;padding:1rem;cursor:pointer;list-style:none}.customer-message-item summary::-webkit-details-marker{display:none}.customer-message-summary-copy{display:grid;gap:.35rem;min-width:0;flex:1;overflow-wrap:anywhere}.customer-message-summary-copy strong{font-size:.9375rem}.customer-message-item .customer-message-content{padding:0 1rem 1rem;margin-top:0}.customer-message-new{color:#b91c1c;font-size:.75rem;font-weight:600;flex-shrink:0}.customer-messages-empty{color:var(--text-secondary);line-height:1.7;font-size:.875rem}.customer-message-modal :focus-visible,.customer-messages-page :focus-visible,.customer-messages-entry:focus-visible{outline:2px solid var(--brand);outline-offset:3px}@media(max-width:1199px){.customer-messages-entry-label{display:none}.header:has(.customer-messages-entry) #userEmail{max-width:clamp(24px,30vw - 252px,128px)}}@media(max-width:960px){body.auth-logged-in #loggedInActions:has(.customer-messages-entry){display:flex}.customer-messages-entry{width:2rem}}@media(max-width:600px){.customer-message-modal{margin:auto 0 0;width:100%;max-width:none;max-height:calc(100dvh - 1rem);padding:1.25rem 1.25rem max(1.25rem,env(safe-area-inset-bottom));border-radius:var(--radius-xl) var(--radius-xl) 0 0;border-bottom:0}.customer-message-actions{flex-direction:column}.customer-message-actions button,.customer-message-send{width:100%;min-height:2.75rem}.customer-message-item.is-customer{margin-left:.75rem}.customer-messages-page{margin-top:1.25rem}}.plugin-shell~.customer-message-modal,.plugin-topbar .customer-messages-entry{--bg-surface: #fff;--bg-subtle: var(--plugin-soft);--text-primary: var(--plugin-ink);--text-secondary: var(--plugin-muted);--brand: var(--plugin-brand);--border: var(--plugin-line);--radius-full: 999px;--radius-md: 8px;--radius-xl: 16px;--font-sans: inherit;--shadow-lg: 0 20px 60px rgba(23, 32, 51, .16)}.plugin-shell~.customer-message-modal .btn{display:inline-flex;align-items:center;justify-content:center;min-height:2.75rem;padding:.65rem 1rem;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--bg-surface);color:var(--text-primary);font:inherit;font-size:.875rem;cursor:pointer}.plugin-shell~.customer-message-modal .btn-primary{background:var(--brand);border-color:var(--brand);color:#fff}.plugin-shell~.customer-message-modal .btn:disabled{opacity:.55;cursor:default}
