/**
 * Estilos Frontend - LMX Product Bulk Sold
 */

/* Modal */
.lmx-pbs-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
}

.lmx-pbs-modal.is-open {
	display: block;
}

.lmx-pbs-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	animation: lmxPbsFadeIn 0.3s;
	z-index: 999999;
}

.lmx-pbs-modal-wrapper {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	overflow-y: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.lmx-pbs-modal-content {
	position: relative;
	max-width: 600px;
	width: 100%;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	animation: lmxPbsSlideIn 0.3s;
	max-height: 90vh;
	overflow-y: auto;
}

.lmx-pbs-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: transparent;
	border: none;
	font-size: 28px;
	color: #666;
	cursor: pointer;
	padding: 5px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
}

.lmx-pbs-modal-close:hover {
	background: #f5f5f5;
	color: #333;
}

.lmx-pbs-modal-header {
	padding: 25px 30px 20px;
	border-bottom: 1px solid #e5e5e5;
}

.lmx-pbs-modal-title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #333;
}

.lmx-pbs-modal-body {
	padding: 30px;
}

.lmx-pbs-limit-message {
	padding: 15px 20px;
	background: #fff3cd;
	border-left: 3px solid #ffc107;
	color: #856404;
	font-size: 14px;
	margin-bottom: 25px;
}

.lmx-pbs-offer-message {
	font-size: 16px;
	font-weight: 500;
	color: #333;
	margin: 0 0 20px;
}

.lmx-pbs-offer-product-link {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s;
}

.lmx-pbs-offer-product-link:hover {
	opacity: 0.8;
}

.lmx-pbs-offer-product {
	display: flex;
	gap: 20px;
	align-items: center;
	padding: 20px;
	background: #fafafa;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	margin-bottom: 20px;
}

.lmx-pbs-offer-image {
	flex: 0 0 100px;
}

.lmx-pbs-offer-image img {
	width: 100%;
	border-radius: 2px;
	border: 1px solid #e5e5e5;
}

.lmx-pbs-offer-details {
	flex: 1;
}

.lmx-pbs-offer-name {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 600;
}

.lmx-pbs-offer-price {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 8px;
}

.lmx-pbs-offer-description {
	font-size: 13px;
	color: #666;
}

.lmx-pbs-offer-actions {
	display: flex;
	justify-content: center;
}

.lmx-pbs-offer-actions .button.loading {
	opacity: 0.6;
	pointer-events: none;
	position: relative;
}

.lmx-pbs-offer-actions .button.loading::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	top: 50%;
	left: 50%;
	margin: -8px 0 0 -8px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #fff;
	animation: lmxPbsSpin 0.6s linear infinite;
}

/* Animações */
@keyframes lmxPbsFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes lmxPbsSlideIn {
	from { opacity: 0; transform: translateY(-20px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes lmxPbsSpin {
	to { transform: rotate(360deg); }
}

/* Responsivo */
@media (max-width: 768px) {
	.lmx-pbs-modal-wrapper {
		padding: 10px;
	}

	.lmx-pbs-modal-header,
	.lmx-pbs-modal-body {
		padding: 20px;
	}

	.lmx-pbs-modal-title {
		font-size: 18px;
		padding-right: 30px;
	}

	.lmx-pbs-offer-product {
		flex-direction: column;
		text-align: center;
	}

	.lmx-pbs-offer-actions .button {
		width: 100%;
	}
}
