/* Learn Zone Ad Showcase â frontend */

.lzas-zone {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	margin: 1.5rem auto;
	padding: 0 1rem;
	text-align: center;
}

.lzas-zone__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	text-align: center;
}

.lzas-zone__carousel {
	position: relative;
	width: 100%;
	max-width: 728px;
	margin: 0 auto;
	min-height: 90px;
	overflow: hidden;
	text-align: center;
}

.lzas-ad-slide {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0 auto;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.6s ease;
}

.lzas-ad-slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.lzas-zone__rotation-note {
	margin: 0.5rem 0 0;
	text-align: center;
	font-size: 0.75rem;
	color: #64748b;
}

.lzas-dashboard__rotation-info {
	color: #475569;
	font-size: 0.95rem;
	line-height: 1.5;
	margin: 0.5rem 0 0;
	padding: 0.75rem 1rem;
	background: #f0f9ff;
	border-radius: 6px;
	border-left: 3px solid #1e6fd9;
}

.lzas-slot__pool-count {
	font-size: 0.85rem;
	color: #64748b;
	margin: 0 0 1rem;
}

.lzas-field-help {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.8rem;
	color: #64748b;
}

.lzas-ad-form label .required {
	color: #d63638;
}

.lzas-zone--top {
	margin-top: 0;
	padding-top: 1rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.lzas-zone--middle {
	margin: 2rem auto;
	padding: 1.25rem 0;
	background: rgba(0, 0, 0, 0.03);
	border-radius: 8px;
}

.lzas-zone--bottom {
	margin-bottom: 0;
	padding-bottom: 1.5rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.lzas-ad {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0 auto;
	text-align: center;
}

.lzas-ad__image {
	display: block;
	max-width: 100%;
	max-height: 120px;
	width: auto;
	height: auto;
	margin: 0 auto;
	border-radius: 6px;
	object-fit: contain;
}

.lzas-ad__link {
	display: inline-block;
	max-width: 100%;
	margin: 0 auto;
	line-height: 0;
	text-align: center;
}

/* Dashboard */
.lzas-dashboard {
	max-width: 960px;
	margin: 0 auto;
}

.lzas-dashboard__header {
	margin-bottom: 1.5rem;
}

.lzas-dashboard__tier {
	color: #555;
}

.lzas-slots {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.25rem;
}

.lzas-slot {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 1.25rem;
	background: #fff;
}

.lzas-slot--locked {
	opacity: 0.75;
	background: #f9f9f9;
}

.lzas-slot__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.lzas-slot__header h3 {
	margin: 0;
	font-size: 1.1rem;
}

.lzas-slot__badge {
	font-size: 0.75rem;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	background: #fef3cd;
	color: #856404;
}

.lzas-slot__locked-msg {
	color: #666;
	font-size: 0.9rem;
}

.lzas-ad-form__preview {
	min-height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	border-radius: 6px;
	margin-bottom: 1rem;
	overflow: hidden;
}

.lzas-preview-img {
	max-width: 100%;
	height: auto;
}

.lzas-preview-placeholder {
	color: #888;
	font-size: 0.9rem;
}

.lzas-input {
	width: 100%;
	padding: 0.5rem 0.65rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.lzas-button {
	display: inline-block;
	padding: 0.5rem 1rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #f7f7f7;
	cursor: pointer;
	font-size: 0.9rem;
}

.lzas-button--primary {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.lzas-button--danger {
	background: #fff;
	border-color: #d63638;
	color: #d63638;
}

.lzas-ad-form__actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.lzas-form-message {
	min-height: 1.25rem;
	font-size: 0.9rem;
}

.lzas-form-message.is-success {
	color: #008a20;
}

.lzas-form-message.is-error {
	color: #d63638;
}

.lzas-upgrade-notice {
	max-width: 640px;
	padding: 1.5rem;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
}

.lzas-upgrade-notice ul {
	margin: 0.75rem 0;
	padding-left: 1.25rem;
}

/* WooCommerce My Account */
.woocommerce-account .woocommerce-MyAccount-content .lzas-dashboard {
	max-width: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation a[href*="/ads"] {
	font-weight: 600;
}

.lzas-notice {
	padding: 1rem;
	background: #f0f0f0;
	border-radius: 6px;
}

.lzas-invite-notice {
	padding: 1rem 1.25rem;
	margin: 0 0 1.25rem;
	background: #e8f4fd;
	border: 1px solid #b6dff9;
	border-radius: 6px;
}

.lzas-invite-notice p {
	margin: 0.35rem 0 0;
}
