.inscricao .wp-block-button__link {
	padding-right: 50px;
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	justify-content: center;
	position: relative;
}

.inscricao .wp-block-button__link::after {
	content: '';
	background-image: url('https://brasil.wordcamp.org/2025/files/2025/10/chevron-2x.png');
	background-size: contain;
	display: flex;
	position: absolute;
	right: 15px;
	width: 20px;
	height: 20px;
}

header:has(>.is-position-sticky) {
	position: sticky;
	top: calc(0px + var(--wp-admin--admin-bar--height, 0px));
	z-index: 100;
}

@media(min-width:600px) {
	.mobile-visible {
		visibility: hidden;
		display: none;
	}
	
	.mobile-hidden {
		visibility: visible;
	}
}

@media(max-width:599px) {
	.mobile-visible {
		visibility: visible;
	}
	
	.mobile-hidden {
		visibility: hidden;
		display: none;
	}
}

.wp-block-cover.brilho-4 img {
	filter: brightness(40%);
}

/* Adiciona estilos básicos para inputs */
input {
	font-family: inherit;
	padding: 1em;
}

table.tix_tickets_table {
	border: 1px solid;
	border-radius: 4px;
	border-spacing: 0;
	font-size: var(--wp--preset--font-size--medium);
	margin-bottom: 1em;
	text-align: left;
	width: 100%;
}

/* Ingresso - Escolha do tipo de ingresso: Container principal em formato de cards empilhados no mobile */
.tix_tickets_table.tix-tickets-list {
	display: block;
	width: 100%;
	border: none;
}

/* Ingresso - Escolha do tipo de ingresso: Esconde o cabeçalho da tabela no mobile */
.tix_tickets_table.tix-tickets-list thead {
	display: none;
}

/* Ingresso - Escolha do tipo de ingresso: Tbody como container de cards no mobile */
.tix_tickets_table.tix-tickets-list tbody {
	display: block;
}

/* Ingresso - Escolha do tipo de ingresso: Cada linha vira um card individual com borda no mobile */
.tix_tickets_table.tix-tickets-list tbody tr {
	display: block;
	margin-bottom: 1.5rem;
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 4px;
	padding: 1rem;
}

/* Ingresso - Escolha do tipo de ingresso: Remove borda e padding da última linha (cupom) no mobile */
.tix_tickets_table.tix-tickets-list tbody tr:last-child {
	border: none;
	padding: 0;
}

/* Ingresso - Escolha do tipo de ingresso: Células empilhadas verticalmente no mobile */
.tix_tickets_table.tix-tickets-list td,
.tix_tickets_table.tix-tickets-list th {
	display: block;
	width: 100%;
	text-align: left;
	padding: .5rem 0;
}

/* Ingresso - Escolha do tipo de ingresso: Adiciona label "Preço:" antes do valor no mobile */
.tix_tickets_table.tix-tickets-list .tix-column-price::before {
	content: "Preço: ";
	font-weight: bold;
}

/* Ingresso - Escolha do tipo de ingresso: Adiciona label "Restante:" antes do valor no mobile */
.tix_tickets_table.tix-tickets-list .tix-column-remaining::before {
	content: "Restante: ";
	font-weight: bold;
}

/* Ingresso - Escolha do tipo de ingresso: Adiciona label "Quantidade:" antes do select no mobile */
.tix_tickets_table.tix-tickets-list .tix-column-quantity::before {
	content: "Quantidade: ";
	font-weight: bold;
	display: block;
	margin-bottom: .5rem;
}

/* Ingresso - Escolha do tipo de ingresso: Select de quantidade ocupa largura total até 200px */
.tix_tickets_table.tix-tickets-list select {
	width: 100%;
	max-width: 200px;
}

/* Ingresso - Escolha do tipo de ingresso: Restaura formato tabela tradicional no desktop */
@media (min-width: 768px) {
	/* Ingresso - Escolha do tipo de ingresso: Volta ao display table no desktop */
	.tix_tickets_table.tix-tickets-list {
		display: table;
		border: 1px solid var(--wp--preset--color--contrast);
	}
	
	/* Ingresso - Escolha do tipo de ingresso: Mostra cabeçalho da tabela no desktop */
	.tix_tickets_table.tix-tickets-list thead {
		display: table-header-group;
	}
	
	/* Ingresso - Escolha do tipo de ingresso: Tbody volta ao comportamento padrão no desktop */
	.tix_tickets_table.tix-tickets-list tbody {
		display: table-row-group;
	}
	
	/* Ingresso - Escolha do tipo de ingresso: Linhas voltam ao formato tabela sem bordas individuais no desktop */
	.tix_tickets_table.tix-tickets-list tbody tr {
		display: table-row;
		margin-bottom: 0;
		border: none;
		padding: 0;
	}
	
	/* Ingresso - Escolha do tipo de ingresso: Células voltam ao comportamento padrão de tabela no desktop */
	.tix_tickets_table.tix-tickets-list td,
		.tix_tickets_table.tix-tickets-list th {
		display: table-cell;
		width: auto;
		padding: 1rem;
	}
	
	/* Ingresso - Escolha do tipo de ingresso: Remove labels gerados por CSS no desktop (cabeçalho já está visível) */
	.tix_tickets_table.tix-tickets-list .tix-column-price::before,
		.tix_tickets_table.tix-tickets-list .tix-column-remaining::before,
		.tix_tickets_table.tix-tickets-list .tix-column-quantity::before {
		content: none;
	}
}

/* Estiliza o cabeçalho das tabelas */
.tix-order-summary thead tr:first-child th,
.tix_tickets_table.tix-attendee-form tbody tr:first-child th,
.tix_tickets_table thead th {
	background: var(--wp--preset--color--accent-5);
	color: #fff;
	padding: 1rem;
	text-align: left;
}

/* Garante que todo cabeçalho esteja em negrito */
.tix-tickets-list thead .tix-column-description {
	font-weight: bold;
}

/* Alterna cores entre linhas da tabela */
.tix_tickets_table tr:nth-child(odd) {
	background: rgba(255,255,255, 0.8);
}

/* Estiliza a descrição de cada ingresso */
span.tix-ticket-excerpt {
	font-size: .875em;
}

.tix_tickets_table td,
.tix_tickets_table th {
	padding: 1rem;
}

.tix_tickets_table td input {
	font-family: inherit;
	padding: 1rem;
}

/* Aplicar flex em todas as tr do tbody, exceto a primeira */
.tix_tickets_table.tix-attendee-form tbody tr:not(:first-child) {
	display: flex;
	flex-direction: column;
	margin-bottom: 1.5rem;
}

.tix_tickets_table.tix-attendee-form td {
	display: block;
	width: 100%;
	padding: 1rem;
	box-sizing: border-box;
}

/* Fieldsets responsivos */
.tix_tickets_table.tix-attendee-form fieldset {
	width: 100%;
	border: none;
	padding: 0;
	margin: 0;
}

/* Inputs e selects ocuparem largura total */
.tix_tickets_table.tix-attendee-form input[type="text"],
.tix_tickets_table.tix-attendee-form input[type="email"],
.tix_tickets_table.tix-attendee-form input[type="url"],
.tix_tickets_table.tix-attendee-form select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Layout duas colunas em telas maiores */
@media (min-width: 768px) {
	.tix_tickets_table.tix-attendee-form tbody tr:not(:first-child) {
		flex-direction: row;
	}
	
	.tix_tickets_table.tix-attendee-form td.tix-left {
		width: 40%;
		flex-shrink: 0;
	}
	
	.tix_tickets_table.tix-attendee-form td.tix-right {
		width: 60%;
		flex-grow: 1;
	}
}

/* Adiciona cursor para checkboxes */
.tix_tickets_table fieldset label:hover,
.tix_tickets_table input[type="checkbox"] + label:hover {
	cursor: pointer;
}

/* Altera padrão dos botões */
#tix .tix-submit .tix-checkout-button,
#tix input[type="submit"] {
	background: var(--wp--preset--color--accent-1);
	border: 0;
	border-radius: 4px;
	color: var(--wp--preset--color--base);
	font-size: inherit;
	letter-spacing: 0;
	padding: 15px 23px;
	text-transform: none;
}

/* Esconde abas de pagamento acima do botão "Finalizar compra" */
.tix-payment-method .tix-payment-tab {
	display: none;
}

/* Altera visual dos avisos de ingressos */
#tix .tix-error,
#tix .tix-notice,
#tix .tix-info {
	padding: 16px;
	border-radius: 4px;
}

/* Finalizar compra: Adiciona aviso de formas de pagamento próximo ao botão */
#tix .tix-submit:after {
	content: "Opções: cartão de crédito, boleto e Google Pay (com suporte a Pix)";
	display: inline-block;
	font-size: .875em;
	margin-top: 1em;
	width: 50%;
}

/* Ingresso comprado: Estilos da tabela */
.tix-ticket-form {
	border: 1px solid;
	border-radius: 4px;
	border-spacing: 0;
	margin-bottom: 3em;
	width: 100%;
}

.tix-ticket-form thead {
	background: var(--wp--preset--color--accent-5);
	color: #fff;
}

.tix-ticket-form td,
.tix-ticket-form th {
	padding: 1em;
}

.tix-ticket-form a {
	font-size: .875em;
}

/* Fim -- Ingresso comprado: Estilos da tabela */
ul.wp-block-list {
	padding-left: 15px;
}