/**
 * Estilo do bloco Machen Comparativo
 * Local: seu-tema/blocks/machen-comparativo/style.css
 */

/* ==============================================================================
   FRONT-END LAYOUT
   ============================================================================== */
.machen-comparativo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  width: 100%;
  gap: 30px;
  padding-block: var(--space-5x);
}

.machen-comparativo-content {
  width: 100%;
}

.machen-comparativo-content ul {
  padding: 0 !important;
  margin: 0 !important;
}

.machen-comparativo-content li {
  font-size: var(--font-size-sm) !important;
}

.machen-comparativo-content ul.wp-block-list {
  margin: 0;
  padding-left: 20px;
}

/* Estilo do título da coluna (linhas sem traço) */
.machen-comparativo-content h4.machen-comparativo-col-title {
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
}

.machen-seta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.machen-seta svg {
  width: 50%;
  height: auto;
}

@media (max-width: 781px) {
  .machen-comparativo {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .machen-seta svg {
    transform: rotate(90deg);
  }
}

/* ==============================================================================
   EDITOR GUTENBERG LAYOUT (Textareas com Seta central)
   ============================================================================== */

/* Garante que o bloco pai ocupe toda a largura disponível no editor */
.wp-block[data-type="machen/comparativo"] {
  max-width: 1000px !important;
  width: 100% !important;
}

.machen-comparativo-editor {
  display: grid !important;
  grid-template-columns: 1fr 60px 1fr !important;
  align-items: center !important;
  gap: 20px !important;
  width: 100% !important;
  padding: 20px !important;
  background-color: #f9f9f9 !important;
  border: 1px dashed #ccc !important;
  border-radius: 8px !important;
}

.machen-comparativo-col-editor {
  width: 100% !important;
}

/* Estilo do label e textarea da coluna */
.machen-comparativo-col-editor label {
  font-weight: bold !important;
  color: #333 !important;
  display: block !important;
  margin-bottom: 8px !important;
}

.machen-comparativo-col-editor textarea {
  min-height: 200px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  width: 100% !important;
  padding: 10px !important;
  border: 1px solid #757575 !important;
  border-radius: 4px !important;
  background-color: #ffffff !important;
}

.machen-seta-editor {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.machen-seta-editor svg {
  width: 32px !important;
  height: auto !important;
  opacity: 0.5 !important;
}

@media (max-width: 781px) {
  .machen-comparativo-editor {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .machen-seta-editor svg {
    transform: rotate(90deg) !important;
  }
}
