.customer-service-host { font-family: inherit; color: #251e18; }
.service-launcher { position: fixed; right: 18px; bottom: 90px; z-index: 88; border: 1px solid #cdbd9e; border-radius: 999px; background: #fffdf7; color: #5b421f; padding: 12px 18px; min-height: 44px; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 4px 18px #0002; }
.service-unread { background: #086a32; color: #fff; border-radius: 999px; padding: 2px 7px; margin-left: 6px; }
.customer-service-panel { position: fixed; top: 0; right: 0; width: min(440px,100vw); height: 100dvh; z-index: 190; display: flex; flex-direction: column; gap: 10px; background: #fffaf2; border-left: 1px solid #cdbd9e; box-shadow: -10px 0 40px #0002; padding: 16px; box-sizing: border-box; max-width: 100vw; }
.customer-service-host [hidden] { display: none !important; }
.customer-service-panel header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.customer-service-panel header div { display: grid; gap: 5px; }
.customer-service-panel button { min-height: 42px; padding: 8px 12px; border: 1px solid #cdbd9e; border-radius: 12px; background: #fff; color: #5b421f; font: inherit; cursor: pointer; }
.customer-service-panel button:disabled { opacity: .5; cursor: not-allowed; }
.customer-service-panel button:focus-visible,.service-launcher:focus-visible { outline: 3px solid #226bbc; outline-offset: 2px; }
.service-notice { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.service-selection { max-height: 35%; overflow: auto; flex-shrink: 0; }
.service-selection summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.service-selection-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.service-style-card { display: flex; flex-direction: column; gap: 7px; text-align: left; min-width: 0; }
.service-style-card > a { display: grid; gap: 6px; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.service-style-card a[href]:focus-visible { outline: 3px solid #226bbc; outline-offset: 2px; }
.service-style-card a[aria-disabled="true"] { cursor: default; }
.service-style-card [data-service-detail-label] { font-size: 12px; text-decoration: underline; }
.service-compose-products { display: grid; gap: 6px; max-height: 220px; overflow-y: auto; border: 1px solid #cdbd9e; padding: 8px; border-radius: 10px; min-width: 0; }
.service-compose-products .service-style-card { padding: 5px; border: 1px solid #e7dfcf; border-radius: 8px; }
.service-compose-products .service-style-card img { height: 72px; }
.service-compose-products > small { font-size: 12px; overflow-wrap: anywhere; }
.service-upload-preview { display: block; max-width: 100%; width: 90px; height: 60px; object-fit: contain; }
.service-style-card img { width: 100%; height: 92px; object-fit: contain; background: #f4f0e7; }
.service-style-card span { display: grid; gap: 3px; font-size: 12px; overflow-wrap: anywhere; }
.service-image-pages { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin: 8px 0; }
.service-style-detail { padding: 8px 0; font-size: 13px; }
.service-historical-detail { flex: 0 1 auto; min-height: 0; max-height: 45%; overflow-y: auto; padding: 10px; border: 1px solid #e7dfcf; border-radius: 12px; font-size: 13px; }
.service-style-detail > div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0; }
.service-style-detail img { width: 100%; height: 120px; object-fit: contain; }
.service-history { flex: 1; min-height: 80px; overflow: auto; overscroll-behavior: contain; }
.service-message { max-width: 94%; border-radius: 12px; padding: 10px 12px; margin: 8px 0; background: #fff; border: 1px solid #e7dfcf; overflow-wrap: anywhere; }
.service-message-customer { margin-left: auto; background: #e9f3e8; }
.service-message-system { background: #f4f0e7; }
.service-message small { color: #6a5637; }
.service-message p { white-space: pre-wrap; margin: 5px 0; line-height: 1.45; }
.service-message button { max-width: 100%; overflow-wrap: anywhere; }
.service-composer { display: grid; gap: 6px; flex-shrink: 0; }
.service-composer label { font-size: 13px; font-weight: 700; }
.service-composer textarea { font: inherit; font-size: 16px; width: 100%; box-sizing: border-box; border: 1px solid #cdbd9e; border-radius: 10px; padding: 10px; resize: vertical; max-height: 150px; }
.service-composer > div { display: flex; justify-content: space-between; gap: 8px; }
.service-composer [data-service-send] { background: #086a32; color: #fff; }
.service-upload-status { font-size: 12px; max-height: 80px; overflow: auto; }
.service-upload-status p { margin: 3px 0; overflow-wrap: anywhere; }
.service-privacy { font-size: 11px; color: #6a5637; line-height: 1.35; padding-bottom: env(safe-area-inset-bottom); }
.service-shortcuts { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; padding: 4px 0; overscroll-behavior-x: contain; }
.service-shortcuts button { flex: 0 0 auto; border-radius: 999px; font-size: 13px; }
.service-picker { flex: 0 1 auto; min-height: 0; max-height: 46%; overflow-y: auto; border: 1px solid #e7dfcf; padding: 10px; border-radius: 12px; }
.service-picker-heading,.service-picker-actions { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.service-picker-body { min-width: 0; }.service-picker-note { font-size: 12px; line-height: 1.4; }
.service-picker-item { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 8px; padding: 8px 0; border-bottom: 1px solid #e7dfcf; }
.service-picker-item > span { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.service-picker-item img { width: 100%; height: 100px; object-fit: contain; background: #f4f0e7; }
.service-picker-item input { width: 20px; height: 20px; margin: 5px 0; }
.service-sent-card { min-width: 0; border: 1px solid #cdbd9e; border-radius: 10px; padding: 8px; }.service-sent-card .service-style-card { font-size: 12px; }
.service-variant-editor { padding: 10px 0; font-size: 12px; }.service-variant-editor [data-variant-line] { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 0; }.service-variant-editor label { display: grid; gap: 4px; }.service-variant-editor select,.service-variant-editor input { min-width: 0; width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; min-height: 42px; }
@media(max-width:720px) { .customer-service-panel { overflow-y: auto; }.service-picker { max-height: 40%; }.service-composer { scroll-margin-bottom: 12px; }.service-shortcuts { min-height: 44px; } }
@media(max-width:720px) { .customer-service-panel { width: 100vw; padding: 12px; border: 0; } .service-launcher { right: 14px; bottom: 82px; } }

.service-received-file { display: grid; gap: 7px; margin-top: 8px; min-width: 0; }
.service-received-file > span { font-size: 13px; overflow-wrap: anywhere; }
.service-received-file [data-service-preview] { display: flex; align-items: center; justify-content: center; padding: 4px; height: 300px; min-height: 72px; background: #f4f0e7; }
.service-received-file img { display: block; width: 100%; height: 100%; max-height: 300px; object-fit: contain; border-radius: 8px; }
.service-received-file .is-expanded { height: auto; }
.service-received-file .is-expanded img { height: auto; max-height: none; }
.service-received-file [data-service-image-note] { display: block; padding: 12px; font-size: 13px; }
