@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
  font-family: 'Inter', sans-serif;
}

/* Overlay do Modal */

.channel-flow-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Corpo do Modal */

.channel-flow-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  max-height: 65vh;
}

.channel-flow-modal-content {
  background: white;
  border-radius: 20px;
  max-width: 520px;
  max-height: 90vh;
  overflow: hidden;
  width: 92%;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
}

.channel-flow-modal-content--large {
  max-width: 760px;
}

/* Header do Modal */

.channel-flow-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.channel-flow-header-content {
  flex: 1;
}

.channel-flow-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.channel-flow-modal-subtitle {
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 0.85rem;
}

/* Barra de Progresso */

/* Rodapé do Modal */

.channel-flow-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid #f1f5f9;
}

/* Botões */

.channel-flow-btn {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.channel-flow-btn-next {
  background-color: #2563eb;
  color: white;
  font-size: 0.9rem;
  padding: 0.6rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.channel-flow-btn-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.channel-flow-btn-next:hover:not(:disabled) {
  background-color: #1d4ed8;
  transform: translateY(-1px);
}

.channel-flow-btn-secondary {
  background-color: #f8fafc;
  color: #64748b;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.channel-flow-btn-secondary:hover {
  background-color: #e2e8f0;
  color: #334155;
  transform: translateY(-1px);
}

.channel-flow-btn-success {
  background-color: #48bb78;
  color: white;
}

.channel-flow-btn-success:hover {
  background-color: #38a169;
}

/* Botão de Fechar */

.channel-flow-close-button {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.channel-flow-close-button svg {
  stroke: #4a5568;
  width: 24px;
  height: 24px;
}

.channel-flow-close-button:hover svg {
  stroke: #e9403a;
}

.channel-flow-close-button:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.channel-flow-close-button:focus {
  outline: none;
}

/* Transição do Modal */

.channel-flow-modal-fade-enter-active,
.channel-flow-modal-fade-leave-active {
  transition: opacity 0.3s ease;
}

.channel-flow-modal-fade-enter-from,
.channel-flow-modal-fade-leave-to {
  opacity: 0;
}

/* Step 1 - criação */

.channel-create-step {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.channel-create-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-create-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.channel-create-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.channel-create-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.channel-create-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 768px) {
  .channel-create-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.channel-create-card {
  width: 100%;
  border: 2px solid transparent;
  border-radius: 16px;
  background: #f8fafc;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.channel-create-card:hover {
  background: #fff;
  border-color: #bfdbfe;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.channel-create-card.is-selected {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.channel-create-card.is-legacy {
  opacity: 0.7;
}

.channel-create-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}

.channel-create-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #64748b;
}

.channel-create-icon.is-green { background: #dcfce7; color: #16a34a; }

.channel-create-icon.is-pink { background: #ffe4e6; color: #db2777; }

.channel-create-icon.is-blue { background: #dbeafe; color: #2563eb; }

.channel-create-icon.is-gray { background: #e2e8f0; color: #64748b; }

.channel-create-icon.is-rcs { background: #f0fdf4; color: #059669; }

.channel-create-icon-svg {
  width: 24px;
  height: 24px;
}

.channel-create-content h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
}

.channel-create-content p {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
}

.channel-create-check {
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s ease;
  color: #2563eb;
}

.channel-create-check.is-visible {
  opacity: 1;
  transform: scale(1);
}

.channel-create-check-icon {
  width: 22px;
  height: 22px;
}

/* Step 2 - ativação */

.channel-activation-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 12px 0 24px;
}

.channel-activation-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}

.channel-activation-icon-svg {
  width: 32px;
  height: 32px;
}

.channel-activation-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
}

.channel-activation-description {
  margin: 0;
  max-width: 420px;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

.channel-activation-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  border: none;
  background: #1877f2;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 12px 20px rgba(24, 119, 242, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
}

.channel-activation-button:hover:not(:disabled) {
  background: #166fe5;
  transform: translateY(-1px);
}

.channel-activation-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.channel-activation-icon.is-whatsapp {
  background: #dcfce7;
  color: #16a34a;
}

.channel-activation-icon.is-instagram {
  background: #ffe4e6;
  color: #db2777;
}

.channel-activation-icon.is-facebook {
  background: #dbeafe;
  color: #2563eb;
}

.channel-activation-button.is-whatsapp {
  background: #25d366;
  box-shadow: 0 12px 20px rgba(37, 211, 102, 0.25);
}

.channel-activation-button.is-whatsapp:hover:not(:disabled) {
  background: #1fb957;
}

.channel-activation-button.is-instagram {
  background: #e11d48;
  box-shadow: 0 12px 20px rgba(225, 29, 72, 0.25);
}

.channel-activation-button.is-instagram:hover:not(:disabled) {
  background: #be123c;
}

.channel-activation-button.is-facebook {
  background: #1877f2;
  box-shadow: 0 12px 20px rgba(24, 119, 242, 0.25);
}

.channel-activation-button.is-facebook:hover:not(:disabled) {
  background: #166fe5;
}

.channel-activation-button-icon {
  width: 20px;
  height: 20px;
}

.channel-activation-hint {
  font-size: 0.75rem;
  color: #94a3b8;
}

.channel-activation-qr {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px dashed #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.channel-activation-qr-img {
  width: 260px;
  height: 260px;
  -o-object-fit: contain;
     object-fit: contain;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 8px;
}

.channel-activation-qr-loading,
.channel-activation-qr-placeholder {
  color: #64748b;
  font-size: 0.85rem;
}

.required {
  color: #ef4444;
}

.channel-activation-iframe[data-v-9917677c] {
  width: 100%;
  min-height: 360px;
  border: none;
  background: transparent;
  display: block;
}
