/* RMA Chat 2.0. Scoped workspace; storefront styles never reach message controls. */
.rma-ws {
  --ws-accent: #00877a;
  --ws-ink: #182b2b;
  --ws-muted: #748585;
  --ws-line: #e5ecea;
  --ws-soft: #f2f6f4;
  --ws-paper: #fff;
  --ws-out: #e0f2ea;
  --ws-shadow: 0 24px 80px #163e3529;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ws-ink);
  position: relative;
  z-index: 1100;
}
.rma-ws * {
  box-sizing: border-box;
}
.rma-ws [hidden] {
  display: none !important;
}
.rma-ws .rma-ws-avatar--store{background:#fff}
.rma-ws .rma-ws-avatar--store img{object-fit:contain;padding:3px}
.rma-ws button,
.rma-ws input,
.rma-ws textarea,
.rma-ws select {
  font: inherit;
  letter-spacing: normal;
}
.rma-ws button {
  cursor: pointer;
  border: 0;
  margin: 0;
  box-shadow: none;
  text-transform: none;
  color: inherit;
  background: none;
  transition:
    background 0.16s,
    color 0.16s,
    transform 0.16s;
}
.rma-ws button:disabled {
  cursor: default;
  opacity: 0.45;
}
.rma-ws button:active:not(:disabled) {
  transform: scale(0.96);
}
.rma-ws :focus-visible {
  outline: 2px solid var(--ws-accent);
  outline-offset: 3px;
}
.rma-ws input,
.rma-ws textarea {
  min-width: 0;
  box-shadow: none !important;
  border: 0;
  background: transparent;
  color: var(--ws-ink);
  outline: none;
  width: 100%;
  padding: 0;
}
.rma-ws input:focus,
.rma-ws textarea:focus {
  outline: none;
}
.rma-ws input::placeholder,
.rma-ws textarea::placeholder {
  color: var(--ws-muted);
}
.rma-ws a {
  color: var(--ws-accent);
  text-decoration: none;
}
.rma-ws a:hover {
  text-decoration: underline;
}
.rma-ws svg {
  width: 21px;
  height: 21px;
  display: block;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rma-ws h2,
.rma-ws h3,
.rma-ws p {
  padding: 0;
  margin: 0;
  color: inherit;
  font-family: inherit;
}
.rma-ws-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px !important;
  color: var(--ws-muted) !important;
}
.rma-ws-icon:hover {
  background: var(--ws-soft);
  color: var(--ws-accent) !important;
}
.rma-ws-launcher {
  position: fixed;
  right: 24px;
  bottom: calc(24px + var(--ws-bottom-panel-offset, 0px));
  background: var(--ws-accent) !important;
  color: white !important;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 16px 21px !important;
  border-radius: 22px !important;
  box-shadow: 0 8px 28px #00877a40 !important;
  z-index: 1100;
  font-weight: 650 !important;
}
.rma-ws-launcher svg {
  width: 24px;
  height: 24px;
}
.rma-ws-badge {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 9px;
  background: #df4f65;
  color: white;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.rma-ws-launcher .rma-ws-badge {
  position: absolute;
  right: -4px;
  top: -5px;
  border: 2px solid white;
}
.rma-ws-backdrop {
  position: fixed;
  inset: 0;
  background: #15382d33;
  backdrop-filter: blur(3px);
  z-index: 1110;
  animation: ws-fade 0.2s ease;
}
.rma-ws-window {
  position: fixed;
  inset: auto 20px calc(20px + var(--ws-admin-panel-offset, 0px)) auto;
  width: min(1080px, calc(100vw - 40px));
  height: min(790px, calc(100dvh - 40px - var(--ws-admin-panel-offset, 0px)));
  min-height: 300px;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #fff9;
  border-radius: 26px;
  background: var(--ws-paper);
  box-shadow: var(--ws-shadow);
  z-index: 1120;
  isolation: isolate;
  animation: ws-open 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rma-ws-sidebar {
  background: #f7f9f8;
  border-right: 1px solid var(--ws-line);
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.rma-ws-sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 22px 19px;
}
.rma-ws-eyebrow {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: var(--ws-accent);
}
.rma-ws h2 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.8px;
}
.rma-ws-search {
  margin: 0 16px 14px;
  padding: 11px 12px;
  display: flex;
  gap: 9px;
  align-items: center;
  background: #eaf0ed;
  border-radius: 13px;
  color: var(--ws-muted);
}
.rma-ws-search input {
  font-size: 13px;
  height: auto;
}
.rma-ws-search svg {
  width: 18px;
  height: 18px;
}
.rma-ws-role {
  display: flex;
  margin: 0 16px 14px;
  background: #eaf0ed;
  padding: 3px;
  border-radius: 11px;
  gap: 3px;
}
.rma-ws-role button {
  flex: 1;
  border-radius: 8px;
  padding: 7px 5px;
  font-size: 12px;
  color: var(--ws-muted);
}
.rma-ws-role button[aria-pressed="true"] {
  background: white;
  color: var(--ws-accent);
  font-weight: 650;
}
.rma-ws-community {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 13px 17px !important;
  margin: 0 10px 12px !important;
  border-radius: 16px !important;
}
.rma-ws-community:hover,
.rma-ws-community.is-active {
  background: #e3f0eb;
}
.rma-ws-community > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.rma-ws-community strong {
  font-size: 14px;
  display: block;
  font-weight: 650;
}
.rma-ws-community small {
  display: block;
  color: var(--ws-muted);
  font-size: 11px;
  margin-top: 3px;
}
.rma-ws-community > span:last-child {
  color: #78a298;
}
.rma-ws-community-avatar {
  width: 43px;
  height: 43px;
  background: var(--ws-accent);
  color: white;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.rma-ws-list-label {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 14px 5px;
  color: var(--ws-muted);
  font-size: 12px;
  font-weight: 600;
}
.rma-ws-list-label > span {
  flex: 1;
  padding-left: 6px;
}
.rma-ws-list-label .rma-ws-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
}
.rma-ws-list-label svg {
  width: 17px;
  height: 17px;
}
.rma-ws-threads {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 10px 12px;
  scrollbar-width: thin;
}
.rma-ws-thread {
  width: 100%;
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 12px 10px !important;
  text-align: left;
  border-radius: 14px !important;
  margin-bottom: 3px !important;
  position: relative;
}
.rma-ws-thread:hover {
  background: #edf2ef;
}
.rma-ws-thread.is-active {
  background: #e2eee8;
}
.rma-ws-thread-copy {
  min-width: 0;
  flex: 1;
}
.rma-ws-thread-top {
  display: flex;
  gap: 5px;
  align-items: center;
}
.rma-ws-thread strong {
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  flex: 1;
  font-weight: 650;
}
.rma-ws-thread time {
  font-size: 10px;
  color: var(--ws-muted);
  font-variant-numeric: tabular-nums;
}
.rma-ws-thread p {
  font-size: 12px;
  color: var(--ws-muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 4px;
}
.rma-ws-avatar {
  width: 41px;
  height: 41px;
  min-width: 41px;
  border-radius: 14px;
  background: #e8f0ec;
  display: grid;
  place-items: center;
  color: var(--ws-accent);
  font-weight: 650;
  font-size: 16px;
  overflow: hidden;
}
.rma-ws-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  grid-area: 1/1;
}
.rma-ws-sidebar-footer {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 15px 22px;
  border-top: 1px solid var(--ws-line);
  color: var(--ws-muted);
  font-size: 11px;
}
.rma-ws-sidebar-footer small {
  font-size: 10px;
  color: #96a49f;
}
.rma-ws-sidebar-footer svg {
  width: 18px;
  height: 18px;
  color: #8fa99d;
}
.rma-ws-conversation {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--ws-paper);
  overflow: hidden;
}
.rma-ws-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--ws-line);
  background: #ffffffef;
  z-index: 2;
  min-height: 76px;
  flex-shrink: 0;
}
.rma-ws-heading {
  min-width: 0;
  flex: 1;
}
.rma-ws h3 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.25px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rma-ws-heading > span,
.rma-ws-heading > a {
  display: block;
  font-size: 11px;
  margin-top: 3px;
  color: var(--ws-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rma-ws-heading > a {
  color: var(--ws-accent);
}
.rma-ws-message-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--ws-line);
  background: white;
}
.rma-ws-message-search input {
  font-size: 13px;
}
.rma-ws-message-search > span {
  color: var(--ws-muted);
}
.rma-ws-status {
  font-size: 12px;
  padding: 10px 18px;
  background: #fff2de;
  color: #835f2e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rma-ws-status button {
  color: inherit;
  text-decoration: underline;
  flex-shrink: 0;
}
.rma-ws-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 26px 25px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  background-color: #f5f8f6;
  background-image: radial-gradient(#00877a0c 0.8px, transparent 0.8px);
  background-size: 18px 18px;
}
.rma-ws-day {
  display: block;
  text-align: center;
  margin: 7px auto 20px;
  width: fit-content;
  border-radius: 9px;
  background: #e9efebc9;
  color: #72877d;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
}
.rma-ws-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 14px;
  position: relative;
  scroll-margin: 35px;
}
.rma-ws-message.is-me {
  align-items: flex-end;
}
.rma-ws-author {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px 5px;
  font-size: 11px;
  color: #668277;
}
.rma-ws-author .rma-ws-avatar {
  width: 19px;
  height: 19px;
  min-width: 19px;
  border-radius: 7px;
  font-size: 9px;
}
.rma-ws-message.is-me .rma-ws-author {
  display: none;
}
.rma-ws-bubble-wrap {
  max-width: 84%;
  position: relative;
  min-width: 95px;
}
.rma-ws-bubble {
  padding: 10px 13px 7px;
  background: white;
  border-radius: 17px 17px 17px 5px;
  box-shadow: 0 1px 2px #1a3b3010;
  overflow-wrap: anywhere;
  white-space: normal;
}
.is-me .rma-ws-bubble {
  background: var(--ws-out);
  border-radius: 17px 17px 5px 17px;
}
.rma-ws-message-text {
  line-height: 1.55;
  font-size: 14px;
  white-space: pre-wrap;
}
.rma-ws-message-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: #8a9a92;
  font-size: 9px;
  line-height: 1;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}
.rma-ws-message-meta svg {
  width: 13px;
  height: 13px;
  color: #2a9b80;
}
.rma-ws-message-tools {
  position: absolute;
  right: -34px;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.is-me .rma-ws-message-tools {
  right: auto;
  left: -34px;
}
.rma-ws-message-tools .rma-ws-icon {
  width: 29px;
  height: 29px;
  min-width: 29px;
  border-radius: 50% !important;
}
.rma-ws-message:hover .rma-ws-message-tools,
.rma-ws-message:focus-within .rma-ws-message-tools {
  opacity: 1;
}
.rma-ws-quote {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 9px !important;
  margin-bottom: 7px !important;
  background: #00877a09 !important;
  border-left: 2px solid var(--ws-accent) !important;
  border-radius: 6px !important;
  color: var(--ws-muted) !important;
  font-size: 11px;
}
.rma-ws-quote strong {
  display: block;
  color: var(--ws-accent);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rma-ws-quote span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.rma-ws-reactions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
  max-width: 84%;
}
.rma-ws-reaction {
  font-size: 11px !important;
  background: #e6eeea !important;
  padding: 3px 7px !important;
  border-radius: 9px !important;
  border: 1px solid transparent !important;
  display: flex;
  align-items: center;
  gap: 4px;
}
.rma-ws-reaction.is-mine {
  background: #d7efe5 !important;
  border-color: #90ccb9 !important;
  color: var(--ws-accent) !important;
}
.rma-ws-sticker-message {
  display: block;
  max-width: 190px;
  max-height: 190px;
  object-fit: contain;
  margin: 0 auto;
}
.rma-ws-bubble.has-sticker:has(.rma-ws-message-text:empty) {
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.rma-ws-product-card {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid #bbd9cc;
  border-radius: 12px;
  background: #ffffff80;
  padding: 9px;
  margin-bottom: 7px;
  max-width: 300px;
}
.rma-ws-product-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
}
.rma-ws-product-card div {
  min-width: 0;
}
.rma-ws-product-card strong {
  font-size: 11px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rma-ws-product-card small {
  font-size: 12px;
  font-weight: 650;
  display: block;
  margin-top: 4px;
}
.rma-ws-context {
  padding: 9px 18px;
  background: #f7faf8;
  border-top: 1px solid var(--ws-line);
  display: flex;
  gap: 9px;
  align-items: center;
  flex-shrink: 0;
}
.rma-ws-context > div {
  min-width: 0;
  flex: 1;
  border-left: 2px solid var(--ws-accent);
  padding-left: 9px;
}
.rma-ws-context strong {
  font-size: 11px;
  color: var(--ws-accent);
  display: block;
}
.rma-ws-context p {
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.rma-ws-sticker-draft {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 18px;
  background: white;
  border-top: 1px solid var(--ws-line);
  flex-shrink: 0;
}
.rma-ws-sticker-draft img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.rma-ws-sticker-draft span {
  flex: 1;
  font-size: 12px;
}
.rma-ws-composer {
  margin: 0;
  padding: 9px 16px 11px;
  background: white;
  flex-shrink: 0;
  border-top: 1px solid var(--ws-line);
}
.rma-ws-identity {
  min-height: 18px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ws-muted);
  font-size: 10px;
  padding: 0 6px 6px;
}
.rma-ws-identity strong {
  font-size: 10px;
  font-weight: 600;
  color: #607b70;
}
.rma-ws-input-row {
  display: flex;
  gap: 6px;
  align-items: flex-end;
}
.rma-ws-input-row > .rma-ws-icon {
  margin-bottom: 4px;
  width: 34px;
  min-width: 34px;
}
.rma-ws-input-shell {
  display: flex;
  align-items: flex-end;
  flex: 1;
  background: var(--ws-soft);
  border: 1px solid transparent;
  border-radius: 18px;
  min-width: 0;
  padding: 4px 4px 4px 14px;
  transition: border-color 0.15s;
}
.rma-ws-input-shell:focus-within {
  border-color: #9bc9b8;
}
.rma-ws-input {
  resize: none;
  padding: 9px 0 8px !important;
  height: 38px;
  max-height: 125px;
  line-height: 1.5 !important;
  scrollbar-width: thin;
  font-size: 14px !important;
}
.rma-ws-input-shell .rma-ws-icon {
  width: 34px;
  min-width: 34px;
  height: 37px;
}
.rma-ws-send {
  width: 46px;
  height: 46px;
  min-width: 46px;
  background: var(--ws-accent) !important;
  color: white !important;
  display: grid;
  place-items: center;
  border-radius: 16px !important;
}
.rma-ws-send:disabled {
  background: #dbe6df !important;
  color: #96aba0 !important;
  opacity: 1;
}
.rma-ws-send svg {
  width: 22px;
  height: 22px;
}
.rma-ws-send.is-loading svg {
  animation: ws-spin 1s linear infinite;
}
.rma-ws-composer-note {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding-left: 46px;
  font-size: 9px;
  color: #98a79f;
  min-height: 12px;
}
.rma-ws-guest {
  padding: 0 6px 8px;
}
.rma-ws-guest input {
  font-size: 12px;
  background: var(--ws-soft);
  padding: 9px 12px;
  border-radius: 10px;
}
.rma-ws-consent {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  font-size: 10px;
  color: var(--ws-muted);
  margin: 0 6px 8px;
}
.rma-ws-consent input {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  accent-color: var(--ws-accent);
  margin: 0;
}
.rma-ws-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 9px;
  padding: 40px 20px;
  color: var(--ws-muted);
  height: 100%;
  min-height: 150px;
}
.rma-ws-empty svg {
  width: 38px;
  height: 38px;
  stroke-width: 1.3;
  color: #85b6a5;
  margin-bottom: 5px;
}
.rma-ws-empty strong {
  font-size: 15px;
  color: #41695c;
  font-weight: 600;
}
.rma-ws-empty p {
  font-size: 12px;
  max-width: 260px;
}
.rma-ws-threads .rma-ws-empty {
  height: auto;
  min-height: 180px;
  padding: 28px 12px;
}
.rma-ws-threads .rma-ws-empty strong {
  font-size: 13px;
}
.rma-ws-skeleton {
  height: 58px;
  margin: 12px;
  border-radius: 12px;
  background: linear-gradient(100deg, #e8efeb 30%, #f8faf8 50%, #e8efeb 70%);
  background-size: 200% 100%;
  animation: ws-shimmer 1.3s ease infinite;
}
.rma-ws-new {
  position: absolute;
  bottom: 135px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  align-items: center;
  border: 1px solid #d5e3db !important;
  border-radius: 18px !important;
  padding: 8px 12px !important;
  background: white !important;
  color: var(--ws-accent) !important;
  box-shadow: 0 3px 12px #1c433b15 !important;
  font-size: 11px !important;
  z-index: 3;
  white-space: nowrap;
}
.rma-ws-new svg {
  width: 15px;
  height: 15px;
}
.rma-ws-menu {
  position: absolute;
  width: 220px;
  max-width: calc(100% - 24px);
  padding: 6px;
  background: #ffffffed;
  backdrop-filter: blur(16px);
  border: 1px solid #e3ece6;
  border-radius: 17px;
  box-shadow: 0 12px 50px #153e352b;
  z-index: 8;
  animation: ws-fade 0.14s ease;
}
.rma-ws-menu > button {
  width: 100%;
  padding: 10px !important;
  border-radius: 10px !important;
  display: flex;
  gap: 9px;
  align-items: center;
  text-align: left;
  font-size: 12px;
}
.rma-ws-menu > button:hover {
  background: var(--ws-soft);
}
.rma-ws-menu .is-danger {
  color: #b04a58;
}
.rma-ws-menu-reactions {
  display: flex;
  justify-content: space-between;
  padding: 5px 2px 9px;
  border-bottom: 1px solid var(--ws-line);
  margin-bottom: 4px;
}
.rma-ws-menu-reactions button {
  font-size: 20px;
  width: 32px;
  height: 34px;
  border-radius: 9px;
}
.rma-ws-menu-reactions button:hover {
  background: var(--ws-soft);
  transform: translateY(-3px);
}
.rma-ws-expressions,
.rma-ws-products {
  height: 340px;
  max-height: 47%;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  background: white;
  border-top: 1px solid var(--ws-line);
  flex-shrink: 0;
  animation: ws-rise 0.2s ease;
}
.rma-ws-picker-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px 5px;
}
.rma-ws-picker-head input {
  border-radius: 11px;
  background: var(--ws-soft);
  padding: 9px 11px;
  font-size: 12px;
}
.rma-ws-picker-head .rma-ws-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
}
.rma-ws-picker-tabs {
  display: flex;
  gap: 5px;
  padding: 0 12px 6px;
  align-items: center;
}
.rma-ws-picker-tabs button {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 9px;
}
.rma-ws-picker-tabs button.is-active {
  background: #dff0e7;
  color: var(--ws-accent);
  font-weight: 650;
}
.rma-ws-picker-rail {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
  padding: 0 10px 5px;
}
.rma-ws-picker-rail button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  min-width: 35px;
  border-radius: 10px;
  font-size: 20px;
  position: relative;
}
.rma-ws-picker-rail button.is-active {
  background: #dff0e7;
}
.rma-ws-picker-rail img {
  width: 29px;
  height: 29px;
  object-fit: contain;
}
.rma-ws-picker-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 12px 10px;
  scrollbar-width: thin;
}
.rma-ws-emoji-section h4 {
  font-size: 11px;
  color: var(--ws-muted);
  margin: 8px 1px;
  font-weight: 500;
}
.rma-ws-emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(33px, 1fr));
  gap: 1px;
}
.rma-ws-emoji-grid button {
  height: 35px;
  border-radius: 8px;
  font-size: 24px;
  display: grid;
  place-items: center;
}
.rma-ws-emoji-grid button:hover {
  background: var(--ws-soft);
}
.rma-ws-pack-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0 9px;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.rma-ws-pack-head > div {
  flex: 1;
  min-width: 0;
}
.rma-ws-pack-head strong {
  font-size: 12px;
  display: block;
}
.rma-ws-pack-head small {
  display: block;
  font-size: 10px;
  color: var(--ws-muted);
  margin-top: 2px;
}
.rma-ws-pack-head button {
  font-size: 11px;
  color: var(--ws-accent);
  border-radius: 10px;
  background: #e5f2eb;
  padding: 7px 11px;
}
.rma-ws-pack-head progress {
  width: 65px;
  accent-color: var(--ws-accent);
}
.rma-ws-sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 5px;
}
.rma-ws-sticker-grid button {
  height: 86px;
  position: relative;
  border-radius: 12px;
}
.rma-ws-sticker-grid button:hover {
  background: var(--ws-soft);
}
.rma-ws-sticker-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.rma-ws-sticker-grid .is-favorite:after {
  content: "★";
  font-size: 12px;
  position: absolute;
  bottom: 3px;
  right: 5px;
  color: #c59b35;
}
.rma-ws-product-results {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 5px 14px;
}
.rma-ws-product-result {
  width: 100%;
  text-align: left;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 9px !important;
  border-radius: 12px !important;
}
.rma-ws-product-result:hover {
  background: var(--ws-soft);
}
.rma-ws-product-result img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.rma-ws-product-result > div {
  flex: 1;
  min-width: 0;
}
.rma-ws-product-result strong {
  font-size: 12px;
  display: block;
  font-weight: 500;
}
.rma-ws-product-result small {
  font-size: 12px;
  color: var(--ws-accent);
  display: block;
  margin-top: 2px;
}
.rma-ws-history {
  display: block;
  margin: 0 auto 16px !important;
  color: var(--ws-accent) !important;
  font-size: 11px !important;
  padding: 6px 13px !important;
  background: #e6eee8 !important;
  border-radius: 11px !important;
}
.rma-ws-toast {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 104px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: #254c40;
  color: white;
  font-size: 12px;
  border-radius: 13px;
  z-index: 9;
  box-shadow: 0 8px 30px #143b3525;
}
.rma-ws-toast > span {
  flex: 1;
}
.rma-ws-toast button {
  font-size: 12px;
  color: #9be0c6;
  flex-shrink: 0;
}
.rma-ws-modal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #14332e60;
  backdrop-filter: blur(3px);
  padding: 20px;
  z-index: 10;
}
.rma-ws-dialog {
  width: min(390px, 100%);
  max-height: 90%;
  overflow: auto;
  background: white;
  border-radius: 23px;
  padding: 20px;
  box-shadow: var(--ws-shadow);
  animation: ws-open 0.2s ease;
}
.rma-ws-dialog h3 {
  font-size: 18px;
  white-space: normal;
}
.rma-ws-dialog p {
  font-size: 13px;
  color: var(--ws-muted);
  margin: 10px 0 16px;
}
.rma-ws-dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}
.rma-ws-dialog-actions button {
  padding: 10px 14px !important;
  border-radius: 12px !important;
  font-size: 12px;
}
.rma-ws-dialog-actions .is-primary {
  background: var(--ws-accent);
  color: white;
}
.rma-ws-dialog-actions .is-danger {
  background: #b54e5b;
  color: white;
}
.rma-ws-dialog select,
.rma-ws-dialog textarea,
.rma-ws-dialog input {
  background: var(--ws-soft);
  padding: 10px;
  border-radius: 10px;
  margin-top: 8px;
  width: 100%;
  height: auto;
  border: 0;
}
.rma-ws-dialog textarea {
  resize: vertical;
  min-height: 70px;
}
.rma-ws-forward-list {
  max-height: 280px;
  overflow: auto;
  margin-top: 12px;
}
.rma-ws-forward-list button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px !important;
  border-radius: 11px !important;
}
.rma-ws-forward-list button:hover {
  background: var(--ws-soft);
}
.rma-ws-modal .rma-ws-sticker-preview {
  width: 220px;
  height: 220px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.rma-ws-skin-tones {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}
.rma-ws-skin-tones button {
  font-size: 29px;
  padding: 5px;
  border-radius: 9px;
}
.rma-ws-skin-tones button:hover {
  background: var(--ws-soft);
}
.rma-ws-highlight .rma-ws-bubble {
  animation: ws-highlight 1.6s ease;
}
.rma-ws-mobile-close,
.rma-ws-back {
  display: none;
}
.rma-ws-scroll-lock {
  overflow: hidden !important;
}
.ty-rma-chat-product-action {
  margin: 12px 0 8px;
  width: 100%;
}
.rma-chat-ask-vendor-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  border: 1px solid #00877a55;
  border-radius: 12px;
  color: #00877a;
  background: #edf6f2;
  font-weight: 600;
  font-size: 14px;
}
.rma-chat-ask-vendor-btn:hover {
  background: #e1f0e9;
}
@keyframes ws-open {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes ws-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes ws-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes ws-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ws-shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes ws-highlight {
  0%,
  40% {
    box-shadow: 0 0 0 3px #38b79488;
  }
  100% {
    box-shadow: none;
  }
}
@media (min-width: 1500px) {
  .rma-ws-window {
    right: 32px;
    bottom: calc(32px + var(--ws-admin-panel-offset, 0px));
    height: min(840px, calc(100dvh - 64px - var(--ws-admin-panel-offset, 0px)));
  }
}
@media (max-width: 800px) {
  .rma-ws-window {
    inset: 0 0 var(--ws-admin-panel-offset, 0px);
    width: 100%;
    height: calc(var(--ws-viewport-height, 100dvh) - var(--ws-admin-panel-offset, 0px));
    min-height: 0;
    border-radius: 0;
    border: 0;
    display: block;
  }
  .rma-ws-sidebar {
    position: absolute;
    inset: 0;
    border: 0;
    padding-top: env(safe-area-inset-top);
  }
  .rma-ws-conversation {
    position: absolute;
    inset: 0;
    padding-top: env(safe-area-inset-top);
    transform: translateX(100%);
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    visibility: hidden;
  }
  .rma-ws-window.is-conversation .rma-ws-conversation {
    transform: none;
    visibility: visible;
  }
  .rma-ws-window.is-conversation .rma-ws-sidebar {
    visibility: hidden;
  }
  .rma-ws-header {
    gap: 7px;
    padding: 10px 10px;
    min-height: 65px;
  }
  .rma-ws-header .rma-ws-avatar {
    width: 35px;
    height: 35px;
    min-width: 35px;
    border-radius: 12px;
  }
  .rma-ws-heading h3 {
    font-size: 15px;
  }
  .rma-ws-heading > span,
  .rma-ws-heading > a {
    font-size: 10px;
  }
  .rma-ws-mobile-close,
  .rma-ws-back {
    display: inline-flex;
  }
  .rma-ws-desktop-close {
    display: none;
  }
  .rma-ws-sidebar-head {
    padding-top: 20px;
  }
  .rma-ws-launcher {
    right: 16px;
    bottom: calc(18px + max(env(safe-area-inset-bottom, 0px), var(--ws-bottom-panel-offset, 0px)));
    padding: 14px !important;
    border-radius: 19px !important;
  }
  .rma-ws-launcher-label {
    display: none;
  }
  .rma-ws-messages {
    padding: 16px 14px;
  }
  .rma-ws-bubble-wrap {
    max-width: 85%;
  }
  .rma-ws-message-tools {
    opacity: 1;
    right: -29px;
  }
  .is-me .rma-ws-message-tools {
    left: -29px;
  }
  .rma-ws-message-tools .rma-ws-icon {
    width: 26px;
    min-width: 26px;
  }
  .rma-ws-composer {
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }
  .rma-ws-composer-note {
    display: none;
  }
  .rma-ws-input-row {
    gap: 3px;
  }
  .rma-ws-input-shell {
    border-radius: 19px;
    padding-left: 11px;
  }
  .rma-ws-input-row > .rma-ws-icon {
    width: 31px;
    min-width: 31px;
  }
  .rma-ws-send {
    width: 43px;
    height: 45px;
    min-width: 43px;
    border-radius: 16px !important;
  }
  .rma-ws-expressions,
  .rma-ws-products {
    height: 315px;
    max-height: 43%;
  }
  .rma-ws-context {
    padding: 8px 12px;
  }
  .rma-ws-new {
    bottom: 110px;
  }
  .rma-ws-toast {
    bottom: 95px;
  }
  .rma-ws-identity {
    font-size: 9px;
    padding-bottom: 4px;
  }
  .rma-ws-sticker-message {
    max-width: 160px;
    max-height: 160px;
  }
  .rma-ws-sidebar-footer {
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
  }
  .rma-ws-window.keyboard-open .rma-ws-identity {
    display: none;
  }
  .rma-ws-window.keyboard-open .rma-ws-expressions {
    max-height: 47%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rma-ws *,
  .rma-ws *:before,
  .rma-ws *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width:800px) { .rma-ws input, .rma-ws textarea, .rma-ws select { font-size:16px; } }
