/* 
Theme Name: Acconfis
Description: Tema desenvolvido exclusivamente para acconfis.
Author: JP Infoweb
Author URI: https://jpinfoweb.com.br/
Template: hello-elementor
Version: 2.0.0
Text Domain: acconfis
*/

/* Add your custom styles here */

/* ===== Base ===== */
.tickera table.event_tickets {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* evita estourar a largura */
}
.tickera table.event_tickets th,
.tickera table.event_tickets td {
  padding: 12px 10px;
  border: 1px solid #eee;
  text-align: left;
  vertical-align: middle;
  box-sizing: border-box;
  word-wrap: break-word;
}
.tickera .tc-wb-add-to-cart .button {
  display: inline-block;
}

/* ajuda a segurar qualquer estourinho de largura local */
.tickera {
  overflow-x: hidden;
}

/* ===== Mobile (≤ 640px): cartões ===== */
@media (max-width: 640px) {
  /* some o cabeçalho (seja em thead ou a 1ª linha com th dentro do tbody) */
  .tickera table.event_tickets thead {
    display: none;
  }
  .tickera table.event_tickets tr:first-child th,
  .tickera table.event_tickets tr:first-child {
    display: none;
  }

  .tickera table.event_tickets,
  .tickera table.event_tickets tbody {
    display: block;
  }

  .tickera table.event_tickets tr {
    display: block;
    border: 1px solid #eee;
    margin: 0 0 12px;
  }

  .tickera table.event_tickets td {
    display: block;
    position: relative;
    border: none;
    border-bottom: 1px solid #f5f5f5;
    padding: 12px 10px 12px 42%; /* espaço pro rótulo à esquerda */
    min-height: 44px;
  }
  .tickera table.event_tickets td:last-child {
    border-bottom: none;
  }

  /* rótulo padrão (pega do data-column) */
  .tickera table.event_tickets td::before {
    content: attr(data-column);
    position: absolute;
    left: 10px;
    top: 12px;
    width: 32%;
    font-weight: 600;
    color: #555;
    white-space: normal;
  }

  /* Força PT-BR sem mexer no HTML (se o data-column vier em inglês) */
  .tickera table.event_tickets tr td:nth-child(1)::before {
    content: 'Tipo';
  }
  .tickera table.event_tickets tr td:nth-child(2)::before {
    content: 'Preço';
  }
  .tickera table.event_tickets tr td:nth-child(3)::before {
    content: 'Quantidade';
  }
  .tickera table.event_tickets tr td:nth-child(4)::before {
    content: 'Carrinho';
  }

  /* inputs e botão full width no mobile */
  .tickera .quantity input[type='number'] {
    width: 100%;
    max-width: none;
  }
  .tickera .tc-wb-add-to-cart .button {
    width: 100%;
    display: block;
    text-align: center;
  }

  /* deixa o preço quebrar linha se precisar (evita overflow) */
  .tickera .woocommerce-Price-amount {
    white-space: normal;
  }
}
