@media (max-width: 767px) {
  .customer-shell > .chat-widget {
    position: fixed;
    left: 0;
    right: auto;
    bottom: clamp(96px, 22dvh, 200px);
    align-items: flex-start;
    padding: 0;
  }

  .customer-shell > .site-footer {
    order: 2;
  }

  .customer-shell .chat-fab {
    width: 44px;
    height: auto;
    min-height: 128px;
    padding: 12px 0 !important;
    flex-direction: column;
    gap: 8px;
    border-radius: 0 12px 12px 0;
    background: var(--action-green-pressed, #0c7a43);
    box-shadow: 2px 4px 12px rgba(23, 64, 125, .16);
    transform: none;
  }

  .customer-shell .chat-fab.open {
    background: #3f4f63;
  }

  .customer-shell .chat-fab:focus-visible {
    outline: 2px solid #1769e0;
    outline-offset: 2px;
  }

  .customer-shell .chat-fab-label {
    display: block;
    writing-mode: vertical-rl;
    text-orientation: upright;
    line-height: 1.2;
    letter-spacing: 2px;
  }

  .customer-shell .chat-fab-badge {
    right: -6px;
  }

  .customer-shell .chat-panel {
    position: fixed;
    left: max(56px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    max-height: calc(100dvh - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom)));
    transform-origin: bottom left;
  }

  .customer-shell .chat-input-row textarea {
    min-width: 0;
    font-size: 16px;
  }

  .customer-shell .chat-close-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .customer-shell .chat-msg-list {
    min-height: 0;
  }

  .customer-shell .chat-msg-list.is-empty {
    overflow-y: auto;
  }

  .customer-shell .chat-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-shell .chat-quick-card {
    min-width: 0;
  }

  @media (prefers-reduced-motion: reduce) {
    .customer-shell .chat-panel,
    .customer-shell .chat-fab-badge {
      animation: none;
    }
  }
}
