/* MyListing Ads Frontend Styles */

.ml-ads-zone {
	position: relative;
	width: 100%;
	min-height: 100px;
	background: #fdfdfd;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 8px;
	margin-bottom: 20px;
}

.ml-ads-loader {
	border: 3px solid #f3f3f3;
	border-radius: 50%;
	border-top: 3px solid #ccc;
	width: 24px;
	height: 24px;
	-webkit-animation: spin 1s linear infinite;
	animation: spin 1s linear infinite;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ml-ads-single img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
}

.ml-ads-fallback {
	width: 100%;
	padding: 30px;
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	text-align: center;
	border-radius: 8px;
}

.ml-ads-fallback h3 {
	margin: 0 0 15px;
	color: #333;
}

.ml-ads-fallback-link {
	text-decoration: none !important;
}

/* Swiper overrides if needed */
.ml-ads-carousel {
	width: 100%;
	height: 100%;
}

/* Floating Action Button for Promotion */
.ml-ads-fab-container {
	position: fixed;
	bottom: 30px;
	right: 30px;
	z-index: 9999;
}

.ml-ads-fab {
	background: linear-gradient(135deg, #ffd700 0%, #f39c12 100%);
	color: #fff !important;
	border: none;
	padding: 15px 25px;
	border-radius: 50px;
	font-weight: bold;
	font-size: 16px;
	box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.3s ease;
}

.ml-ads-fab:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(243, 156, 18, 0.6);
}

.ml-ads-fab i {
	font-size: 20px;
}

/* Promotion Modal */
#ml-ads-promo-modal {
	background: #fff;
	padding: 30px;
	border-radius: 12px;
	max-width: 500px;
	margin: 40px auto;
	position: relative;
}

.ml-ads-promo-products {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-top: 20px;
}

.ml-ads-promo-product {
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.ml-ads-promo-product h4 {
	margin: 0 0 5px;
}

.ml-ads-promo-product .price {
	font-weight: bold;
	color: #f39c12;
	margin: 0;
}

/* Billing Dashboard Form */
.ml-ads-billing-dashboard {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ml-ads-form-row {
	display: flex;
	gap: 20px;
}

.ml-ads-form-row .form-row {
	flex: 1;
}

@media (max-width: 768px) {
	.ml-ads-form-row {
		flex-direction: column;
		gap: 0;
	}
}
