[data-panel="chat"] [hidden] { display: none !important; }
.cx-contact-row{display:flex;align-items:stretch;gap:3px}.cx-contact-row .cx-contact{flex:1;min-width:0}
.cx-contact-options,.cx-message-more{border:0;background:transparent;color:#ffdc7e;cursor:pointer;font-size:24px;min-width:40px;min-height:40px;border-radius:12px;padding:3px}
.cx-contact-options:hover,.cx-message-more:hover{background:#ffdc7e20}.cx-message-more:focus-visible,.cx-contact-options:focus-visible{outline:2px solid #ffdc7e}
.cx-message footer .cx-message-more{margin-left:5px;font-size:22px;line-height:1;flex-shrink:0}.cx-message-text{user-select:text;-webkit-user-select:text}
.cx-forwarded{display:block;color:#acbbc5;font-size:11px;font-style:italic;margin-bottom:6px}
.cx-compose-tools{display:flex;justify-content:flex-end;padding:0 5px 4px}.cx-compose-tools button{border:1px solid #495765;background:#172633;color:#eed18a;border-radius:9px;padding:6px 14px;min-height:36px;font:600 12px system-ui;cursor:pointer}
.cx-action-dialog{position:fixed;inset:0;width:min(440px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:85dvh;margin:auto;overflow-y:auto;box-sizing:border-box;padding:24px;border:1px solid #bba465;border-radius:22px;background:#11202b;color:#f6f2e6;box-shadow:0 25px 100px #0008;font:16px/1.4 system-ui,sans-serif}
.cx-action-dialog::backdrop{background:#020810b8;backdrop-filter:blur(5px)}.cx-action-dialog h2{margin:0 0 12px;font-size:23px;overflow-wrap:anywhere}.cx-action-description{color:#adbfc9;white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;overflow-y:auto}
.cx-action-buttons{display:grid;gap:8px}.cx-action-dialog button{min-height:46px;padding:10px 14px;border:1px solid #455966;border-radius:12px;background:#203744;color:#fff;font:600 15px system-ui;cursor:pointer;overflow-wrap:anywhere}.cx-action-dialog button:hover{background:#304854}.cx-action-dialog button:focus-visible{outline:2px solid #ffdc7e}.cx-action-dialog button:disabled{opacity:.5;cursor:wait}.cx-action-dialog .cx-action-danger{color:#ffb3b3;background:#45252a;border-color:#ad6767}.cx-action-dialog .cx-action-cancel{width:100%;margin-top:12px;background:transparent}.cx-action-status{color:#ffdc7e;font-size:14px}.cx-action-status:empty{display:none}.cx-action-dialog textarea{width:100%;min-height:150px;box-sizing:border-box;border:1px solid #738993;border-radius:10px;background:#08121a;color:white;padding:12px;font:16px system-ui}
[data-panel="chat"].active {
  position: fixed;
  top: var(--cx-viewport-top, 0px);
  left: 0;
  width: 100%;
  height: var(--cx-viewport-height, 100dvh);
  z-index: 30;
  display: block;
  background: #0b1119;
  padding: 0;
  overflow: hidden;
}
body.cx-chat-open { overflow: hidden; }
.cx-chat-open .mobile-floating-avatar, .cx-chat-open .mobile-tabs { visibility: hidden; }
.cx-chat-shell {
  --cx-green: #8be1ba;
  --cx-gold: #ffda80;
  height: 100%;
  max-width: 760px;
  margin: auto;
  display: flex;
  flex-direction: column;
  color: #eff4f2;
  background: #0d141d;
  font: 15px/1.5 Inter, system-ui, sans-serif;
  border-inline: 1px solid #ffffff0b;
}
.cx-chat-shell * { box-sizing: border-box; }
.cx-chat-shell button, .cx-chat-shell input, .cx-chat-shell textarea { font: inherit; }
.cx-chat-shell button { cursor: pointer; }
.cx-chat-shell button:disabled { cursor: wait; opacity: .5; }
.cx-chat-shell button:focus-visible, .cx-chat-shell a:focus-visible, .cx-chat-shell input:focus-visible, .cx-chat-shell textarea:focus-visible { outline: 2px solid var(--cx-gold); outline-offset: 3px; }
.cx-chat-shell svg { width: 24px; height: 24px; flex-shrink: 0; }
.cx-chat-shell h1, .cx-chat-shell h2, .cx-chat-shell p { margin: 0; }
.cx-chat-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(15px + env(safe-area-inset-top)) 16px 16px;
  border-bottom: 1px solid #ffffff0c;
  background: #111c27;
}
.cx-chat-shell .cx-icon-button { display: grid; place-items: center; padding: 0; width: 44px; height: 44px; min-width: 44px; border: 1px solid #ffffff12; border-radius: 50%; background: #ffffff05; color: #cad4db; }
.cx-chat-brand { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #ffda802b; border-radius: 16px; color: var(--cx-gold); background: #ffda800b; }
.cx-chat-heading { min-width: 0; flex: 1; }
.cx-chat-heading small { font-size: 9px; letter-spacing: .22em; color: var(--cx-gold); font-weight: 800; }
.cx-chat-heading h1 { font-size: 22px; font-weight: 650; letter-spacing: -.025em; text-align: left; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-chat-heading p { font-size: 11px; color: #9baebd; text-align: left; }
.cx-contact-view { flex: 1; min-height: 0; overflow: auto; padding: 25px 18px; }
.cx-section-label { font-size: 10px; color: #8b9eac; letter-spacing: .18em; margin-bottom: 14px !important; }
.cx-contacts { display: grid; gap: 5px; }
.cx-chat-shell .cx-contact { width: 100%; display: flex; align-items: center; gap: 13px; border: 0; border-bottom: 1px solid #ffffff0a; border-radius: 0; background: transparent; padding: 15px 0; color: inherit; text-align: left; }
.cx-contact-avatar { width: 49px; height: 49px; flex-shrink: 0; border-radius: 18px; background: #1c3440; color: #c0e0df; display: grid; place-items: center; font-size: 19px; font-weight: 600; }
.cx-contact-copy { display: grid; flex: 1; min-width: 0; gap: 3px; }
.cx-contact-copy strong { font-size: 16px; font-weight: 600; }
.cx-contact-copy small { color: #9aaab8; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; font-size: 12px; font-weight: 400; }
.cx-contact-meta { display: grid; justify-items: end; gap: 7px; font-size: 10px; color: #94a6b5; }
.cx-contact-meta b, [data-chat-badge] { border-radius: 20px; background: #8be1ba; color: #10251b; min-width: 20px; padding: 2px 6px; font-size: 10px; text-align: center; }
[data-chat-badge][hidden] { display: none; }
.cx-chat-empty { max-width: 330px; margin: 60px auto; text-align: center; display: grid; justify-items: center; gap: 18px; }
.cx-chat-empty > svg { width: 52px; height: 52px; color: var(--cx-gold); }
.cx-chat-empty h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.04em; }
.cx-chat-empty p { color: #9caebc; font-size: 14px; }
.cx-chat-shell .cx-primary { border: 1px solid #ffda8040; border-radius: 14px; background: #ffda8015; color: var(--cx-gold); padding: 13px 22px; font-weight: 700; }
.cx-contact-form { display: grid; gap: 12px; margin-bottom: 30px; padding: 22px; border: 1px solid #ffda8022; border-radius: 20px; background: #15212c; }
.cx-contact-form h2 { font-size: 21px; }
.cx-contact-form p { color: #a9bbc6; font-size: 13px; }
.cx-contact-form label { display: grid; gap: 6px; font-size: 12px; color: #bdcbd3; }
.cx-contact-form input { width: 100%; padding: 12px; border: 1px solid #ffffff15; border-radius: 12px; background: #0e1720; color: #eff4f2; font-size: 16px; }
.cx-conversation { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cx-messages { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 16px 18px 22px; background: radial-gradient(ellipse at 90% 15%, #25504912, transparent 70%), #0d141d; }
.cx-date { width: fit-content; margin: 5px auto 22px !important; padding: 4px 12px; border-radius: 20px; background: #ffffff05; color: #8d9dac; font-size: 10px; }
.cx-message { width: fit-content; max-width: min(88%, 410px); margin-bottom: 12px; padding: 12px 14px 8px; border: 1px solid #ffffff08; border-radius: 18px 18px 18px 4px; background: #1b2733; overflow-wrap: anywhere; }
.cx-message.mine { margin-left: auto; border-color: #8be1ba14; border-radius: 18px 18px 4px 18px; background: #203c38; }
.cx-message-text { white-space: pre-wrap; font-size: 14px; font-weight: 400; line-height: 1.6; text-align: left; color: #edf3f0; }
.cx-message footer { display: flex; gap: 7px; justify-content: flex-end; align-items: center; font-size: 9px; color: #b0c1c5; margin-top: 8px; }
.cx-message footer .cx-read { color: #8be1ba; }
.cx-message-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 11px; }
.cx-message-actions button { color: #c5f0dd; background: #8be1ba0d; border: 1px solid #8be1ba38; padding: 9px 11px; border-radius: 10px; min-height: 40px; }
.cx-message-actions [data-reject] { color: #c0c9ce; background: #ffffff05; border-color: #ffffff15; }
.cx-list-accepted { color: #8be1ba; width: 100%; }
.cx-list-rejected { color: #ffc6b3; width: 100%; }
.cx-list-pending { color: #d3d6b2; }
.cx-location-card { display: grid; gap: 4px; color: #e8f4ee; text-decoration: none; min-width: 200px; margin-bottom: 8px; }
.cx-location-art { display: grid; place-items: center; height: 90px; border-radius: 10px; margin-bottom: 7px; background: linear-gradient(32deg, transparent 39%, #a3c4a81b 40%, #a3c4a81b 43%, transparent 44%), linear-gradient(110deg, transparent 39%, #a3c4a816 40%, #a3c4a816 43%, transparent 44%), #2b4843; }
.cx-location-art svg { width: 33px; height: 33px; color: #aff0ce; }
.cx-location-card strong { font-size: 14px; }
.cx-location-card small { color: #b4c8c0; font-size: 11px; }
.cx-location-card > span:last-child { color: #a8e7c9; font-size: 12px; margin-top: 6px; }
.cx-shopping-title { display: flex; gap: 10px; align-items: center; margin: 2px 0 12px; }
.cx-shopping-title > svg { color: #ffda80; }
.cx-shopping-title span { display: grid; }
.cx-shopping-title strong { font-size: 14px; }
.cx-shopping-title small { color: #a5bbb3; font-size: 10px; }
.cx-shopping-items { margin: 0; padding: 0; list-style: none; max-height: 235px; overflow: auto; }
.cx-shopping-items li { display: grid; grid-template-columns: minmax(90px, 1fr) auto; gap: 3px 15px; padding: 9px 0; border-top: 1px solid #ffffff0b; font-size: 12px; }
.cx-shopping-items li strong { font-weight: 500; }
.cx-shopping-items li span { color: #b2c8bd; }
.cx-shopping-items li small { grid-column: 1 / -1; color: #a8bcb6; font-size: 10px; }
.cx-compose-area { flex: 0 0 auto; position: relative; border-top: 1px solid #ffffff08; background: #111c27; padding: 12px 12px 7px; }
.cx-composer { display: flex; align-items: flex-end; gap: 8px; }
.cx-message-label { display: flex; flex: 1; min-width: 0; }
.cx-message-label textarea { display: block; width: 100%; height: 46px; max-height: 110px; resize: vertical; padding: 12px 15px; border: 1px solid #ffffff0b; border-radius: 24px; background: #1c2a36; color: #f0f6f2; font-size: 16px; line-height: 22px; }
.cx-message-label textarea::placeholder { color: #9aabb8; font-size: 14px; }
.cx-chat-shell .cx-send-button { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border: 0; border-radius: 50%; background: #8be1ba; color: #123b29; padding: 0; }
.cx-attach-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.cx-attach-menu button { display: grid; justify-items: center; gap: 7px; border: 1px solid #ffffff10; border-radius: 18px; color: #edf5f0; background: #1b2835; padding: 17px 8px; }
.cx-attach-menu strong { font-size: 13px; }
.cx-attach-menu small { color: #9fb1bf; font-size: 10px; }
.cx-attach-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 16px; }
.cx-attach-icon.location { background: #2c654f; color: #b0f2d0; }
.cx-attach-icon.shopping { background: #605332; color: #ffdf93; }
.cx-attachment-preview { max-height: 240px; overflow: auto; padding: 14px; margin: 0 0 12px; background: #20332e; border: 1px solid #8be1ba29; border-radius: 16px; }
.cx-preview-heading { display: flex; align-items: center; gap: 12px; justify-content: space-between; font-size: 12px; color: #b6e1c7; margin-bottom: 12px; }
.cx-preview-heading button { min-width: 36px; height: 36px; border-radius: 50%; border: 1px solid #ffffff20; background: transparent; color: #dcebe3; font-size: 20px; }
.cx-attachment-preview > small { display: block; margin-top: 8px; color: #adc4b9; font-size: 10px; }
.cx-chat-status { flex-shrink: 0; min-height: calc(18px + env(safe-area-inset-bottom)); padding: 4px 18px calc(8px + env(safe-area-inset-bottom)); text-align: center; color: #d3b983; font-size: 11px; background: #111c27; }
.cx-chat-status:empty { padding-top: 0; }
.cx-chat-shell .cx-older { display: block; margin: 0 auto 18px; border: 1px solid #ffffff10; border-radius: 18px; background: #15222c; color: #b7c7d1; padding: 9px 15px; font-size: 11px; }
.cx-conversation-empty { text-align: center; color: #9aacba; font-size: 13px; padding-top: 30px; }
.cx-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 360px) {
  .cx-chat-header { gap: 8px; padding-inline: 8px; }
  .cx-chat-brand { display: none; }
  .cx-messages { padding-inline: 10px; }
  .cx-message { max-width: 92%; }
}

.cx-attach-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cx-attach-icon.photo { color: #c7a3ff; background: #392950; }
.cx-photo { display:block; width:100%; max-width:360px; max-height:360px; object-fit:contain; border-radius:14px; }
.cx-photo-load { display:block; width:240px; max-width:100%; border-radius:14px; background:#1e303d; color:#e8eff2; }
.cx-attachment-preview .cx-photo { max-height:140px; width:auto; }
@media(max-width:420px) { .cx-attach-menu button { padding:10px 5px; } .cx-attach-menu small { font-size:10px; } }
.cx-sticker{width:min(230px,100%);display:grid;gap:4px}
.cx-sticker-video{display:block;width:100%;height:180px;object-fit:contain;background:#0b131c;border-radius:14px}
.cx-sticker small{color:#a9b9c4;font-size:11px}
.cx-sticker-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.cx-sticker-choice{min-width:0;border:1px solid #ffffff18;border-radius:14px;padding:6px}
.cx-sticker-choice .cx-sticker-video{height:115px}
.cx-sticker-choice button{width:100%;font-size:12px;padding:8px!important}
.cx-action-buttons select{width:100%;min-height:44px;background:#15212c;color:#fff;border:1px solid #61717c;border-radius:10px;padding:8px;font:inherit}
.cx-sticker-pages{display:flex;align-items:center;justify-content:space-between;gap:8px}
.cx-sticker-pages button{font-size:13px}
.cx-sticker-pages button:disabled{opacity:.4}
.cx-message.cx-sticker-message{width:230px;max-width:80%;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.cx-sticker-message .cx-sticker-video,.cx-attachment-preview .cx-sticker-video{background:transparent;border:0;border-radius:0;box-shadow:none}
.cx-sticker-message video::-webkit-media-controls{display:none!important}
.cx-sticker-choice{border:0;padding:0;background:transparent}
.cx-sticker-choice .cx-sticker-video{background:transparent;border:0;border-radius:0;pointer-events:none}
.cx-sticker-choice button{display:grid;gap:8px;justify-items:center;background:transparent;border:0;box-shadow:none}
.cx-sticker-choice button:hover,.cx-sticker-choice button:focus-visible{outline:2px solid #e9c963;outline-offset:1px;border-radius:12px}
.cx-sticker-video::-webkit-media-controls{display:none!important}

/* Personal stickers: one validated image sheet, never a public media URL. */
.cx-custom-sticker{display:block;width:160px;max-width:100%;height:160px;object-fit:contain;border:0;background-color:transparent}
.cx-sticker-sprite{aspect-ratio:1;height:auto;background-repeat:no-repeat;background-size:600% 500%;animation:cxStickerFrames 5s steps(1,end) infinite}
.cx-maker-preview{display:block;width:100%;height:220px;object-fit:contain;background:#0a111b;border-radius:14px}
.cx-sticker-tools{display:grid;gap:8px;margin-bottom:16px}
.cx-action-dialog label{display:grid;gap:8px}.cx-action-dialog input[type=number]{box-sizing:border-box;width:100%;padding:12px;color:inherit;background:#0a111b;border:1px solid #566273;border-radius:10px}
.cx-sticker-choice .cx-custom-sticker{margin:auto;width:100%;max-width:160px}.cx-sticker-choice img.cx-custom-sticker{height:130px}
@media(prefers-reduced-motion:reduce){.cx-sticker-sprite{animation:none}}
@keyframes cxStickerFrames{0%{background-position:0% 0%}3.3333333333333335%{background-position:20% 0%}6.666666666666667%{background-position:40% 0%}10%{background-position:60% 0%}13.333333333333334%{background-position:80% 0%}16.666666666666668%{background-position:100% 0%}20%{background-position:0% 25%}23.333333333333332%{background-position:20% 25%}26.666666666666668%{background-position:40% 25%}30%{background-position:60% 25%}33.333333333333336%{background-position:80% 25%}36.666666666666664%{background-position:100% 25%}40%{background-position:0% 50%}43.333333333333336%{background-position:20% 50%}46.666666666666664%{background-position:40% 50%}50%{background-position:60% 50%}53.333333333333336%{background-position:80% 50%}56.666666666666664%{background-position:100% 50%}60%{background-position:0% 75%}63.333333333333336%{background-position:20% 75%}66.66666666666667%{background-position:40% 75%}70%{background-position:60% 75%}73.33333333333333%{background-position:80% 75%}76.66666666666667%{background-position:100% 75%}80%{background-position:0% 100%}83.33333333333333%{background-position:20% 100%}86.66666666666667%{background-position:40% 100%}90%{background-position:60% 100%}93.33333333333333%{background-position:80% 100%}96.66666666666667%{background-position:100% 100%}100%{background-position:100% 100%}}
