/* PaidVerts live support chat - widget + agent desk */

.pv-schat {
  --schat-green: #1f9d45;
  --schat-green-deep: #0f6b2c;
  --schat-green-soft: #e8f7ee;
  --schat-ink: #102016;
  --schat-muted: #66786c;
  --schat-line: #d9e8de;
  --schat-panel: #f3faf5;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  font-family: inherit;
  pointer-events: none;
}

.pv-schat > * {
  pointer-events: auto;
}

.pv-schat__avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Launcher */
.pv-schat__launcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 6px 18px 6px 6px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, #143f24 0%, #0d2818 55%, #102016 100%);
  color: #fff;
  box-shadow:
    0 14px 34px rgba(12, 40, 22, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, padding 0.2s ease;
}

.pv-schat__launcher:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(12, 40, 22, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.pv-schat__launcher-face {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: #0d2818;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 0 0 2px rgba(44, 195, 90, 0.35);
  flex-shrink: 0;
}

.pv-schat__launcher-face .pv-schat__avatar-img {
  border-radius: 50%;
  object-fit: cover;
  transform: scale(1.08);
}

.pv-schat__launcher-copy {
  position: relative;
  z-index: 1;
  text-align: left;
  padding-right: 4px;
}

.pv-schat__launcher-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.pv-schat__launcher-copy em {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
}

.pv-schat__launcher-close {
  display: none;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
}

.pv-schat__pulse {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

.pv-schat.has-agents .pv-schat__pulse {
  opacity: 1;
  box-shadow: 0 0 0 0 rgba(44, 195, 90, 0.55);
  animation: pv-schat-pulse 2.2s ease-out infinite;
}

@keyframes pv-schat-pulse {
  0% { box-shadow: 0 0 0 0 rgba(44, 195, 90, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(44, 195, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(44, 195, 90, 0); }
}

.pv-schat.is-open .pv-schat__launcher {
  padding: 6px;
  background: linear-gradient(145deg, var(--schat-green), var(--schat-green-deep));
}

.pv-schat.is-open .pv-schat__launcher-face,
.pv-schat.is-open .pv-schat__launcher-copy,
.pv-schat.is-open .pv-schat__pulse {
  display: none;
}

.pv-schat.is-open .pv-schat__launcher-close {
  display: grid;
}

/* Panel */
.pv-schat__panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  display: flex;
  flex-direction: column;
  width: min(392px, calc(100vw - 24px));
  height: min(580px, calc(100vh - 120px));
  border-radius: 24px;
  background: #f7fbf8;
  box-shadow:
    0 30px 64px rgba(12, 40, 22, 0.3),
    0 0 0 1px rgba(16, 32, 22, 0.07);
  overflow: hidden;
  transform-origin: bottom right;
}

.pv-schat__panel.is-anim {
  animation: pv-schat-pop 0.28s cubic-bezier(0.2, 0.9, 0.2, 1);
}

@keyframes pv-schat-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pv-schat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  padding: 8px 10px 8px 12px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.16), transparent 50%),
    linear-gradient(145deg, #0d4f24 0%, #147a34 48%, #1f9d45 100%);
  color: #fff;
}

.pv-schat__head-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pv-schat__head-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(13, 40, 24, 0.35);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.pv-schat__head-avatar .pv-schat__avatar-img {
  transform: scale(1.08);
}

.pv-schat__head-copy {
  min-width: 0;
}

.pv-schat__head-copy strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-schat__head-status {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-schat__head-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.pv-schat__head-close:hover {
  background: rgba(255, 255, 255, 0.26);
}

.pv-schat__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pv-schat__home {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.pv-schat__intro {
  margin-bottom: 14px;
  padding: 14px 14px 13px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(31, 157, 69, 0.1);
  box-shadow: 0 10px 24px rgba(16, 32, 22, 0.04);
}

.pv-schat__intro h3 {
  margin: 0 0 6px;
  color: var(--schat-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.pv-schat__intro p {
  margin: 0;
  color: var(--schat-muted);
  font-size: 13px;
  line-height: 1.45;
}

.pv-schat__options {
  display: grid;
  gap: 10px;
}

.pv-schat__option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(31, 157, 69, 0.12);
  border-radius: 18px;
  background: #fff;
  color: var(--schat-ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16, 32, 22, 0.035);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.pv-schat__option:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 157, 69, 0.42);
  box-shadow: 0 14px 28px rgba(16, 32, 22, 0.08);
}

.pv-schat__option-media {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  flex-shrink: 0;
  font-size: 22px;
  color: var(--schat-green-deep);
}

.pv-schat__option.is-bot .pv-schat__option-media,
.pv-schat__option.is-agent .pv-schat__option-media {
  background: transparent;
}

.pv-schat__option-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}

.pv-schat__option-body strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.pv-schat__option-body span {
  display: block;
  margin-top: 3px;
  color: var(--schat-muted);
  font-size: 12px;
  line-height: 1.35;
}

.pv-schat__option-body em {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--schat-green-soft);
  color: var(--schat-green-deep);
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.pv-schat__option.is-agent .pv-schat__option-body em {
  background: #edf2ef;
  color: #5d6f64;
}

.pv-schat__option.is-agent .pv-schat__option-body em.pv-schat__offline-line {
  display: block !important;
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  padding: 0;
  border-radius: 0;
  background: none;
  color: #1c2b22;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  white-space: normal;
}

.pv-schat.has-agents .pv-schat__option.is-agent .pv-schat__option-body em {
  background: var(--schat-green-soft);
  color: var(--schat-green-deep);
}

.pv-schat__option-body em.pv-schat__faces,
.pv-schat.has-agents .pv-schat__option.is-agent .pv-schat__option-body em.pv-schat__faces {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 4px 2px 1px;
  background: transparent;
  color: inherit;
  letter-spacing: 0;
}

.pv-schat__face {
  position: relative;
  z-index: var(--face-z, 1);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: -8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #d7efe0;
  color: var(--schat-green-deep);
  font-size: 9px;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(31, 157, 69, 0.18);
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.16s ease;
}

.pv-schat__face:first-child {
  margin-left: 0;
}

.pv-schat__face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.pv-schat__face:hover {
  z-index: 30;
  transform: translateY(-5px) scale(1.28);
}

.pv-schat__option-go {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f5f2;
  color: #7d9084;
  font-size: 13px;
}

.pv-schat__option:hover .pv-schat__option-go {
  background: var(--schat-green-soft);
  color: var(--schat-green-deep);
}

.pv-schat__offline {
  margin: 0;
  padding: 8px 16px 0;
  color: #3d4d44;
  font-size: 12.5px;
  line-height: 1.45;
}

.pv-schat__footnote {
  margin: 14px 2px 0;
  color: #8a9a90;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.pv-schat__thread {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f4faf6 100%);
}

.pv-schat__msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.pv-schat__msg.is-user {
  justify-content: flex-end;
}

.pv-schat__msg.is-system {
  justify-content: center;
}

.pv-schat__msg-face {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  color: var(--schat-green-deep);
  font-size: 13px;
  box-shadow: 0 0 0 1px var(--schat-line);
  flex-shrink: 0;
}

.pv-schat__msg-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-schat__msg-bubble {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fff;
  color: var(--schat-ink);
  box-shadow: 0 4px 14px rgba(16, 32, 22, 0.05);
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.pv-schat__msg-bubble strong {
  font-weight: 800;
}

.pv-schat__msg-time {
  flex-shrink: 0;
  margin-bottom: 2px;
  color: #b7c0ba;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}

.pv-schat__msg.is-user .pv-schat__msg-bubble {
  background: linear-gradient(145deg, #2cc35a, #168e3c);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.pv-schat__msg.is-bot .pv-schat__msg-bubble,
.pv-schat__msg.is-agent .pv-schat__msg-bubble {
  border-bottom-left-radius: 6px;
}

.pv-schat__msg.is-system .pv-schat__msg-bubble {
  max-width: 94%;
  background: transparent;
  box-shadow: none;
  color: var(--schat-muted);
  font-size: 12px;
  text-align: center;
  padding: 4px 8px;
}

.pv-schat__queue {
  display: none;
  margin: 0;
  padding: 8px 16px 0;
  color: #1c2b22;
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
}

.pv-schat__queue.is-on {
  display: block;
}

.pv-schat__tools {
  display: flex;
  gap: 8px;
  padding: 8px 12px 0;
  background: transparent;
}

.pv-schat__tools button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid var(--schat-line);
  border-radius: 999px;
  background: #fff;
  color: var(--schat-green-deep);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pv-schat__tools button:hover {
  border-color: rgba(31, 157, 69, 0.45);
  background: var(--schat-green-soft);
}

.pv-schat__tools button.is-muted {
  color: var(--schat-muted);
}

.pv-schat__msg.is-typing,
.pv-desk__msg.is-typing {
  animation: pv-typing-in 0.22s ease-out;
}

@keyframes pv-typing-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.pv-schat__typing-bubble,
.pv-desk__typing-bubble {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 34px;
  padding: 10px 14px !important;
}

.pv-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 14px;
}

.pv-typing-dots i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7b8980;
  animation: pv-typing-bounce 1.05s infinite ease-in-out;
}

.pv-desk__msg.is-typing .pv-typing-dots i {
  background: #5d6f64;
}

.pv-typing-dots i:nth-child(1) { animation-delay: 0s; }
.pv-typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.pv-typing-dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes pv-typing-bounce {
  0%, 60%, 100% {
    opacity: 0.35;
    transform: translateY(0) scale(0.92);
  }
  30% {
    opacity: 1;
    transform: translateY(-4px) scale(1.08);
  }
}

.pv-schat__composer {
  display: flex;
  gap: 8px;
  padding: 12px 12px 8px;
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid var(--schat-line);
  backdrop-filter: blur(8px);
}

.pv-schat__powered {
  margin: 0;
  padding: 0 12px 10px;
  background: #fff;
  color: #8a9a90;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.2;
}

.pv-schat__powered--launcher {
  margin-top: 6px;
  padding: 0 4px;
  background: transparent;
  color: #66786c;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

.pv-schat.is-open .pv-schat__powered--launcher {
  display: none;
}

.pv-schat__composer input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--schat-line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: var(--schat-ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pv-schat__composer input:focus {
  border-color: rgba(31, 157, 69, 0.55);
  box-shadow: 0 0 0 3px rgba(31, 157, 69, 0.12);
}

.pv-schat__composer button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #2cc35a, #168e3c);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(22, 142, 60, 0.28);
  transition: transform 0.15s ease;
}

.pv-schat__composer button:hover {
  transform: scale(1.04);
}

/* Agent desk */
.pv-desk {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pv-desk__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.14), transparent 48%),
    linear-gradient(145deg, #0d4f24 0%, #147a34 50%, #1f9d45 100%);
  color: #fff;
  box-shadow: 0 16px 36px rgba(12, 40, 22, 0.18);
}

.pv-desk__top-copy p {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.82;
}

.pv-desk__top-copy strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
}

.pv-desk__top-copy span {
  display: block;
  margin-top: 6px;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.45;
}

.pv-desk__top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.pv-desk__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.pv-desk__btn.is-solid {
  background: #fff;
  border-color: #fff;
  color: #0f6b2c;
}

.pv-desk__btn.is-danger {
  background: rgba(0, 0, 0, 0.18);
}

.pv-desk__col .pv-desk__btn {
  border-color: #d7e3db;
  background: #fff;
  color: #168e3c;
}

.pv-desk__steps {
  display: none;
}

.pv-desk__grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(220px, 280px) minmax(0, 1fr);
  gap: 14px;
  height: calc(100vh - 300px);
  min-height: 440px;
  overflow: hidden;
}

.pv-desk.is-inbox-closed .pv-desk__grid {
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
}

.pv-desk.is-inbox-closed .pv-desk__col--inbox {
  display: none;
}

.pv-desk__inbox-close {
  width: 32px;
  min-height: 32px;
  padding: 0;
  justify-content: center;
}

.pv-desk__col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(18, 40, 24, 0.06);
  overflow: hidden;
}

.pv-desk__col-head,
.pv-desk__stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid #e7eee9;
}

.pv-desk__col-head p,
.pv-desk__stage-head p {
  margin: 0 0 2px;
  color: #7b8980;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pv-desk__col-head strong,
.pv-desk__stage-head strong {
  display: block;
  color: #121814;
  font-size: 15px;
  font-weight: 800;
}

.pv-desk__online {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.pv-desk__online.is-on {
  background: #fff;
  color: #0f6b2c;
}

.pv-desk__col-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pv-desk__btn.is-add {
  min-height: 30px;
  padding: 0 10px;
  border-color: #21ae4a;
  background: #21ae4a;
  color: #fff;
}

.pv-desk__agents,
.pv-desk__inbox {
  display: grid;
  gap: 8px;
  padding: 10px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  align-content: start;
}

.pv-desk__agent {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 8px 8px 10px;
  border: 1px solid #e3eae5;
  border-radius: 14px;
  background: #fff;
}

.pv-desk__agent.is-on {
  border-color: #21ae4a;
  background: #f7fdf9;
}

.pv-desk__agent-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.pv-desk__agent-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}

.pv-desk__agent-switch {
  display: grid;
  place-items: center;
  width: 46px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.pv-desk__agent-switch em {
  color: #7b8980;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pv-desk__switch {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #c9d4cd;
  box-shadow: inset 0 1px 2px rgba(18, 24, 20, 0.16);
}

.pv-desk__switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(18, 24, 20, 0.22);
  transition: left .16s ease;
}

.pv-desk__agent-switch.is-on {
  border-color: #b7e4c4;
  background: #eaf8ee;
}

.pv-desk__agent-switch.is-on em {
  color: #146f32;
}

.pv-desk__agent-switch.is-on .pv-desk__switch {
  background: #21ae4a;
}

.pv-desk__agent-switch.is-on .pv-desk__switch i {
  left: 20px;
}

.pv-desk__agent-edit {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7b8980;
  cursor: pointer;
}

.pv-desk__agent-edit:hover {
  color: #168e3c;
  background: #eaf8ee;
}

.pv-desk__inbox-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eaf8ee;
  color: #0f6b2c;
  font-size: 11px;
  font-weight: 800;
}

.pv-desk__inbox-filter {
  padding: 8px 14px;
  border-bottom: 1px solid #eef3f0;
  color: #7b8980;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pv-desk__inbox-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  min-height: 180px;
  padding: 18px 12px;
  color: #7b8980;
  text-align: center;
}

.pv-desk__inbox-empty i {
  font-size: 26px;
  color: #21ae4a;
}

.pv-desk__inbox-empty strong {
  color: #121814;
  font-size: 14px;
}

.pv-desk__inbox-empty p {
  margin: 0;
  max-width: 22ch;
  font-size: 12px;
  line-height: 1.4;
}

.pv-desk__bubble {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  width: 100%;
  padding: 12px;
  border: 1px solid #e7eee9;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 32, 22, 0.03);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.pv-desk__bubble:hover {
  border-color: rgba(31, 157, 69, 0.35);
  transform: translateY(-1px);
}

.pv-desk__bubble-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2cc35a, #147a34);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.pv-desk__bubble-body {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.pv-desk__bubble-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.pv-desk__bubble-top time {
  color: #8a9a90;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.pv-desk__bubble-preview {
  display: block;
  color: #66786c;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pv-desk__bubble.has-unread .pv-desk__bubble-preview {
  color: #121814;
  font-weight: 650;
}

.pv-desk__bubble-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.pv-desk__bubble-status {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eaf8ee;
  color: #0f6b2c;
  font-size: 10px;
  font-weight: 800;
}

.pv-desk__bubble-status.is-waiting {
  background: #fff4e5;
  color: #b86e00;
}

.pv-desk__bubble-status.is-open {
  background: #eef2f0;
  color: #5d6f64;
}

.pv-desk__bubble-id {
  color: #9aa8a0;
  font-size: 10px;
  font-weight: 700;
}

.pv-desk__bubble-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-top: 8px;
  padding: 0 6px;
  border-radius: 999px;
  background: #21ae4a;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.pv-desk__agent-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: visible;
  background: #eaf8ee;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #e3eae5;
  flex-shrink: 0;
}

.pv-desk__agent.is-live .pv-desk__agent-avatar {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #21ae4a;
}

.pv-desk__agent.is-wait .pv-desk__agent-avatar {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #e0a33a;
}

.pv-desk__agent-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.pv-desk__agent-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #b7c4bb;
}

.pv-desk__agent.is-live .pv-desk__agent-dot {
  background: #21ae4a;
}

.pv-desk__agent.is-wait .pv-desk__agent-dot {
  background: #e0a33a;
}

.pv-desk__agent-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.pv-desk__agent strong,
.pv-desk__bubble-top strong {
  display: block;
  color: #121814;
  font-size: 14px;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-desk__agent-role,
.pv-desk__agent-hours {
  display: block;
  color: #7b8980;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pv-desk__agent-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.pv-desk__agent-pill {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2f0;
  color: #5d6f64;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.pv-desk__agent.is-live .pv-desk__agent-pill {
  background: #eaf8ee;
  color: #146f32;
}

.pv-desk__agent.is-wait .pv-desk__agent-pill {
  background: #fff6e8;
  color: #9a6408;
}

.pv-desk__agent-unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #21ae4a;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.pv-desk__bubble.is-on {
  border-color: #21ae4a;
  background: #eaf8ee;
}

.pv-desk__bubble.is-on .pv-desk__bubble-avatar {
  box-shadow: 0 0 0 3px rgba(33, 174, 74, 0.2);
}

/* Agent create / edit modal */
.pv-desk__modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 18px;
}

.pv-desk__modal[hidden] {
  display: none !important;
}

.pv-desk__modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 24, 16, 0.48);
  cursor: pointer;
}

.pv-desk__modal-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 60px rgba(12, 40, 22, 0.28);
}

.pv-desk__modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #e7eee9;
}

.pv-desk__modal-head p {
  margin: 0 0 2px;
  color: #7b8980;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pv-desk__modal-head strong {
  display: block;
  color: #121814;
  font-size: 18px;
  font-weight: 800;
}

.pv-desk__modal-x {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #f0f5f2;
  color: #526359;
  cursor: pointer;
}

.pv-desk__modal-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.pv-desk__photo-field {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  background: #f4faf6;
  border: 1px solid #e3eee7;
}

.pv-desk__photo-preview {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(31, 157, 69, 0.18);
  flex-shrink: 0;
}

.pv-desk__photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pv-desk__photo-copy p {
  margin: 8px 0 0;
  color: #7b8980;
  font-size: 12px;
  line-height: 1.4;
}

.pv-desk__file-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #21ae4a;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.pv-desk__field {
  display: grid;
  gap: 6px;
}

.pv-desk__field label {
  color: #526359;
  font-size: 12px;
  font-weight: 750;
}

.pv-desk__field input[type="text"],
.pv-desk__field input[type="time"] {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d7e3db;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
}

.pv-desk__schedule {
  padding: 12px;
  border-radius: 14px;
  background: #f7fbf8;
  border: 1px solid #e3eee7;
}

.pv-desk__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #121814;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.pv-desk__schedule-help {
  margin: 8px 0 0;
  color: #7b8980;
  font-size: 12px;
  line-height: 1.4;
}

.pv-desk__hours {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.pv-desk__modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.pv-desk__modal-actions-spacer {
  flex: 1;
}

.pv-desk__modal-actions .pv-desk__btn {
  border-color: #d7e3db;
  background: #fff;
  color: #526359;
}

.pv-desk__modal-actions .pv-desk__btn.is-solid {
  border-color: #21ae4a;
  background: #21ae4a;
  color: #fff;
}

.pv-desk__modal-actions .pv-desk__btn.is-danger-text {
  border-color: transparent;
  background: transparent;
  color: #c0392b;
}

.pv-desk__modal-actions .pv-desk__btn.is-danger-text:hover {
  background: #fdecea;
}

body.pv-desk-modal-open {
  overflow: hidden;
}

.pv-desk__hint {
  margin: 0;
  padding: 10px 12px 14px;
  color: #7b8980;
  font-size: 12px;
  line-height: 1.4;
}

.pv-desk__empty-inline {
  margin: 0;
  padding: 8px 4px;
  color: #7b8980;
  font-size: 12px;
  line-height: 1.4;
}

.pv-desk__unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #121814;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.pv-desk__col--stage {
  min-height: 0;
}

body.pm-theme .pv-admin-app:has(.pv-desk) {
  min-height: 0;
}

body.pm-theme .pv-admin-app:has(.pv-desk) + .pv-footer {
  clear: both;
  width: min(var(--container-max), calc(100% - 24px));
  margin: 16px auto 20px;
}

.pv-desk__stage-head {
  background: linear-gradient(180deg, #f7fbf8 0%, #ffffff 100%);
}

.pv-desk__stage-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pv-desk__stage-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2cc35a, #147a34);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(33, 174, 74, 0.14);
}

.pv-desk__stage-copy {
  min-width: 0;
}

.pv-desk__stage-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-desk__stage-copy p {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 650;
}

.pv-desk__stage-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pv-desk__replies {
  position: relative;
}

.pv-desk__replies-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 8;
  width: min(360px, 78vw);
  max-height: min(460px, 64vh);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #e3eae5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(18, 40, 24, 0.14);
}

.pv-desk__replies-section + .pv-desk__replies-section {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #eef3f0;
}

.pv-desk__replies-section p {
  margin: 0;
  padding: 4px 8px 2px;
  color: #7b8980;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pv-desk__replies-section button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #121814;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.pv-desk__replies-section button strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.pv-desk__replies-section button span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #7b8980;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-desk__replies-section button:hover {
  background: #eaf8ee;
}

.pv-desk__replies-section button:hover strong {
  color: #0f6b2c;
}

.pv-desk__reply-tip {
  position: fixed;
  z-index: 1400;
  width: min(320px, calc(100vw - 24px));
  padding: 10px 12px;
  border-radius: 12px;
  background: #122018;
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  box-shadow: 0 12px 28px rgba(18, 24, 20, 0.28);
  pointer-events: none;
}

.pv-desk__stage-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eaf8ee;
  color: #0f6b2c;
  font-size: 11px;
  font-weight: 800;
}

.pv-desk__stage-chip.is-waiting {
  background: #fff4e5;
  color: #b86e00;
}

.pv-desk__stage-chip.is-idle,
.pv-desk__stage-chip.is-open {
  background: #eef2f0;
  color: #5d6f64;
}

.pv-desk__btn.is-end {
  border-color: #f0c2bc;
  background: #fff7f6;
  color: #c0392b;
}

.pv-desk__thread {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(33, 174, 74, 0.06), transparent 45%),
    linear-gradient(180deg, #fbfdfc 0%, #f3faf6 100%);
}

.pv-desk__empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 320px;
  padding: 24px 16px;
  color: #7b8980;
  text-align: center;
}

.pv-desk__empty-ico {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #eaf8ee;
  color: #21ae4a;
  font-size: 26px;
  margin-bottom: 4px;
}

.pv-desk__empty strong {
  color: #121814;
  font-size: 16px;
  font-weight: 800;
}

.pv-desk__empty p {
  margin: 0;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.45;
}

.pv-desk__msg {
  display: flex;
  margin-bottom: 12px;
}

.pv-desk__msg.is-agent {
  justify-content: flex-end;
}

.pv-desk__msg.is-user {
  justify-content: flex-start;
}

.pv-desk__msg.is-system,
.pv-desk__msg.is-bot {
  justify-content: center;
}

.pv-desk__msg-card {
  max-width: min(78%, 420px);
}

.pv-desk__msg-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  padding: 0 4px;
  color: #8a9a90;
  font-size: 10px;
  font-weight: 750;
}

.pv-desk__msg.is-agent .pv-desk__msg-meta {
  flex-direction: row-reverse;
}

.pv-desk__msg-bubble {
  padding: 11px 13px;
  border-radius: 16px;
  background: #fff;
  color: #121814;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 6px 16px rgba(18, 40, 24, 0.05);
}

.pv-desk__msg.is-user .pv-desk__msg-bubble {
  border-bottom-left-radius: 6px;
}

.pv-desk__msg.is-agent .pv-desk__msg-bubble {
  background: linear-gradient(145deg, #2cc35a, #168e3c);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.pv-desk__suggest {
  max-width: min(88%, 460px);
  margin: 4px 0 8px;
  padding: 8px;
  border: 1px dashed #9ed7b0;
  border-radius: 14px;
  background: #f3fbf6;
}

.pv-desk__suggest p {
  margin: 0 0 6px;
  padding: 0 4px;
  color: #168e3c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pv-desk__suggest button {
  display: block;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #121814;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  white-space: pre-wrap;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(18, 40, 24, 0.05);
}

.pv-desk__suggest button:hover {
  background: #eaf8ee;
}

.pv-desk__msg-system {
  max-width: 90%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #7b8980;
  font-size: 12px;
  text-align: center;
  line-height: 1.4;
}

.pv-desk__composer {
  display: grid;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid #e7eee9;
  background: #fff;
}

.pv-desk__composer-shell {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 6px 6px 14px;
  border: 1px solid #d7e3db;
  border-radius: 999px;
  background: #f7fbf8;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pv-desk__composer-shell:focus-within {
  border-color: rgba(31, 157, 69, 0.55);
  box-shadow: 0 0 0 3px rgba(31, 157, 69, 0.12);
  background: #fff;
}

.pv-desk__composer input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.pv-desk__composer button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #2cc35a, #168e3c);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(22, 142, 60, 0.22);
  flex-shrink: 0;
}

.pv-desk__composer button:hover {
  transform: scale(1.03);
}

.pv-desk__composer-hint {
  margin: 0;
  padding: 0 6px;
  color: #9aa8a0;
  font-size: 11px;
}

@media (max-width: 1100px) {
  .pv-desk__grid,
  .pv-desk.is-inbox-closed .pv-desk__grid {
    height: auto;
    overflow: visible;
  }
}

@media (max-width: 760px) {
  .pv-desk {
    gap: 10px;
  }

  .pv-desk__top {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
  }

  .pv-desk__top-copy strong {
    font-size: 18px;
  }

  .pv-desk__top-copy span {
    display: none;
  }

  .pv-desk__top-actions {
    width: 100%;
    justify-content: stretch;
  }

  .pv-desk__online {
    flex: 1 1 100%;
    justify-content: center;
  }

  .pv-desk__top-actions .pv-desk__btn {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    min-width: 0;
  }

  .pv-desk__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 4px;
    border: 1px solid #e3eae5;
    border-radius: 14px;
    background: #fff;
  }

  .pv-desk__steps button {
    min-height: 36px;
    padding: 0 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #5d6b63;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
  }

  .pv-desk__steps button.is-on {
    background: #21ae4a;
    color: #fff;
  }

  .pv-desk__grid,
  .pv-desk.is-inbox-closed .pv-desk__grid {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .pv-desk__col {
    display: none;
    min-height: calc(100vh - 250px);
  }

  .pv-desk.is-mobile-agents .pv-desk__col--agents,
  .pv-desk.is-mobile-inbox .pv-desk__col--inbox,
  .pv-desk.is-mobile-chat .pv-desk__col--stage {
    display: flex;
  }

  .pv-desk.is-mobile-inbox .pv-desk__col--inbox {
    display: flex;
  }

  .pv-desk__agents,
  .pv-desk__inbox,
  .pv-desk__thread {
    max-height: none;
    min-height: 0;
  }

  .pv-desk__thread {
    min-height: 48vh;
  }

  .pv-desk__hint,
  .pv-desk__composer-hint {
    display: none;
  }

  .pv-desk__stage-head {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }

  .pv-desk__stage-tools {
    width: 100%;
    flex-wrap: wrap;
  }

  .pv-desk__replies,
  .pv-desk__replies > .pv-desk__btn {
    flex: 1 1 auto;
  }

  .pv-desk__replies-menu {
    left: 0;
    right: auto;
    width: min(360px, calc(100vw - 36px));
  }

  .pv-desk__agent {
    padding-right: 8px;
  }

  .pv-desk__agent-hours {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pv-desk__modal {
    padding: 10px;
    align-items: end;
  }

  .pv-desk__modal-card {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 16px 16px 12px 12px;
  }

  .pv-desk__modal-actions {
    flex-wrap: wrap;
  }

  .pv-desk__modal-actions-spacer {
    display: none;
  }

  .pv-desk__modal-actions .pv-desk__btn {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }

  body.pm-theme .pv-admin-app:has(.pv-desk) + .pv-footer {
    width: calc(100% - 16px);
    margin: 12px auto 16px;
  }
}

@media (max-width: 640px) {
  .pv-schat {
    right: 12px;
    bottom: 12px;
  }

  .pv-schat__launcher {
    gap: 8px;
    min-height: 52px;
    padding: 4px 12px 4px 4px;
  }

  .pv-schat__launcher-face,
  .pv-schat__pulse {
    width: 44px;
    height: 44px;
  }

  .pv-schat__pulse {
    left: 4px;
    top: 4px;
  }

  .pv-schat__launcher-copy strong {
    font-size: 12px;
  }

  .pv-schat__launcher-copy em {
    margin-top: 1px;
    font-size: 10px;
  }

  .pv-schat__launcher-close {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .pv-schat.is-open .pv-schat__launcher {
    padding: 4px;
  }

  .pv-schat__panel {
    position: fixed;
    right: 12px;
    bottom: 84px;
    width: calc(100vw - 24px);
    height: min(72vh, 580px);
    border-radius: 20px;
  }
}
