/* Local Marketplace Offers — Banner Advertising styles */

/* ---------- Slider (frontend placements) ---------- */
.lmo-banner-slider{
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto 24px;
	overflow: hidden;
	border-radius: 6px;
	background: #f2f2f2;
	/* Fixed 4:1 aspect ratio keeps every banner the same visual shape across
	   the whole site, no matter what pixel size an advertiser uploaded. */
	aspect-ratio: 4 / 1;
}
.lmo-banner-slider-track{
	display: flex;
	height: 100%;
	transition: transform 0.35s ease;
	cursor: grab;
}
.lmo-banner-slider-track:active{
	cursor: grabbing;
}
.lmo-banner-slide{
	position: relative;
	flex: 0 0 100%;
	height: 100%;
	display: block;
}
.lmo-banner-slide img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	-webkit-user-drag: none;
	user-select: none;
	pointer-events: none;
}
.lmo-banner-caption{
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 10px 16px;
	background: linear-gradient(transparent, rgba(0,0,0,0.55));
	color: #fff;
	font-size: 14px;
}
.lmo-banner-dots{
	position: absolute;
	bottom: 8px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
}
.lmo-banner-dots button{
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,0.6);
	cursor: pointer;
	padding: 0;
}
.lmo-banner-dots button.lmo-active{
	background: #fff;
}

@media (max-width: 600px){
	.lmo-banner-slider{
		aspect-ratio: 16 / 9;
		border-radius: 0;
	}
}

/* ---------- My Account: Banner Advertising page ---------- */
.lmo-banner-account h2{ margin-top: 0; }
.lmo-banner-notice{
	padding: 10px 14px;
	border-radius: 4px;
	margin-bottom: 16px;
	font-weight: 600;
}
.lmo-banner-notice-success{ background:#e6f6ec; color:#1f7a3f; }
.lmo-banner-notice-error{ background:#fdeceb; color:#b3291a; }

.lmo-banner-purchase{
	background:#f7f7f7;
	border:1px solid #e2e2e2;
	border-radius:4px;
	padding:16px;
	margin-bottom:20px;
}

.lmo-banner-form .lmo-field{ margin-bottom:14px; max-width:480px; }
.lmo-banner-form label{ display:block; font-weight:600; margin-bottom:5px; }
.lmo-banner-form input[type="text"],
.lmo-banner-form input[type="url"],
.lmo-banner-form input[type="date"],
.lmo-banner-form input[type="file"],
.lmo-banner-form select,
.lmo-banner-form textarea{
	width:100%;
	box-sizing:border-box;
	padding:8px 10px;
	border:1px solid #e2e2e2;
	border-radius:4px;
}
.lmo-banner-form .lmo-hint{
	display:block;
	font-size:12px;
	color:#777;
	margin-top:4px;
}
.lmo-credit-note{
	background:#e6f6ec;
	color:#1f7a3f;
	display:inline-block;
	padding:6px 12px;
	border-radius:4px;
	font-weight:600;
}

.lmo-banner-submissions{ width:100%; border-collapse:collapse; margin-top:10px; }
.lmo-banner-submissions th,
.lmo-banner-submissions td{ padding:8px; border-bottom:1px solid #e2e2e2; text-align:left; }
.lmo-banner-submissions .lmo-badge{
	background:#eee;
	border-radius:12px;
	padding:2px 10px;
	font-size:12px;
	font-weight:600;
}
.lmo-rejection-reason{
	margin-top:4px;
	font-size:12px;
	color:#b3291a;
	font-weight:400;
	max-width:320px;
}

@media (max-width: 600px){
	.lmo-banner-submissions thead{ display:none; }
	.lmo-banner-submissions, .lmo-banner-submissions tbody, .lmo-banner-submissions tr, .lmo-banner-submissions td{
		display:block; width:100%;
	}
	.lmo-banner-submissions td::before{
		content: attr(data-title);
		font-weight:600;
		display:block;
		font-size:11px;
		color:#777;
	}
}
