/**
 * SMS Short Code – estilos do mockup iPhone (tela de bloqueio, notificação, conversa)
 * sms(novo)/css/sms-phone.css
 * Depende das variáveis --sms-sms-* definidas em sms.css
 */

/* ========== CELULAR (WRAP / FRAME / TELA) ========== */
.sms-phone-wrap {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
  cursor: default;
  padding: 12px;
  border-radius: 34px;
  background: transparent;
  transition: background 0.35s ease;
}

.sms-phone-wrapper {
  padding: 4px;
  border-radius: 28px;
  position: relative;
  background: linear-gradient(165deg, #3d4654 0%, #343c4a 25%, #2e3542 50%, #2a303c 75%, #262b36 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transition: background 0.35s ease;
}


.sms-phone-side-buttons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  border-radius: 30px;
}

.sms-phone-btn {
  position: absolute;
  border-radius: 2px;
  background: linear-gradient(165deg, #3d4654 0%, #343c4a 45%, #2e3542 100%);
}

.sms-phone-btn-volume-up {
  left: -1px;
  top: 21%;
  width: 3px;
  height: 26px;
}

.sms-phone-btn-volume-down {
  left: -1px;
  top: 29%;
  width: 3px;
  height: 26px;
}

.sms-phone-btn-power {
  right: -1px;
  top: 20%;
  width: 3px;
  height: 40px;
}

[data-theme="dark"] .sms-phone-btn {
  background: linear-gradient(165deg, #2a2e36 0%, #22262d 45%, #1c1f25 100%);
}

.sms-phone-frame {
  position: relative;
  width: 100%;
  max-width: 286px;
  height: 520px;
  aspect-ratio: 286 / 520;
  margin: 0 auto;
  border: none;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, #f6f7fb 0%, #eef0f5 50%, #e6e9f0 100%);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
  transition: background 0.35s ease, box-shadow 0.35s ease;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] .sms-phone-frame {
  background: linear-gradient(180deg, #1c1c1e 0%, #0d0d0f 50%, #000 100%);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
}

.sms-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  overflow: hidden;
  transition: background 0.35s ease;
  font-size: 13px;
}

.sms-phone-screen p,
.sms-phone-screen .sms-notif-body-text {
  font-size: 12px !important;
  line-height: 1.4;
  margin-bottom: 0;
}

[data-theme="dark"] .sms-phone-screen {
  background: #000;
}

/* ========== STATUS BAR (TELA DE BLOQUEIO) ========== */
.sms-phone-statusbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  pointer-events: none;
}

.sms-phone-homescreen .sms-phone-statusbar {
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 120, 200, 0.35) 0%, rgba(0, 60, 140, 0.2) 60%, transparent 100%);
}

.sms-phone-homescreen .sms-phone-status-icons svg {
  color: #fff;
  fill: #fff;
}

.sms-phone-homescreen .sms-phone-time {
  visibility: hidden;
  width: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.sms-phone-time {
  width: 50px;
  text-align: center;
  user-select: none;
}

.sms-phone-dynamic-island {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
}

.sms-phone-homescreen .sms-phone-dynamic-island {
  background: rgba(0, 0, 0, 0.45);
}

.sms-phone-privacy-dot {
  width: 5px;
  height: 5px;
  background: #ff9500;
  border-radius: 50%;
  box-shadow: 0 0 3px rgba(255, 149, 0, 0.4);
}

.sms-phone-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 70px;
  justify-content: flex-end;
}

.sms-phone-icon-signal,
.sms-phone-icon-wifi {
  width: 18px;
  height: 18px;
}

.sms-phone-icon-battery {
  width: 22px;
  height: 11px;
  flex-shrink: 0;
}

/* ========== TELA DE BLOQUEIO (WALLPAPER, HORA, ATALHOS) ========== */
.sms-phone-homescreen {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity 0.4s ease;
}

.sms-phone-homescreen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: transparent;
  transition: background 0.45s ease, opacity 0.45s ease;
}

.sms-phone-homescreen.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Tema escuro: overlay ainda mais suave na tela de bloqueio */
[data-theme="dark"] .sms-phone-homescreen::after {
  background: rgba(0, 0, 0, 0.18);
}

.sms-phone-wallpaper {
  position: absolute;
  inset: 0;
  background: #050508 center center / cover no-repeat;
  overflow: hidden;
  transition: filter 0.45s ease, opacity 0.45s ease, transform 0.45s ease;
}

.sms-phone-wallpaper--earth {
  background-color: #050508;
  background-image: url("../images/fundo-iphone-bloqueio.png");
}

/* Tema escuro: usa wallpaper específico (imagem enviada) e leve ajuste de cor */
[data-theme="dark"] .sms-phone-wallpaper--earth {
  background-color: #020310;
  background-image: url("../images/fundo-iphone-bloqueio-dark.png");
}

[data-theme="dark"] .sms-phone-wallpaper {
  filter: saturate(1.05) brightness(0.92);
}

.sms-phone-lockscreen-content {
  position: absolute;
  left: 0;
  right: 0;
  top: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 2;
  pointer-events: none;
}

.sms-phone-lockscreen-lock {
  width: 14px;
  height: 14px;
  margin-bottom: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,0.9)'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.sms-phone-lockscreen-date {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
}

/* Hora central maior – estilo ref SVG (SF Pro Display thin, 9:41) */
.sms-phone-lockscreen-time {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Outfit", "Helvetica Neue", "Inter", sans-serif;
  font-size: 82px;
  font-weight: 200;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.98);
  line-height: 1;
  letter-spacing: -0.05em;
  text-shadow: 0 0 32px rgba(255, 255, 255, 0.15), 0 1px 3px rgba(0, 0, 0, 0.12);
}

.sms-phone-lockscreen-shortcuts {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 2;
  pointer-events: none;
}

.sms-phone-lockscreen-shortcut {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sms-phone-lockscreen-shortcut svg {
  width: 40px;
  height: 40px;
  display: block;
}

.sms-phone-lockscreen-shortcut svg path:last-of-type {
  fill: #fff;
}

.sms-phone-lockscreen-shortcut svg rect {
  display: none;
}

.sms-phone-home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  z-index: 4;
  pointer-events: none;
}

/* ========== NOTIFICAÇÃO (CAIR + PULSAR) ========== */
.sms-phone-notifications {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 218px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: calc(100% - 28px);
}

.sms-notif-wrapper {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  width: 100%;
  max-width: 100%;
}

.sms-notif-wrapper.is-visible {
  pointer-events: auto;
  animation: sms-notif-cai 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes sms-notif-cai {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.sms-notif-ios {
  min-height: 48px;
  padding: 8px 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-radius: 12px;
  background: rgba(40, 40, 44, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  border: none;
  font: inherit;
  text-align: left;
  cursor: default;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: auto;
}


/* Tema claro: notificação no estilo da referência (translúcida, esbranquiçada/cinza-clara) */
.sms-notif-ios--sms {
  background: rgba(252, 252, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .sms-notif-ios--sms .sms-notif-appname {
  color: #007aff;
}

.sms-notif-ios--sms .sms-notif-title {
  color: #1d1d1f;
}

.sms-notif-ios--sms .sms-notif-body-text {
  color: rgba(0, 0, 0, 0.7);
}

.sms-notif-ios--sms .sms-notif-time {
  color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .sms-notif-ios--sms {
  color: #1d1d1f;
}

/* Tema escuro: notificação visível na tela de bloqueio escurecida */
[data-theme="dark"] .sms-notif-ios--sms {
  background: rgba(40, 40, 46, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .sms-notif-appname {
  color: #66ccff;
}

[data-theme="dark"] .sms-notif-title {
  color: #fff;
}

[data-theme="dark"] .sms-notif-body-text {
  color: rgba(255, 255, 255, 0.88);
}

[data-theme="dark"] .sms-notif-time {
  color: rgba(255, 255, 255, 0.5);
}

.sms-notif-icon-box {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  align-self: center;
  margin-top: 4px;
}

.sms-notif-icon-box img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.sms-notif-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sms-notif-header-row {
  width: 100%;
  margin-bottom: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sms-notif-appname {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #66ccff;
}

.sms-notif-time {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.sms-notif-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2px;
}

.sms-notif-body-text {
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.sms-notif-wrapper.is-visible .sms-notif-pulse {
  animation: sms-notif-pulse 1.1s ease-in-out 0.1s infinite;
}

@keyframes sms-notif-pulse {

  0%,
  100% {
    transform: scale(1) translateY(0);
    box-shadow: 0 0 0 0 rgba(10, 132, 255, 0.4);
  }

  50% {
    transform: scale(1.05) translateY(-1px);
    box-shadow:
      0 0 0 9px rgba(10, 132, 255, 0.30),
      0 0 18px rgba(10, 132, 255, 0.35);
  }
}

/* ========== TOUCH RIPPLE ========== */
.sms-phone-touch-ripple {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
}

.sms-phone-touch-ripple.is-active {
  animation: sms-ripple 0.6s ease-out forwards;
}

.sms-phone-touch-ripple::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
}

.sms-phone-touch-ripple.is-active::after {
  animation: sms-ripple-scale 0.6s ease-out forwards;
}

@keyframes sms-ripple {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes sms-ripple-scale {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

/* ========== LISTA DE MENSAGENS (tela intermediária) ========== */
.sms-phone-messages-list {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #f5f5f7;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
  border-radius: 28px;
}

.sms-phone-messages-list.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.sms-msglist-statusbar {
  position: relative;
  height: 44px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #000;
}

.sms-msglist-time {
  width: 50px;
  text-align: left;
}

.sms-msglist-dynamic-island {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 24px;
  background: #000;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
}

.sms-msglist-status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 70px;
  justify-content: flex-end;
}

.sms-phone-messages-list .sms-phone-icon-signal,
.sms-phone-messages-list .sms-phone-icon-wifi {
  width: 17px;
  height: 17px;
}

.sms-phone-messages-list .sms-phone-icon-battery {
  width: 22px;
  height: 11px;
}

.sms-msglist-header {
  padding: 8px 12px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sms-msglist-edit {
  border-radius: 14px;
  padding: 4px 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #f5f5f7;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
}

.sms-msglist-title {
  font-size: 17px;
  font-weight: 700;
}

.sms-msglist-filter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #f5f5f7;
  font-size: 12px;
  pointer-events: none;
}

.sms-msglist-filter-icon {
  font-size: 13px;
}

.sms-msglist-body {
  padding: 4px 0;
}

.sms-msglist-thread {
  width: 100%;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  text-align: left;
}

.sms-msglist-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
}

.sms-msglist-avatar svg {
  width: 22px;
  height: 22px;
  display: block;
}

[data-theme="dark"] .sms-phone-messages-list {
  background: #000000;
}

[data-theme="dark"] .sms-msglist-statusbar {
  color: rgba(255, 255, 255, 0.92);
}

[data-theme="dark"] .sms-msglist-edit,
[data-theme="dark"] .sms-msglist-filter {
  background: #11182700;
  border-color: rgba(255, 255, 255, 0.18);
  color: #e5e7eb;
}

[data-theme="dark"] .sms-msglist-title,
[data-theme="dark"] .sms-msglist-name {
  color: #f9fafb;
}

[data-theme="dark"] .sms-msglist-meta,
[data-theme="dark"] .sms-msglist-row-bottom {
  color: #9ca3af;
}

[data-theme="dark"] .sms-msglist-avatar {
  background: #1f2933;
  color: #e5e7eb;
}

[data-theme="dark"] .sms-phone-messages-list .sms-phone-icon-signal,
[data-theme="dark"] .sms-phone-messages-list .sms-phone-icon-wifi,
[data-theme="dark"] .sms-phone-messages-list .sms-phone-icon-battery {
  color: rgba(255, 255, 255, 0.95);
  fill: rgba(255, 255, 255, 0.95);
}

.sms-msglist-texts {
  flex: 1;
  min-width: 0;
}

.sms-msglist-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.sms-msglist-name {
  font-weight: 700;
  font-size: 15px;
}

.sms-msglist-meta {
  font-size: 12px;
  color: #6b7280;
}

.sms-msglist-row-bottom {
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sms-msglist-chevron {
  font-size: 18px;
  color: #c4c4c6;
}

/* ========== VIEW CONVERSA SMS ========== */
.sms-phone-sms-view {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--sms-sms-bg);
  display: flex;
  flex-direction: column;
  min-height: 0;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
}

.sms-phone-sms-view.is-open {
  transform: translateX(0);
  opacity: 1;
}

.sms-phone-sms-view.is-opening {
  transform: translateX(0);
  opacity: 1;
  animation: sms-view-open-effect 0.35s ease-out;
}

@keyframes sms-view-open-effect {
  0% {
    opacity: 0;
    transform: translateX(8px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Barra de status na conversa – ícones com cor do tema (evita ícones errados) */
.sms-sms-statusbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  color: var(--sms-sms-status-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  pointer-events: none;
}

.sms-phone-sms-view .sms-sms-statusbar .sms-sms-statusbar-time,
.sms-phone-sms-view .sms-sms-status-icons svg {
  color: var(--sms-sms-status-text);
  fill: var(--sms-sms-status-text);
}

.sms-sms-statusbar-time {
  width: 50px;
  text-align: center;
  user-select: none;
}

.sms-sms-dynamic-island {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 20px;
  background: rgb(0, 0, 0);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
}

.sms-sms-status-icons {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 70px;
  justify-content: flex-end;
}

.sms-sms-status-icons .sms-phone-icon-signal,
.sms-sms-status-icons .sms-phone-icon-wifi {
  width: 18px;
  height: 18px;
}

.sms-sms-status-icons .sms-phone-icon-battery {
  width: 22px;
  height: 11px;
}

.sms-sms-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 42px 10px 10px 12px;
  background: var(--sms-sms-header-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  min-height: 44px;
}

.sms-sms-back {
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: #0a84ff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
}

.sms-sms-back svg {
  width: 18px;
  height: 18px;
}

.sms-sms-back:hover {
  background: rgba(0, 122, 255, 0.12);
}

.sms-sms-contact-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--sms-sms-header-text);
  flex: 1;
  min-width: 0;
}

.sms-sms-body {
  flex: 1;
  min-height: 0;
  padding: 8px 10px 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--sms-sms-bg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sms-sms-body::-webkit-scrollbar {
  width: 4px;
}

.sms-sms-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 2px;
}

[data-theme="dark"] .sms-sms-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

#smsBubbles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sms-sms-bubble {
  max-width: 78%;
  padding: 6px 10px;
  border-radius: 14px 14px 14px 4px;
  background: var(--sms-sms-in-bubble-bg);
  font-size: 13px;
  line-height: 1.4;
  color: var(--sms-sms-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  align-self: flex-start;
  flex-shrink: 0;
}

.sms-sms-bubble p,
.sms-sms-body p {
  margin: 0 0 3px;
  font-size: 13px;
  line-height: 1.4;
}

.sms-sms-bubble p:last-of-type {
  margin-bottom: 0;
}

.sms-sms-bubble a {
  color: var(--sms-sms-link);
  text-decoration: underline;
  font-size: 13px;
  font-weight: 500;
}

.sms-bubble-anim {
  opacity: 0;
  transform: translateX(-12px) scale(0.96);
  animation: sms-bubble-in 0.45s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

@keyframes sms-bubble-in {
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.sms-sms-bubble--out {
  align-self: flex-end;
  margin-left: auto;
  margin-right: 0;
  border-radius: 14px 14px 4px 14px;
  padding: 6px 10px;
  max-width: 78%;
  background: var(--sms-sms-out-bubble-bg);
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
}

.sms-sms-bubble--out a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
}

.sms-sms-bubble--out p {
  color: #fff;
  margin: 0;
  font-size: 13px;
}

.sms-sms-bubble--out.sms-bubble-out-anim {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  animation: sms-bubble-out 0.35s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

@keyframes sms-bubble-out {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Barra de input (iMessage) */
.sms-sms-input-bar {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 6px 8px 10px;
  padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
  background: var(--sms-sms-input-bar-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  min-height: 44px;
  flex-shrink: 0;
}

.sms-sms-input-plus {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: #0a84ff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  pointer-events: none;
}

.sms-sms-input-wrap {
  flex: 1;
  min-height: 32px;
  max-height: 80px;
  padding: 6px;
  background: var(--sms-sms-input-bg);
  border-radius: 18px;
  display: flex;
  align-items: center;
  position: relative;
  font-size: 13px;
  color: var(--sms-sms-input-text);
  line-height: 1.35;
}

.sms-sms-input-wrap--pulsante.is-ready {
  animation: sms-input-pulsante 1.4s ease-in-out infinite;
}

@keyframes sms-input-pulsante {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(10, 132, 255, 0.35);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(10, 132, 255, 0.25), 0 0 14px rgba(10, 132, 255, 0.2);
  }
}

.sms-sms-input-field {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--sms-sms-input-text);
  font-family: inherit;
  outline: none;
}

.sms-sms-input-field::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .sms-sms-input-field::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.sms-sms-input-field.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sms-sms-input-typing {
  display: none;
  align-items: center;
  gap: 4px;
}

.sms-sms-input-typing.is-visible {
  display: flex;
}

.sms-sms-input-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8e8e93;
  animation: sms-typing-dot 1.2s ease-in-out infinite;
}

.sms-sms-input-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.sms-sms-input-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes sms-typing-dot {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }

  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.sms-sms-input-text {
  display: inline;
  white-space: pre-wrap;
  word-break: break-word;
}

.sms-sms-input-wrap .sms-sms-input-text.hidden,
.sms-sms-input-wrap .sms-sms-input-cursor.hidden {
  display: none !important;
}

.sms-sms-input-cursor {
  display: none;
  width: 2px;
  height: 16px;
  background: #0a84ff;
  margin-left: 2px;
  vertical-align: middle;
  animation: sms-cursor-blink 0.9s step-end infinite;
}

.sms-sms-input-cursor.is-visible {
  display: inline-block;
}

@keyframes sms-cursor-blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

.sms-sms-input-send {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: #3a3a3c;
  color: rgba(255, 255, 255, 0.5);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.sms-sms-input-send svg {
  width: 20px;
  height: 20px;
}

.sms-sms-input-send:not(:disabled) {
  background: #0a84ff;
  color: #fff;
}

.sms-sms-input-send:not(:disabled):active {
  transform: scale(0.95);
}

/* ========== RESPONSIVE (CELULAR) ========== */
@media (max-width: 768px) {
  .sms-phone-wrap {
    max-width: 288px;
  }

  .sms-phone-wrapper {
    border-radius: 26px;
    padding: 2px;
  }

  .sms-phone-frame {
    max-width: 262px;
    height: 479px;
    border-radius: 24px;
  }

  .sms-phone-btn-volume-up,
  .sms-phone-btn-volume-down {
    height: 28px;
  }

  .sms-phone-btn-power {
    height: 42px;
  }

  .sms-phone-dynamic-island {
    width: 88px;
    height: 26px;
    border-radius: 14px;
  }
}