/**
 * Estilos do Frontend — Bidelait Ingressos QRCode
 * Layout Mobile e Desktop de Cartões Digitais de Ingresso (Minha Conta / Pedidos)
 */

/* Seção Dedicada de Ingressos Abaixo da Tabela do Pedido */
.bd-customer-tickets-section {
	width: 100%;
	clear: both;
	margin-top: 28px;
	display: block;
}

/* Container Principal na Página do Pedido */
.bd-customer-tickets-container {
	margin-top: 0;
	margin-bottom: 24px;
	padding: 22px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.bd-customer-tickets-title {
	margin: 0 0 18px 0;
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 8px;
}

.bd-customer-tickets-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: flex-start;
}

/* Cartão Digital do Ingresso (Mobile Pass Style) */
.bd-ticket-mobile-card {
	background: #ffffff;
	border: 1.5px solid #0056b3;
	border-radius: 16px;
	overflow: hidden;
	width: 100%;
	max-width: 290px;
	box-shadow: 0 6px 18px rgba(0, 86, 179, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.bd-ticket-mobile-card * {
	box-sizing: border-box;
}

.bd-ticket-mobile-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 86, 179, 0.13), 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* 1. Barra Superior Colorida (Header) */
.bd-ticket-mobile-header {
	background-color: #0056b3;
	color: #ffffff;
	padding: 12px 14px 10px 14px;
	text-align: left;
}

.bd-ticket-mobile-header .bd-tm-top-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 6px;
	margin-bottom: 2px;
}

.bd-ticket-mobile-header .bd-tm-title {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	opacity: 0.92;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: left;
}

.bd-ticket-mobile-header .bd-tm-date-top {
	font-size: 11px;
	opacity: 0.92;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: right;
}

.bd-ticket-mobile-header .bd-tm-sector-lote {
	font-size: 14.5px;
	font-weight: 800;
	line-height: 1.25;
	margin: 2px 0 4px 0;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	word-break: break-word;
}

.bd-ticket-mobile-header .bd-tm-gate-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 11px;
	opacity: 0.95;
	font-weight: 600;
	line-height: 1.2;
	margin-top: 2px;
	gap: 6px;
}

.bd-ticket-mobile-header .bd-tm-gate {
	font-size: 11px;
	opacity: 0.95;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: left;
}

.bd-ticket-mobile-header .bd-tm-entry {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	text-align: right;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* 2. Área Central do QR Code */
.bd-ticket-mobile-qr-body {
	padding: 12px 14px 12px 14px;
	text-align: center;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.bd-ticket-mobile-qr-body .bd-tm-number-top {
	font-size: 12px;
	font-weight: 700;
	color: #334155;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
	text-align: center;
	line-height: 1.2;
}

.bd-ticket-mobile-qr-img {
	width: 190px;
	height: 190px;
	max-width: 100%;
	display: block;
	margin: 0 auto;
	border-radius: 4px;
	image-rendering: -webkit-optimize-contrast;
	image-rendering: crisp-edges;
}

/* 3. Rodapé com Metadados */
.bd-ticket-mobile-footer {
	padding: 10px 14px 12px 14px;
	background: #ffffff;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	border-top: 1px dashed #e2e8f0;
	font-size: 11px;
	line-height: 1.35;
}

.bd-ticket-mobile-footer .bd-tm-footer-left {
	text-align: left;
	max-width: 54%;
}

.bd-ticket-mobile-footer .bd-tm-holder {
	font-weight: 700;
	color: #1e293b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 11.5px;
}

.bd-ticket-mobile-footer .bd-tm-cpf {
	color: #64748b;
	font-size: 10.5px;
	font-weight: 500;
	margin-top: 1px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bd-ticket-mobile-footer .bd-tm-footer-right {
	text-align: right;
	max-width: 44%;
}

.bd-ticket-mobile-footer .bd-tm-subinfo,
.bd-ticket-mobile-footer .bd-tm-seat {
	font-size: 11px;
	color: #64748b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bd-ticket-mobile-footer .bd-tm-gate-opening {
	font-size: 10px;
	color: #64748b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-top: 1px;
}

.bd-ticket-mobile-footer .bd-tm-date {
	font-weight: 800;
	color: #0f172a;
	font-size: 10.5px;
	text-transform: uppercase;
	white-space: nowrap;
	margin-top: 1px;
}

/* 4. Barra de Ações (Download do PDF) */
.bd-ticket-mobile-actions {
	padding: 0 14px 14px 14px;
	background: #ffffff;
}

.bd-ticket-mobile-btn-download {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	padding: 9px 12px;
	background: #f1f5f9;
	color: #0056b3;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 11.5px;
	font-weight: 700;
	text-decoration: none !important;
	transition: all 0.2s ease;
	cursor: pointer;
}

.bd-ticket-mobile-btn-download:hover,
.bd-ticket-mobile-btn-download:focus {
	background: #0056b3;
	color: #ffffff !important;
	border-color: #0056b3;
	text-decoration: none !important;
}

/* Retrocompatibilidade com seletores legados */
.qrcode_pedido,
.bd_ingressos_order {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
}

.db_pdf_down {
	margin-top: 7px;
}

span.bd-qrcode.qrcode-img {
	display: none;
}

span#html5-qrcode-anchor-scan-type-change {
	display: none;
}

/* Responsividade Mobile */
@media (max-width: 640px) {
	.bd-customer-tickets-container {
		padding: 14px;
		margin-top: 16px;
		margin-bottom: 16px;
	}

	.bd-customer-tickets-grid {
		justify-content: center;
		gap: 16px;
	}

	.bd-ticket-mobile-card {
		max-width: 100%;
	}

	.bd-ticket-mobile-qr-img {
		width: 210px;
		height: 210px;
	}
}