/**
 * Chatbot CSS - Portal do Vendedor Digital
 * Estilos personalizados seguindo o design system do site
 * Versão otimizada para responsividade e legibilidade
 */

/* ===== BOTÃO FLUTUANTE DO CHATBOT ===== */
.chatbot-float-btn {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
  color: #fff;
  padding: 12px 16px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.8rem;
  font-family: var(--font-body);
  box-shadow: 0 4px 20px rgba(var(--accent-purple-rgb), 0.35);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.3s,
              background 0.3s;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: chatbot-pulse 3s ease-in-out infinite;
}

.chatbot-float-btn:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 6px 28px rgba(var(--accent-purple-rgb), 0.5);
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo));
}

.chatbot-float-btn i {
  font-size: 1.1rem;
}

.chatbot-float-btn-text {
  white-space: nowrap;
}

@keyframes chatbot-pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(var(--accent-purple-rgb), 0.35);
  }
  50% {
    box-shadow: 0 4px 28px rgba(var(--accent-purple-rgb), 0.5);
  }
}

/* ===== JANELA DO CHATBOT ===== */
.chatbot-window {
  position: fixed;
  bottom: 80px;
  left: 16px;
  right: 16px;
  width: auto;
  max-width: 385px;
  height: 629px;
  background: var(--bg-800);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 
    0 0 0 1px rgba(var(--accent-purple-rgb), 0.3),
    0 0 20px rgba(var(--accent-purple-rgb), 0.15),
    0 0 40px rgba(var(--accent-rgb), 0.1),
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    var(--shadow-lg);
  z-index: 998;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile responsive - 90vw em telas pequenas */
@media (max-width: 480px) {
  .chatbot-window {
    width: 90vw;
    max-width: 385px;
    height: 629px;
  }

  .chatbot-quick-btn {
    padding: 10px 14px;
    font-size: 0.875rem;
  }
}

.chatbot-window.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
  box-shadow: 
    0 0 0 1px rgba(var(--accent-purple-rgb), 0.4),
    0 0 30px rgba(var(--accent-purple-rgb), 0.2),
    0 0 60px rgba(var(--accent-rgb), 0.15),
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    var(--shadow-lg);
}

/* ===== CABEÇALHO DO CHATBOT ===== */
.chatbot-header {
  background: linear-gradient(135deg, rgba(var(--accent-purple-rgb), 0.15), rgba(var(--accent-rgb), 0.1));
  border-bottom: 1px solid var(--border-light);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  flex-shrink: 0;
  width: 100%;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.chatbot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chatbot-avatar i {
  font-size: 1.3rem;
  color: var(--amber);
}

.robot-icon {
  width: 32px;
  height: 32px;
}

.chatbot-info {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.chatbot-name {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.chatbot-description {
  font-size: 0.7rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chatbot-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chatbot-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--red);
}

.chatbot-reset {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-right: 8px;
}

.chatbot-reset:hover {
  background: rgba(var(--accent-purple-rgb), 0.2);
  border-color: rgba(var(--accent-purple-rgb), 0.3);
  color: var(--amber);
}

.chatbot-reset.rotate {
  animation: rotate-icon 0.5s ease-in-out;
}

@keyframes rotate-icon {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive sizes for header buttons */
/* Mobile 360px+ */
@media (min-width: 360px) {
  .chatbot-close,
  .chatbot-reset {
    width: 32px;
    height: 32px;
  }
}

/* Mobile 390px+ */
@media (min-width: 390px) {
  .chatbot-close,
  .chatbot-reset {
    width: 34px;
    height: 34px;
  }
}

/* Tablets (768px+) */
@media (min-width: 768px) {
  .chatbot-close,
  .chatbot-reset {
    width: 32px;
    height: 32px;
  }
}

/* ===== ÁREA DE MENSAGENS ===== */
.chatbot-messages {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-800);
  min-height: 0;
}

.chatbot-messages::-webkit-scrollbar {
  width: 4px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
}

/* ===== MENSAGENS ===== */
.chatbot-message {
  display: flex;
  gap: 10px;
  max-width: 100%;
  width: 100%;
  animation: message-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chatbot-message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--glass);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.chatbot-message.bot .chatbot-message-avatar {
  background: linear-gradient(135deg, rgba(var(--accent-purple-rgb), 0.2), rgba(var(--accent-rgb), 0.15));
  border-color: rgba(var(--accent-purple-rgb), 0.3);
  color: var(--amber);
}

.chatbot-message.user .chatbot-message-avatar {
  background: var(--green-glow);
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--green);
}

.chatbot-message-content {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: normal;
  width: auto;
  min-width: 0;
}

.chatbot-message.bot .chatbot-message-content {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-bottom-left-radius: 3px;
}

.chatbot-message.user .chatbot-message-content {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
  color: #fff;
  border-bottom-right-radius: 3px;
  box-shadow: 0 2px 8px rgba(var(--accent-purple-rgb), 0.2);
}

/* ===== PERGUNTAS RÁPIDAS ===== */
.chatbot-quick-questions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  width: 100%;
  max-width: none;
  align-items: flex-start;
}

.chatbot-quick-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  padding: 0 4px;
}

.chatbot-quick-header i {
  font-size: 0.6rem;
  color: var(--amber);
}

.chatbot-quick-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e4e4e7;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
  width: fit-content;
  max-width: 100%;
  text-align: left;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: inline-flex;
  align-items: center;
  min-height: unset;
}

.chatbot-quick-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.chatbot-quick-btn:active {
  background: rgba(255, 255, 255, 0.08);
}

/* ===== AÇÕES RÁPIDAS (LINKS) ===== */
.chatbot-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  width: 100%;
  max-width: none;
  align-items: center;
}

.chatbot-action-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--amber);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.chatbot-action-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--amber);
}

.chatbot-action-btn:active {
  background: rgba(255, 255, 255, 0.08);
}

.chatbot-action-btn:hover {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.25), rgba(var(--accent-purple-rgb), 0.2));
  border-color: rgba(var(--accent-rgb), 0.5);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.2);
}

.chatbot-action-btn i {
  font-size: 0.7rem;
}

/* ===== INDICADOR DE DIGITAÇÃO ===== */
.chatbot-typing {
  display: flex;
  gap: 10px;
  max-width: 90%;
  width: auto;
  animation: message-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-typing-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(var(--accent-purple-rgb), 0.2), rgba(var(--accent-rgb), 0.15));
  border: 1px solid rgba(var(--accent-purple-rgb), 0.3);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.chatbot-typing-indicator {
  background: var(--glass);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 10px;
  border-bottom-left-radius: 3px;
  display: flex;
  gap: 4px;
  align-items: center;
}

.chatbot-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing-bounce 1.4s ease-in-out infinite;
}

.chatbot-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.chatbot-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-6px);
  }
}

/* ===== ÁREA DE INPUT ===== */
.chatbot-input-area {
  border-top: 1px solid var(--border-light);
  padding: 12px 16px;
  background: var(--bg-700);
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-shrink: 0;
}

.chatbot-input-wrapper {
  flex: 1;
  position: relative;
  min-width: 0;
}

.chatbot-input {
  width: 100%;
  background: var(--bg-600);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: var(--font-body);
  resize: none;
  outline: none;
  transition: all 0.2s;
  max-height: 100px;
  min-height: 40px;
  line-height: 1.4;
}

.chatbot-input:focus {
  border-color: rgba(var(--accent-purple-rgb), 0.5);
  box-shadow: 0 0 0 3px rgba(var(--accent-purple-rgb), 0.1);
}

.chatbot-input::placeholder {
  color: var(--text-muted);
}

.chatbot-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chatbot-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(var(--accent-purple-rgb), 0.3);
}

.chatbot-send-btn:active {
  transform: scale(0.95);
}

.chatbot-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.chatbot-send-btn i {
  font-size: 0.9rem;
}

/* ===== RESPONSIVIDADE - MEDIA QUERIES ===== */

/* Mobile 360px+ */
@media (min-width: 360px) {
  .chatbot-window {
    max-width: 385px;
    height: 629px;
  }

  .chatbot-header {
    padding: 14px 18px;
  }

  .chatbot-avatar {
    width: 42px;
    height: 42px;
  }

  .chatbot-name {
    font-size: 0.875rem;
  }

  .chatbot-description {
    font-size: 0.725rem;
  }

  .chatbot-messages {
    padding: 18px;
  }

  .chatbot-message {
    max-width: 100%;
  }

  .chatbot-quick-btn {
    padding: 10px 16px;
    font-size: 0.875rem;
  }

  .chatbot-message-content {
    font-size: 0.875rem;
    padding: 12px 16px;
  }

  .chatbot-input-area {
    padding: 14px 18px;
  }

  .chatbot-input {
    font-size: 0.875rem;
    padding: 12px 16px;
    min-height: 42px;
  }

  .chatbot-send-btn {
    width: 42px;
    height: 42px;
  }
}

/* Mobile 375px+ */
@media (min-width: 375px) {
  .chatbot-window {
    max-width: 385px;
    height: 629px;
  }

  .chatbot-message {
    max-width: 100%;
  }
}

/* Mobile 390px+ */
@media (min-width: 390px) {
  .chatbot-window {
    max-width: 385px;
    height: 629px;
  }

  .chatbot-header {
    padding: 16px 20px;
  }

  .chatbot-avatar {
    width: 44px;
    height: 44px;
  }

  .chatbot-name {
    font-size: 0.9rem;
  }

  .chatbot-description {
    font-size: 0.75rem;
  }

  .chatbot-messages {
    padding: 20px;
  }

  .chatbot-message {
    max-width: 100%;
  }

  .chatbot-message-avatar {
    width: 32px;
    height: 32px;
  }

  .chatbot-message-content {
    font-size: 0.9rem;
    padding: 12px 16px;
  }

  .chatbot-quick-btn {
    padding: 10px 16px;
    font-size: 0.875rem;
  }

  .chatbot-input-area {
    padding: 16px 20px;
  }

  .chatbot-input {
    font-size: 0.9rem;
    padding: 12px 16px;
    min-height: 44px;
  }

  .chatbot-send-btn {
    width: 44px;
    height: 44px;
  }

  .chatbot-typing-avatar {
    width: 32px;
    height: 32px;
  }

  .chatbot-typing-indicator {
    padding: 12px 16px;
  }
}

/* Mobile 412px+ */
@media (min-width: 412px) {
  .chatbot-window {
    max-width: 385px;
    height: 629px;
  }

  .chatbot-message {
    max-width: 100%;
  }
}

/* Mobile 430px+ */
@media (min-width: 430px) {
  .chatbot-window {
    max-width: 385px;
    height: 629px;
  }

  .chatbot-message {
    max-width: 100%;
  }
}

/* Mobile 480px+ */
@media (min-width: 480px) {
  .chatbot-window {
    max-width: 385px;
    height: 629px;
  }

  .chatbot-message {
    max-width: 100%;
  }
}

/* Tablets (768px+) */
@media (min-width: 768px) {
  .chatbot-float-btn {
    bottom: 20px;
    left: 20px;
    padding: 14px 20px;
    font-size: 0.875rem;
  }

  .chatbot-float-btn i {
    font-size: 1.2rem;
  }

  .chatbot-float-btn-text {
    display: inline;
  }

  .chatbot-window {
    bottom: 90px;
    left: 20px;
    right: auto;
    width: 385px;
    max-width: none;
    height: 629px;
  }

  .chatbot-header {
    padding: 16px 20px;
  }

  .chatbot-avatar {
    width: 44px;
    height: 44px;
  }

  .chatbot-name {
    font-size: 0.95rem;
  }

  .chatbot-description {
    font-size: 0.75rem;
  }

  .chatbot-messages {
    padding: 20px;
  }

  .chatbot-message {
    max-width: 100%;
  }

  .chatbot-message-avatar {
    width: 32px;
    height: 32px;
  }

  .chatbot-message-content {
    font-size: 0.875rem;
    padding: 12px 16px;
  }

  .chatbot-input-area {
    padding: 16px 20px;
  }

  .chatbot-input {
    font-size: 0.875rem;
    padding: 12px 16px;
    min-height: 44px;
  }

  .chatbot-send-btn {
    width: 44px;
    height: 44px;
  }

  .chatbot-typing-avatar {
    width: 32px;
    height: 32px;
  }

  .chatbot-typing-indicator {
    padding: 12px 16px;
  }
}

/* Notebooks (1024px+) */
@media (min-width: 1024px) {
  .chatbot-window {
    width: 385px;
    height: 629px;
  }

  .chatbot-message {
    max-width: 100%;
  }
}

/* Desktop grande (1280px+) */
@media (min-width: 1280px) {
  .chatbot-float-btn {
    bottom: 24px;
    left: 24px;
    padding: 14px 20px;
  }

  .chatbot-window {
    bottom: 90px;
    left: 24px;
    width: 385px;
    height: 629px;
  }

  .chatbot-message {
    max-width: 100%;
  }
}

/* Desktop muito grande (1440px+) */
@media (min-width: 1440px) {
  .chatbot-window {
    width: 385px;
    height: 629px;
  }

  .chatbot-message {
    max-width: 100%;
  }
}

/* Desktop ultra-wide (1920px+) */
@media (min-width: 1920px) {
  .chatbot-window {
    width: 385px;
    height: 629px;
  }

  .chatbot-message {
    max-width: 100%;
  }
}

/* ===== AJUSTES ESPECÍFICOS PARA TELEVISÕES ===== */
@media (min-width: 2560px) {
  .chatbot-window {
    width: 540px;
  }

  .chatbot-message {
    max-width: 72%;
  }
}

/* ===== ANIMAÇÕES ADICIONAIS ===== */
.chatbot-float-btn.bounce {
  animation: chatbot-bounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes chatbot-bounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

/* ===== ESTADOS ===== */
.chatbot-window.closing {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
}

.chatbot-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== LINKS NAS MENSAGENS ===== */
.chatbot-message-content a {
  color: var(--amber);
  text-decoration: underline;
  transition: opacity 0.2s;
}

.chatbot-message-content a:hover {
  opacity: 0.8;
}

/* ===== BADGES/STATUS ===== */
.chatbot-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--bg-800);
}

.chatbot-status.offline {
  background: var(--text-muted);
}

.chatbot-status.busy {
  background: var(--amber-dark);
}

/* ===== AJUSTE PARA TECLADO VIRTUAL NO MOBILE ===== */
@media (max-height: 500px) and (max-width: 768px) {
  .chatbot-window {
    height: calc(100dvh - 80px);
    bottom: 70px;
  }

  .chatbot-header {
    padding: 10px 14px;
  }

  .chatbot-avatar {
    width: 36px;
    height: 36px;
  }

  .chatbot-messages {
    padding: 12px 14px;
    gap: 10px;
  }

  .chatbot-input-area {
    padding: 10px 14px;
  }

  .chatbot-input {
    min-height: 36px;
    padding: 8px 12px;
  }

  .chatbot-send-btn {
    width: 36px;
    height: 36px;
  }
}

/* ===== ORIENTAÇÃO LANDSCAPE NO MOBILE ===== */
@media (max-height: 450px) and (orientation: landscape) {
  .chatbot-window {
    height: calc(100dvh - 60px);
    bottom: 50px;
    max-height: 300px;
  }

  .chatbot-header {
    padding: 8px 12px;
  }

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

  .chatbot-name {
    font-size: 0.8rem;
  }

  .chatbot-description {
    font-size: 0.65rem;
  }

  .chatbot-messages {
    padding: 10px 12px;
    gap: 8px;
  }

  .chatbot-input-area {
    padding: 8px 12px;
  }

  .chatbot-input {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .chatbot-send-btn {
    width: 32px;
    height: 32px;
  }
}

/* ===== SAFE AREA PARA IPHONE ===== */
@supports (padding: env(safe-area-inset-bottom)) {
  .chatbot-float-btn {
    bottom: calc(16px + env(safe-area-inset-bottom));
    left: calc(16px + env(safe-area-inset-left));
  }

  .chatbot-window {
    bottom: calc(80px + env(safe-area-inset-bottom));
    left: calc(16px + env(safe-area-inset-left));
    right: calc(16px + env(safe-area-inset-right));
  }

  @media (min-width: 768px) {
    .chatbot-window {
      bottom: calc(90px + env(safe-area-inset-bottom));
      left: calc(20px + env(safe-area-inset-left));
    }
  }
}
