/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

.gallery-selection-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 20px 0;
	padding: 12px 18px;
	background: linear-gradient(135deg, #2e8ece 0%, #1a6ba8 100%);
	border: none;
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba(46, 142, 206, 0.3);
}

.gallery-selection-bar .selection-count {
	font-weight: 600;
	color: #fff;
}

.gallery-selection-bar .selection-hint {
	display: block;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.8);
	margin-top: 2px;
}

.gallery-selection-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.gallery-selection-btn {
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	font-size: 13px;
	padding: 8px 16px;
	border-radius: 20px;
	transition: all .2s;
	font-weight: 500;
}

.gallery-selection-btn:disabled {
	opacity: .5;
	cursor: not-allowed;
}

.gallery-selection-btn:not(:disabled):hover {
	background: rgba(255, 255, 255, 0.35);
	transform: translateY(-1px);
}

.gallery-selection-btn.primary {
	background: #ff3f5c;
	border-color: #ff3f5c;
	color: #fff;
}

.gallery-selection-btn.primary:hover:not(:disabled) {
	background: #e6364f;
}

.gallery-selection-btn.primary:disabled {
	background: rgba(255, 255, 255, 0.3);
	border-color: rgba(255, 255, 255, 0.2);
}

.gallery-photo-card {
	position: relative;
}

/* Botão de seleção - apenas checkbox compacto */
.gallery-photo-card .photo-select-toggle {
	position: absolute;
	top: 8px;
	left: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border-radius: 6px;
	border: 2px solid rgba(255, 255, 255, 0.9);
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	cursor: pointer;
	transition: all .2s;
	z-index: 6;
	pointer-events: auto;
	box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.gallery-photo-card .photo-select-toggle:hover {
	background: rgba(0, 0, 0, 0.6);
	transform: scale(1.1);
}

.photo-select-toggle * {
	pointer-events: none;
}

/* Esconder texto - mostrar apenas checkbox */
.gallery-photo-card .photo-select-toggle .toggle-text {
	display: none;
}

.gallery-photo-card .photo-select-toggle .toggle-icon {
	width: 18px;
	height: 18px;
	border-radius: 4px;
	border: 2px solid #fff;
	background: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	line-height: 1;
}

/* Estado selecionado */
.gallery-photo-card.photo-selected .photo-select-toggle {
	background: #ff3f5c;
	border-color: #ff3f5c;
	color: #fff;
	box-shadow: 0 2px 8px rgba(255, 63, 92, 0.5);
}

.gallery-photo-card.photo-selected .photo-select-toggle:hover {
	background: #e6364f;
}

.gallery-photo-card.photo-selected .photo-select-toggle .toggle-icon {
	background: #fff;
	color: #ff3f5c;
	border-color: #fff;
}

.gallery-photo-card.photo-selected img {
	box-shadow: 0 0 0 3px rgba(255, 63, 92, 0.7);
	border-radius: 4px;
}

/* Chip SELECIONADA - aparece apenas quando selecionado */
.gallery-photo-card .selection-chip {
	position: absolute;
	top: 8px;
	right: 8px;
	background: #ff3f5c;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	padding: 4px 8px;
	border-radius: 4px;
	z-index: 6;
	opacity: 0;
	transform: translateY(-5px);
	transition: all .2s;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 6px rgba(255, 63, 92, 0.4);
}

.gallery-photo-card.photo-selected .selection-chip {
	opacity: 1;
	transform: translateY(0);
}

/* Modal PhotoCart - COMPACTO, encaixado entre header e footer */
#PhotoCart.modal {
	z-index: 1100 !important; /* Acima do lightbox (1050) */
	padding-top: 120px !important; /* Espaço para o header */
	padding-bottom: 80px !important; /* Espaço para o footer */
}

#PhotoCart.modal + .modal-backdrop,
.modal-backdrop.show {
	z-index: 1090 !important; /* Backdrop do modal acima do lightbox */
}

#PhotoCart .modal-dialog {
	max-width: 500px; /* Largura reduzida */
	width: 90%;
	margin: 0 auto;
}

#PhotoCart .modal-content {
	max-height: calc(100vh - 220px); /* Altura máxima menor */
	overflow-y: auto;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

#PhotoCart .modal-header {
	padding: 12px 15px;
	background: #333;
	color: #fff;
}

#PhotoCart .modal-header .close {
	color: #fff;
	opacity: 1;
}

#PhotoCart .modal-body {
	padding: 15px;
	max-height: calc(100vh - 320px);
	overflow-y: auto;
}

/* Imagem da foto menor */
#PhotoCart .modal-body img {
	max-width: 150px;
	max-height: 100px;
	object-fit: cover;
	border-radius: 6px;
}

/* Tabela de produtos compacta */
#PhotoCart .modal-body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

#PhotoCart .modal-body table td,
#PhotoCart .modal-body table th {
	padding: 4px 6px;
}

#PhotoCart .modal-body table input[type="number"],
#PhotoCart .modal-body table input[type="text"] {
	width: 50px;
	padding: 4px;
	text-align: center;
}

/* Textarea de observações menor */
#PhotoCart .modal-body textarea {
	max-height: 60px;
	font-size: 13px;
}

/* Botões do footer */
#PhotoCart .modal-footer,
#PhotoCart .modal-body .btn-group,
#PhotoCart .modal-body div:last-child {
	padding: 10px 15px;
}

#PhotoCart .bulk-progress-banner {
	background: #f0f6ff;
	border: 1px solid #c8ddff;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 12px;
	line-height: 1.4;
	color: #1f3a68;
}

#PhotoCart .bulk-progress-banner strong {
	display: block;
	font-size: 13px;
}

#PhotoCart .bulk-progress-banner label {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	font-weight: 600;
}

#bulk-processing-status {
	display: none;
	background: #fff4e5;
	border: 1px solid #ffcf99;
	color: #8a4b15;
	padding: 10px;
	border-radius: 6px;
	margin-top: 10px;
}

@media (max-width: 768px) {
	.gallery-selection-bar {
		flex-direction: column;
		align-items: flex-start;
		padding: 10px 15px;
	}

	.gallery-selection-actions {
		width: 100%;
		justify-content: space-between;
	}

	/* Checkbox compacto no mobile */
	.gallery-photo-card .photo-select-toggle {
		width: 32px;
		height: 32px;
		top: 6px;
		left: 6px;
	}

	.gallery-photo-card .photo-select-toggle .toggle-icon {
		width: 18px;
		height: 18px;
		font-size: 13px;
	}

	/* Chip SELECIONADA menor no mobile */
	.gallery-photo-card .selection-chip {
		font-size: 8px;
		padding: 3px 6px;
		top: 6px;
		right: 6px;
	}

	#PhotoCart .modal-dialog {
		margin: 0;
		max-width: 100%;
		width: 100%;
	}

	#PhotoCart .modal-content {
		min-height: 100vh;
		border-radius: 0;
	}

	#PhotoCart .modal-body {
		padding: 20px 15px;
	}

	#PhotoCart .modal-body table {
		display: block;
		overflow-x: auto;
	}

	.image_pedido img {
		width: 100%;
		height: auto;
	}
}

@media (max-width: 480px) {
	.gallery-selection-actions {
		flex-direction: column;
		gap: 6px;
	}

	.gallery-selection-btn {
		width: 100%;
		text-align: center;
	}
}




