.ccw-root,
.ccw-root * {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.ccw-root {
  overflow: visible;
  --ccw-ink: #2c2c2c;
  --ccw-body: #5a5552;
  --ccw-muted: #9a8f8a;
  --ccw-canvas: #ffffff;
  --ccw-soft: #fdf6f3;
  --ccw-card: #f8eeea;
  --ccw-line: #f0e4df;
  --ccw-accent: #e8887a;
  --ccw-accent-deep: #d97068;
  --ccw-accent-soft: #f6d4ce;
  --ccw-gradient: linear-gradient(135deg, #f3a394 0%, #e07a78 100%);
  --ccw-on-ink: #ffffff;
  --ccw-shadow: 0 10px 28px rgba(224, 122, 120, 0.18);
  --ccw-shadow-sm: 0 4px 14px rgba(44, 44, 44, 0.06);
  --ccw-radius: 22px;
  --ccw-radius-sm: 16px;
  --ccw-font: yekan1, Tahoma, "IRANSansX", "Vazirmatn", "Vazir", system-ui, sans-serif;
  position: fixed;
  z-index: 2147483000;
  font-family: var(--ccw-font);
  color: var(--ccw-ink);
  direction: rtl;
  text-align: right;
  line-height: 1.5;
  touch-action: manipulation;
}

.ccw-root.ccw-side-left {
  inset: auto auto max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}

.ccw-root.ccw-side-right {
  inset: auto max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) auto;
}

.ccw-launcher {
  position: relative;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f3d0c4;
  color: var(--ccw-on-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    var(--ccw-shadow),
    0 0 0 0 rgba(224, 122, 120, 0.38);
  animation:
    ccw-launcher-bob 2.8s ease-in-out infinite,
    ccw-launcher-glow 2.4s ease-in-out infinite;
}

.ccw-launcher::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(255, 246, 240, 0.55);
}

.ccw-launcher:hover {
  filter: brightness(1.04);
}

.ccw-launcher:active {
  transform: scale(0.97);
}

.ccw-launcher.is-open {
  animation: none;
  box-shadow: var(--ccw-shadow);
}

.ccw-nudge[hidden] {
  display: none !important;
}

.ccw-root.is-open .ccw-nudge {
  display: none !important;
}

.ccw-nudge {
  position: absolute;
  bottom: 8px;
  z-index: 2;
  width: max-content;
  max-width: min(220px, calc(100vw - 96px));
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: inherit;
  font: inherit;
  color: inherit;
  filter: drop-shadow(0 10px 22px rgba(224, 122, 120, 0.22));
  animation: ccw-nudge-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ccw-side-left .ccw-nudge {
  left: 76px;
  right: auto;
}

.ccw-side-right .ccw-nudge {
  right: 76px;
  left: auto;
}

.ccw-nudge-copy {
  position: relative;
  display: block;
  padding: 10px 14px;
  border-radius: 16px;
  background: #fffefd;
  border: 1px solid var(--ccw-line);
  color: var(--ccw-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.15px;
}

.ccw-nudge-copy::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #fffefd;
  border: 1px solid var(--ccw-line);
  transform: translateY(-50%) rotate(45deg);
}

.ccw-side-left .ccw-nudge-copy::after {
  left: -5px;
  border-right: 0;
  border-top: 0;
}

.ccw-side-right .ccw-nudge-copy::after {
  right: -5px;
  border-left: 0;
  border-bottom: 0;
}

.ccw-nudge.is-away {
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  pointer-events: none;
  transition:
    opacity 0.32s ease,
    transform 0.32s ease;
}

@keyframes ccw-nudge-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.92);
  }
  70% {
    transform: translateY(-2px) scale(1.02);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ccw-launcher svg {
  width: 64px;
  height: 64px;
  display: block;
}

.ccw-line {
  fill: none;
  stroke: #2c241f;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ccw-mascot-lock-l,
.ccw-mascot-lock-r,
.ccw-mascot-glance,
.ccw-mascot-spark,
.ccw-mascot-smile,
.ccw-mascot-mic {
  transform-box: fill-box;
  transform-origin: center;
}

.ccw-mascot-lock-l {
  transform-origin: center top;
  animation: ccw-mascot-lock-l 3.8s ease-in-out infinite;
}

.ccw-mascot-lock-r {
  transform-origin: center top;
  animation: ccw-mascot-lock-r 4.2s ease-in-out 0.15s infinite;
}

.ccw-mascot-open {
  animation: ccw-mascot-open 5.4s linear infinite;
}

.ccw-mascot-shut {
  opacity: 0;
  animation: ccw-mascot-shut 5.4s linear infinite;
}

.ccw-mascot-glance {
  animation:
    ccw-mascot-open 5.4s linear infinite,
    ccw-mascot-glance 6.6s ease-in-out infinite;
}

.ccw-mascot-spark {
  animation: ccw-mascot-spark 2.6s ease-in-out infinite;
}

.ccw-mascot-smile {
  animation: ccw-mascot-smile 3.6s ease-in-out infinite;
}

.ccw-mascot-mic {
  transform-origin: 86% 24%;
  animation: ccw-mascot-mic 3.8s ease-in-out infinite;
}

@keyframes ccw-launcher-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes ccw-launcher-glow {
  0%,
  100% {
    box-shadow:
      var(--ccw-shadow),
      0 0 0 0 rgba(224, 122, 120, 0.36);
  }
  50% {
    box-shadow:
      0 14px 30px rgba(224, 122, 120, 0.28),
      0 0 0 10px rgba(224, 122, 120, 0);
  }
}

@keyframes ccw-mascot-lock-l {
  from,
  to {
    transform: rotate(-2.2deg);
  }
  50% {
    transform: rotate(2.8deg);
  }
}

@keyframes ccw-mascot-lock-r {
  from,
  to {
    transform: rotate(2deg);
  }
  50% {
    transform: rotate(-2.6deg);
  }
}

@keyframes ccw-mascot-open {
  0%,
  78%,
  92%,
  100% {
    opacity: 1;
  }
  82%,
  88% {
    opacity: 0;
  }
}

@keyframes ccw-mascot-shut {
  0%,
  78%,
  92%,
  100% {
    opacity: 0;
  }
  82%,
  88% {
    opacity: 1;
  }
}

@keyframes ccw-mascot-glance {
  from,
  to {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(2.2px, -0.6px);
  }
  55% {
    transform: translate(-1.6px, 0.4px);
  }
}

@keyframes ccw-mascot-spark {
  from,
  to {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}

@keyframes ccw-mascot-smile {
  from,
  to {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(1.05);
  }
}

@keyframes ccw-mascot-mic {
  from,
  to {
    transform: rotate(-1.8deg);
  }
  50% {
    transform: rotate(2.8deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ccw-nudge,
  .ccw-nudge.is-away {
    animation: none;
    transition: none;
    transform: none;
  }

  .ccw-launcher,
  .ccw-mascot-lock-l,
  .ccw-mascot-lock-r,
  .ccw-mascot-open,
  .ccw-mascot-shut,
  .ccw-mascot-glance,
  .ccw-mascot-spark,
  .ccw-mascot-smile,
  .ccw-mascot-mic {
    animation: none;
  }

  .ccw-mascot-shut {
    opacity: 0;
  }

  .ccw-mascot-open {
    opacity: 1;
  }
}

.ccw-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ccw-accent-deep);
  color: var(--ccw-on-ink);
  border: 2px solid var(--ccw-canvas);
  font-size: 11px;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
}

.ccw-badge.is-on {
  display: flex;
}

.ccw-panel {
  position: absolute;
  bottom: 80px;
  width: min(400px, calc(100vw - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  height: min(620px, calc(var(--ccw-vh, 100dvh) - 112px));
  max-height: calc(var(--ccw-vh, 100dvh) - 96px);
  background: var(--ccw-canvas);
  border: 1px solid var(--ccw-line);
  border-radius: var(--ccw-radius);
  box-shadow: var(--ccw-shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.ccw-panel.is-open {
  display: flex;
}

.ccw-side-left .ccw-panel {
  left: 0;
  right: auto;
}

.ccw-side-right .ccw-panel {
  left: auto;
  right: 0;
}

.ccw-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ccw-line);
  background:
    radial-gradient(120% 120% at 100% 0%, #fde8e2 0%, transparent 55%),
    var(--ccw-soft);
}

.ccw-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--ccw-canvas);
  color: var(--ccw-accent-deep);
  border: 1.5px solid var(--ccw-accent-soft);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.ccw-head-text {
  min-width: 0;
  flex: 1;
}

.ccw-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ccw-live {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--ccw-accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ccw-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ccw-accent);
  box-shadow: 0 0 0 3px rgba(232, 136, 122, 0.22);
}

.ccw-close {
  width: 40px;
  height: 40px;
  margin-inline-start: auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ccw-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ccw-close:hover,
.ccw-close:active {
  background: var(--ccw-card);
}

.ccw-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.ccw-messages {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px;
  background: var(--ccw-soft);
}

.ccw-empty {
  margin: 48px 8px 0;
  text-align: center;
}

.ccw-empty p {
  margin: 0;
  color: var(--ccw-body);
  font-size: 14px;
}

.ccw-status {
  margin: 12px 0 0;
  color: var(--ccw-muted);
  font-size: 13px;
  text-align: center;
}

.ccw-intro {
  background: var(--ccw-canvas);
  border: 1px solid var(--ccw-line);
  border-radius: var(--ccw-radius-sm);
  padding: 16px;
  box-shadow: var(--ccw-shadow-sm);
}

.ccw-intro h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.ccw-intro p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ccw-muted);
}

.ccw-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.ccw-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ccw-ink);
}

.ccw-field input {
  height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  color: var(--ccw-ink);
  background: var(--ccw-soft);
  outline: none;
  box-shadow: inset 0 0 0 1px var(--ccw-line);
}

.ccw-field input:focus {
  box-shadow: inset 0 0 0 1.5px var(--ccw-accent);
  background: var(--ccw-canvas);
}

.ccw-field input[type="tel"] {
  direction: ltr;
  text-align: left;
}

.ccw-intro-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.ccw-intro-actions button[type="submit"] {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ccw-gradient);
  color: var(--ccw-on-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(224, 122, 120, 0.28);
}

.ccw-intro-actions button[type="submit"]:active {
  transform: scale(0.98);
}

.ccw-skip {
  border: 0;
  background: none;
  min-height: 44px;
  padding: 0 8px;
  color: var(--ccw-body);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.ccw-row {
  display: flex;
  margin-bottom: 12px;
}

.ccw-row.is-visitor {
  justify-content: flex-start;
}

.ccw-row.is-staff {
  justify-content: flex-end;
}

.ccw-stack {
  max-width: min(82%, 280px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ccw-row.is-staff .ccw-stack {
  align-items: flex-end;
}

.ccw-row.is-visitor .ccw-stack {
  align-items: flex-start;
}

.ccw-bubble {
  padding: 9px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.ccw-row.is-visitor .ccw-bubble {
  background: var(--ccw-gradient);
  color: var(--ccw-on-ink);
  border-bottom-right-radius: 6px;
}

.ccw-row.is-staff .ccw-bubble {
  background: var(--ccw-canvas);
  border: 1px solid var(--ccw-line);
  color: var(--ccw-ink);
  border-bottom-left-radius: 6px;
  box-shadow: var(--ccw-shadow-sm);
}

.ccw-time {
  font-size: 11px;
  color: var(--ccw-muted);
  padding: 0 4px;
}

.ccw-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--ccw-line);
  background: var(--ccw-canvas);
}

.ccw-form.is-hidden {
  display: none;
}

.ccw-optin[hidden] {
  display: none !important;
}

.ccw-optin {
  flex-shrink: 0;
  padding: 0 12px 10px;
  background: var(--ccw-canvas);
  border-top: 1px solid var(--ccw-line);
}

.ccw-optin-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 12px;
  padding: 12px;
  border-radius: var(--ccw-radius-sm);
  background: var(--ccw-soft);
  box-shadow: inset 0 0 0 1px var(--ccw-line);
}

.ccw-optin-bell {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--ccw-accent-soft);
  color: var(--ccw-accent-deep);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ccw-optin-bell svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ccw-optin-copy {
  flex: 1;
  min-width: min(100%, 160px);
}

.ccw-optin-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.ccw-optin-copy p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ccw-body);
}

.ccw-optin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.ccw-optin-yes,
.ccw-optin-later {
  font: inherit;
  cursor: pointer;
  border: 0;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
}

.ccw-optin-yes {
  background: var(--ccw-gradient);
  color: var(--ccw-on-ink);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(224, 122, 120, 0.28);
}

.ccw-optin-yes:active {
  transform: scale(0.98);
}

.ccw-optin-later {
  background: transparent;
  color: var(--ccw-body);
  font-size: 13px;
  font-weight: 600;
}

@media (min-width: 641px) {
  .ccw-optin-actions {
    width: auto;
    margin-inline-start: auto;
    align-self: center;
  }

  .ccw-optin-card {
    flex-wrap: nowrap;
    align-items: center;
  }
}

.ccw-composer {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ccw-composer label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.ccw-root textarea.ccw-input {
  all: unset;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  height: 44px;
  max-height: 44px;
  overflow: hidden;
  resize: none;
  border-radius: 22px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 14px;
  line-height: 44px;
  color: var(--ccw-ink);
  caret-color: var(--ccw-ink);
  background: var(--ccw-soft);
  box-shadow: inset 0 0 0 1px var(--ccw-line);
  direction: rtl;
  text-align: right;
  pointer-events: auto;
  user-select: text;
  -webkit-user-select: text;
  -webkit-user-modify: read-write-plaintext-only;
}

.ccw-root textarea.ccw-input:focus {
  background: var(--ccw-canvas);
  box-shadow: inset 0 0 0 1.5px var(--ccw-accent);
}

.ccw-root button.ccw-send {
  all: unset;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--ccw-gradient);
  color: var(--ccw-on-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(224, 122, 120, 0.28);
}

.ccw-root button.ccw-send:disabled {
  background: var(--ccw-line);
  color: var(--ccw-muted);
  box-shadow: none;
  cursor: not-allowed;
}

.ccw-root button.ccw-send:active:not(:disabled) {
  transform: scale(0.97);
}

.ccw-send svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.ccw-noscroll,
html.ccw-noscroll body {
  overflow: hidden;
  overscroll-behavior: none;
}

.ccw-offers[hidden] {
  display: none !important;
}

.ccw-offers:not([hidden]) {
  display: block;
}

.ccw-offers {
  position: fixed;
  z-index: 2147482990;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  font-family: yekan1, Tahoma, "IRANSansX", "Vazirmatn", "Vazir", system-ui, sans-serif;
  color: #2c2c2c;
  direction: rtl;
  text-align: right;
}

.ccw-offers-bar {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  width: 100%;
  padding: 10px 16px max(12px, env(safe-area-inset-bottom, 0px));
  background: #fffefd;
  border-top: 1px solid #f0e4df;
  box-shadow: 0 -10px 28px rgba(44, 44, 44, 0.1);
  animation: ccw-offers-up 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ccw-offers-copy {
  flex: 1 1 180px;
  min-width: 0;
}

.ccw-offers-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.ccw-offers-copy p {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #5a5552;
}

.ccw-offers-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}

.ccw-offers-yes,
.ccw-offers-later {
  font: inherit;
  cursor: pointer;
  border: 0;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
}

.ccw-offers-yes {
  background: linear-gradient(135deg, #f3a394 0%, #e07a78 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(224, 122, 120, 0.28);
}

.ccw-offers-yes:active {
  transform: scale(0.98);
}

.ccw-offers-later {
  background: transparent;
  color: #5a5552;
  font-size: 13px;
  font-weight: 600;
}

.ccw-root.has-offers:not(.is-open).ccw-side-left,
.ccw-root.has-offers:not(.is-open).ccw-side-right {
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

@keyframes ccw-offers-up {
  from {
    transform: translateY(110%);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ccw-offers-bar {
    animation: none;
  }
}

@media (min-width: 641px) {
  .ccw-panel {
    width: 400px;
    height: 620px;
    max-height: min(620px, calc(100vh - 112px));
  }

  .ccw-head {
    min-height: 64px;
    padding: 12px 16px;
  }

  .ccw-title {
    font-size: 15px;
  }

  .ccw-form {
    padding: 12px 14px 14px;
  }
}

@media (max-width: 640px) {
  .ccw-root.ccw-side-left {
    inset: auto auto max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  }

  .ccw-root.ccw-side-right {
    inset: auto max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) auto;
  }

  .ccw-root.is-open {
    inset: 0;
  }

  .ccw-root.is-open .ccw-launcher {
    display: none;
  }

  .ccw-panel,
  .ccw-side-left .ccw-panel,
  .ccw-side-right .ccw-panel {
    position: fixed;
    top: var(--ccw-vt, 0px);
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: var(--ccw-vh, 100dvh);
    max-height: none;
    border-radius: 0;
    border: 0;
  }

  .ccw-head {
    min-height: 56px;
    padding: max(10px, env(safe-area-inset-top, 0px)) 12px 12px;
  }

  .ccw-optin-yes,
  .ccw-optin-later {
    min-height: 44px;
  }

  .ccw-optin-yes {
    flex: 1;
  }

  .ccw-form {
    padding: 10px 12px max(12px, env(safe-area-inset-bottom, 0px));
  }

  .ccw-offers-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 14px max(14px, env(safe-area-inset-bottom, 0px));
  }

  .ccw-offers-copy {
    flex: none;
  }

  .ccw-offers-actions {
    width: 100%;
    margin: 0;
  }

  .ccw-offers-yes,
  .ccw-offers-later {
    min-height: 44px;
  }

  .ccw-offers-yes {
    flex: 1;
  }

  .ccw-offers-later {
    flex: 1;
  }

  .ccw-root.has-offers:not(.is-open).ccw-side-left,
  .ccw-root.has-offers:not(.is-open).ccw-side-right {
    bottom: calc(128px + env(safe-area-inset-bottom, 0px));
  }

  .ccw-messages {
    padding: 12px;
  }

  .ccw-stack {
    max-width: 86%;
  }

  .ccw-launcher {
    width: 56px;
    height: 56px;
  }

  .ccw-launcher svg {
    width: 56px;
    height: 56px;
  }

  .ccw-nudge {
    width: min(196px, calc(100vw - 80px));
    max-width: min(196px, calc(100vw - 80px));
    bottom: calc(100% + 10px);
  }

  .ccw-side-left .ccw-nudge,
  .ccw-side-right .ccw-nudge {
    left: 0;
    right: auto;
  }

  .ccw-side-right .ccw-nudge {
    left: auto;
    right: 0;
  }

  .ccw-nudge-copy {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.4;
    padding: 9px 12px;
    border-radius: 14px;
    text-wrap: pretty;
  }

  .ccw-nudge-copy::after {
    top: auto;
    bottom: -5px;
    transform: rotate(45deg);
  }

  .ccw-side-left .ccw-nudge-copy::after {
    left: 18px;
    right: auto;
    border: 1px solid var(--ccw-line);
    border-left: 0;
    border-top: 0;
  }

  .ccw-side-right .ccw-nudge-copy::after {
    right: 18px;
    left: auto;
    border: 1px solid var(--ccw-line);
    border-left: 0;
    border-top: 0;
  }
}

@media (max-width: 640px) and (orientation: landscape) {
  .ccw-head {
    min-height: 48px;
    padding: 8px 12px;
  }

  .ccw-avatar {
    width: 32px;
    height: 32px;
  }
}
