@media only screen and (max-width: 800px) {

	/* Force table to not be like tables anymore */
	.table-bordered{ border:0; }
	#responsive-table table,
	#responsive-table thead,
	#responsive-table tbody,
	#responsive-table th,
	#responsive-table td,
	#responsive-table tr {
		display: block;
	}
	.promocao{
            padding: 15px 0 0 0 !important;
        }

	/* Hide table headers (but not display: none;, for accessibility) */
	#responsive-table thead tr {
		position: absolute;
		top: -9999px;
		left: -9999px;
	}


	#responsive-table tr { border: 1px solid #ccc; }

	#responsive-table td.tit-responsive {
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee;
		position: relative;

		white-space: normal;
		text-align:left;
	}

	#responsive-table td.tit-responsive:before{
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 6px;
		left: 6px;
		width: 45%;
		padding-right: 10px;
		white-space: nowrap;
		text-align:left;
		font-weight: bold;
	}

	/*
	Label the data
	*/
	#responsive-table td.tit-responsive:before { content: attr(data-title); }

	/* titulo do ingresso */
	.box-carrinho .titulo-setor{

		/*background-image:url(../../images/widgets/bg-quadrado.png);*/
		font-size:12px; font-family:'OpenSansBold'; padding:5px;
		background-color: #f9f9f9; color: #919191; text-align: center;
	}
        .box-carrinho .titulo-setor-zfest{
            /*background-image:url(../../images/widgets/bg-quadrado.png);*/
            font-size:12px; font-family:'OpenSansBold'; padding:30px  !important;
            background-color: #f9f9f9; text-align: left;
	}
        .tit-setor{
            background-color: #919191; border-radius: 5px;
            color: white;padding: 2px;
        }
	.coluna-ingresso{
		padding:0px !important;
	}
	.lote-ingresso{
		color: #ff0518; font-size: 9px;
	}
	/* Codigo promocional */
	.tr-codigo-promocional{
		text-align:center;
	}

	.btn-codigo-promocional{
		background-color: #00af42;
	}
	.btn-codigo-promocional:hover{
		background-color: #00af42;
	}

	.g-recaptcha{
		/*height:90px;*/
	}

	/* Total */
	.box-total{
		margin-top:20px;
	}


	.box-carrinho .box-total b{
		text-align:center !important;
	}
	#total_geral{
		font-size:32px; font-family:'OpenSansBold';
	}


}

/* Btn adicionar, remover e marcador quantidade ingresso */
.box-carrinho .btn-adicionar-carrinho, .box-carrinho .btn-remover-carrinho{
	background-color:#ffffff; margin-top:-5px;
}

.box-carrinho .btn-adicionar-carrinho{
	color: #00af42;
}

.box-carrinho .btn-remover-carrinho{
	color: #d9d9dc;
}
.box-carrinho .btn-remover-carrinho i, .box-carrinho .btn-adicionar-carrinho i{
    font-size: 25px;
}
.box-carrinho .qtd_ingresso, .box-carrinho .btn-adicionar-carrinho, .box-carrinho .btn-remover-carrinho{
	font-family:'OpenSansBold'; width:25px; height:25px; text-align:center;
	font-size:15px; margin:0; padding:0; border:0;
}

.box-carrinho .qtd_ingresso{
	background-color:#ffffff; color: black;
}



/* Header da tabela */
.box-carrinho thead.cf{
	background-color: #f9f9f9; color: #919191; font-family:'OpenSansLight'; font-size:12px;

}

.box-carrinho .table-bordered > thead > tr > th{
	border:0; color:white; font-weight:100;
	font-family:'OpenSansLight'; text-transform:uppercase;
}

/* Linhas e colunas gerais */
.box-carrinho thead.cf td{
	border:0;
}

.box-carrinho tr{
	border-bottom:solid 1px #E2E2E2;
}

/* Entrega */

.td-entrega-total select{
	background:#DDDDDD; border:solid 1px #909090; font-size:12px; padding:20px 0;
}

.td-entrega-total p.titulo-entrega{
	font-size:16px; font-weight:bold;
}

.td-entrega-total{
	border-top: none;
}

#responsive-table tr.tr-codigo-promocional td, #responsive-table tr.tr-entrega-total td{
	padding:20px 15px;
}

.td-total div:nth-child(1){
	font-family:'OpenSansBold';
}

#botao-comprar{
	background-color: #00af42; color:white; padding:15px 0px;
	font-size:15px; font-family:OpenSansBold; width:100%;
}
.tr-codigo-promocional td {
	background-color: white; font-size: 16px; font-weight: normal;
}
.box-total{
	color: #00af42; font-size: 20px;
}
.map-l{
	width: 80%;

}
.map-z{
     padding-bottom: 10px;
}
.btn-codigo-promocional{
	background-color: #00af42; padding: 7px;
}
.btn-codigo-promocional:hover{
	background-color: #00af42; padding: 7px;
}


@media only screen and (min-width: 800px) {

	.box-carrinho .titulo-setor{
		font-size:12px;
		background-color: #f9f9f9; color: #919191; padding:5px;text-align: center;

	}
        .box-carrinho .titulo-setor-zfest{
	    font-size: 16px;
            background-color: #f9f9f9;
            padding: 15px;
	}
         .tit-setor{
            background-color: #919191; border-radius: 5px;
            color: white; padding: 2px;
        }
        .promocao{
            padding: 15px 0 0 0 !important;
        }
	#qt-cliente{
		padding-left: 45%;
	}
	.titulo-setor label{
		text-align: center;
	}

	.lote-ingresso{
		color: #ff0518; font-size: 10px; font-weight: bold;
	}

	.box-carrinho .box-total div:nth-child(1){
		text-align:right;
	}

	.box-total div:nth-child(1) p{
		padding-top:11px;
	}

	/* Total */
	#total_geral{
		font-size:25px; font-family:OpenSansBold;
	}

	.g-recaptcha{
		/*height:90px; margin:10px 0px 0px 35.5%;*/
	}

	.tr-codigo-promocional .form-group{
		height:auto; overflow:hidden;
	}

}

.info-carrinho{
	padding-top:20%;
	white-space: nowrap;
}
.ingresso-inteira {
	display: none;
}
.carrinho-ingresso-info {
	font-size: 12px;
    position: relative;
	padding: 0 10px;
	display: block;
}
.mapa-lugares{
	border: 1px solid; border-radius: 5px; border-color: #00af42; color: #00af42;
	font-size: 12px;text-align: center;  padding: 7px; margin: 0 15px 0 45px !important;

}

.mapa-lugares a{
	text-decoration: none; color: #00af42; font-weight: bold; text-align: center;
	height: 35px; padding: 10px; text-transform: uppercase;
}
.mapa-lugares a:hover{
	color: #00af42;  text-decoration: none;
}
/*.linhaIngressoTr{
	border-bottom:1px solid #919191 !important;
	}*/
	.carrinho-tit{
		border-top: 1px solid #e6e6e6 !important;

	}
	.cod-promo{
		padding: 15px 0;
	}
	.captchaBeneficio_box, #captchaConvite_box, #captchaCodigoPromocional_box {
		display: none;
	}

	@media only screen and (min-width: 1169px) {
            .box-carrinho{
                width: 660px;
            }

        }

        .text-green {
            color: #00af42;
        }
        .icon-zfest{
            padding: 0px 10px;
            cursor: pointer;
        }

        /* ===== Destaque de setor/ingresso liberado pelo benefício ===== */
        /* Tom dourado configurável via custom properties */
        :root {
            --beneficio-dourado: #c8a13a;
            --beneficio-dourado-escuro: #8a6d1f;
            --beneficio-fundo: #fcf7e8;
        }

        /* Ingresso liberado: borda esquerda dourada + fundo creme suave */
        .linhaIngressoTr.ingresso-beneficio {
            background-color: var(--beneficio-fundo) !important;
            border-left: 4px solid var(--beneficio-dourado) !important;
            padding-left: 12px;
        }

        /* Setor que contém ingressos liberados: linha esquerda dourada.
           !important + especificidade para vencer .group-header.active,
           que zera as bordas quando o setor está aberto. */
        #responsive-table .row.group-header.setor-beneficio {
            border-left: 4px solid var(--beneficio-dourado) !important;
        }

        /* Selo "Benefício" — mesmo padrão do badge de lote (badge-lote),
           porém em dourado. */
        .selo-beneficio {
            font-family: 'VinilaVariable', OpenSansRegular, sans-serif;
            display: inline-flex;
            justify-content: center;
            align-items: center;
            height: 26px;
            padding: 10px;
            margin-right: 9px;
            border-radius: 2px;
            background-color: var(--beneficio-dourado);
            color: #ffffff;
            font-size: 12px;
            line-height: 1;
            font-weight: 700;
            text-transform: uppercase;
            white-space: nowrap;
            vertical-align: middle;
            flex-shrink: 0;
            align-self: flex-start;
        }

        /* No título do ingresso o selo fica logo após o nome */
        .ingresso-titulo .selo-beneficio {
            margin-left: 9px;
        }

/* Modal do mapa: seletor de setores numa coluna à ESQUERDA e o mapa ao lado,
   como o filtro nativo do Seats.io — o painel tem espaço próprio, sem cobrir
   lugares (overlay sobre o mapa escondia assentos). O seletor é próprio porque
   o filtro nativo não avisa a página quando o usuário troca a seleção. Para o
   mapa não ficar apertado nessa divisão, a modal usa modal-xl (bem mais larga). */
.seats-modal-body {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 16px;
}

/* Sem altura explícita o chart cai em fitTo:"width" e deriva a altura da
   largura, o que deixa o mapa baixo demais para o popover de ingressos abrir
   inteiro. Com altura definida ele passa a usar todo o espaço da modal. */
#seatsMapModal {
    flex: 1 1 auto;
    min-width: 0;
    height: 65vh;
    min-height: 320px;
}

.modal-fullscreen #seatsMapModal {
    height: 100%;
}

/* Coluna lateral à esquerda (order:-1, já que no DOM o mapa vem primeiro).
   Largura fixa, rola na vertical se os setores não couberem na altura. */
.seats-setores-filtro {
    order: -1;
    flex: 0 0 210px;
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}

.seats-setores-filtro:empty {
    display: none;
}

/* No desktop o gatilho do dropdown fica escondido; a lista aparece sempre. */
.seats-setores-toggle {
    display: none;
}

.seats-setores-lista {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.seats-setor-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    background-color: #ffffff;
    color: #333333;
    text-align: left;
    cursor: pointer;
    flex-shrink: 0;
}

.seats-setor-btn:hover {
    border-color: #9a9a9a;
}

.seats-setor-btn.ativo {
    border-color: #333333;
    box-shadow: inset 0 0 0 1px #333333;
    font-weight: 700;
}

/* Bolinha com a cor da categoria no mapa. Fica sem preenchimento até o
   rendering-info responder — a borda mantém o círculo visível. */
.seats-setor-cor {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background-color: transparent;
    flex-shrink: 0;
}

.seats-setor-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.seats-setor-nome {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seats-setor-preco {
    font-size: 11px;
    font-weight: 400;
    color: #6b6b6b;
    white-space: nowrap;
}

/* No mobile o overlay flutuante cobriria boa parte do mapa. Em vez da faixa
   rolável (que o PM reprovou), o seletor vira um menu suspenso, como o filtro
   nativo do Seats.io no celular: um botão que abre a lista de setores. */
@media only screen and (max-width: 800px) {
    .seats-modal-body {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* Altura automática: no mobile o mapa usa fitTo:"width" (ver seatsIo.js), então
       a altura segue o conteúdo do teatro e não sobra faixa branca. Precisa anular
       o height/min-height/flex herdados do desktop, que forçavam o vão. */
    #seatsMapModal {
        flex: 0 0 auto;
        height: auto;
        min-height: 0;
    }

    /* Container deixa de flutuar: vira uma faixa no topo que ancora o dropdown. */
    .seats-setores-filtro {
        position: relative;
        z-index: 20;
        order: -1;
        /* No desktop o layout é em linha e o filtro usa flex: 0 0 210px (210px =
           LARGURA da coluna lateral). No mobile o body vira coluna, então esse
           flex-basis passaria a valer como ALTURA — 210px de faixa branca fixa
           empurrando o mapa pra baixo e ancorando o dropdown longe do botão.
           Reseta pra "auto" para o container ter só a altura do gatilho. */
        flex: 0 0 auto;
        max-width: none;
        max-height: none;
        overflow: visible;
        margin-bottom: 10px;
        padding: 0;
        border-radius: 0;
        background-color: transparent;
        box-shadow: none;
    }

    /* Gatilho: botão de largura total que mostra a seleção atual. */
    .seats-setores-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #cfcfcf;
        border-radius: 8px;
        background-color: #ffffff;
        color: #333333;
        font-size: 14px;
        text-align: left;
        cursor: pointer;
    }

    .seats-setores-toggle-label {
        flex: 1 1 auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Seta que gira quando o menu abre. */
    .seats-setores-toggle-caret {
        flex-shrink: 0;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 6px solid #666666;
        transition: transform 0.15s ease;
    }

    .seats-setores-filtro.aberto .seats-setores-toggle-caret {
        transform: rotate(180deg);
    }

    /* Lista fica escondida até o gatilho abrir; então cai como dropdown por
       cima do mapa. */
    .seats-setores-lista {
        display: none;
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        right: 0;
        z-index: 30;
        gap: 4px;
        max-height: 45vh;
        overflow-y: auto;
        padding: 6px;
        border-radius: 8px;
        background-color: #ffffff;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    }

    .seats-setores-filtro.aberto .seats-setores-lista {
        display: flex;
    }

    /* Itens do dropdown: linhas de largura total, sem borda de "chip". */
    .seats-setores-lista .seats-setor-btn {
        border-color: transparent;
        border-radius: 6px;
    }

    .seats-setores-lista .seats-setor-btn.ativo {
        border-color: #333333;
    }
}
