/* Facebook Messenger Exit Card Styles for iOS */
.messenger-card-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #F0F2F5;
  padding: 20px;
  font-family: 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.messenger-exit-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  max-width: 380px;
  width: 100%;
  overflow: hidden;
  animation: slideUp 0.4s ease-out;
}

.messenger-container {
  max-width: 380px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
  position: relative;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.messenger-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  min-height: 40px;
}

.messenger-icon, .line-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.messenger-logo, .line-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  margin: 0;
  padding: 0;
}

.arrow-right {
  color: #1C1E21;
  font-size: 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
  margin: 0 4px;
}

.messenger-title {
  text-align: center;
  font-family: 'IBM Plex Sans Thai', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0%;
  color: #000000;
  margin-bottom: 4px;
}

.messenger-subtitle {
  text-align: center;
  font-family: 'IBM Plex Sans Thai', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0%;
  color: #000000;
  margin-bottom: 12px;
}

.messenger-body {
  padding: 24px 20px 20px;
}

.step-card {
  background: white;
  border: 1px solid #E4E6EA;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.step-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.instruction-text {
  font-size: 14px;
  color: #65676B;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

.step-container {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
}

.step-container:last-of-type {
  margin-bottom: 28px;
}

.step-number {
  background: #0084FF;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content {
  flex: 1;
}

.step-title {
  font-family: 'IBM Plex Sans Thai', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%;
  color: #101828;
  margin-bottom: 12px;
}

.step-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bottom-nav-img {
  max-width: 200px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-images {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.browser-option {
  background: #F8F9FA;
  border-radius: 8px;
  padding: 8px;
  border: 1px solid #E4E6EA;
}

.browser-option-img {
  max-width: 200px;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.bottom-arrow-container {
  position: absolute;
  bottom: 0px;
  right: -50px;
  pointer-events: none;
}

.bottom-arrow {
  width: 50px;
  height: 60px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transform: rotate(45deg);
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) rotate(45deg);
  }
  40% {
    transform: translateY(-8px) rotate(45deg);
  }
  60% {
    transform: translateY(-4px) rotate(45deg);
  }
}

.messenger-footer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #F8F9FA;
  padding: 16px;
  border-radius: 8px;
  margin-top: 8px;
}

.footer-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-text {
  font-size: 13px;
  color: #65676B;
  line-height: 1.4;
}

/* Mobile Responsive */
@media screen and (max-width: 480px) {
  .messenger-card-wrapper {
    padding: 16px;
  }
  
  .messenger-exit-card {
    max-width: 100%;
  }
  
  .messenger-header {
    padding: 20px 16px;
  }
  
  .messenger-title {
    font-size: 15px;
  }
  
  .messenger-body {
    padding: 20px 16px 16px;
  }
  
  .step-container {
    gap: 12px;
  }
  
  .step-title {
    font-size: 14px;
  }
  
  .bottom-nav-img {
    max-width: 160px;
  }
  
  .browser-option-img {
    max-width: 160px;
  }
  
  .hand-arrow {
    width: 32px;
    height: 32px;
  }
}
