/**
 * Affiliate Product Manager — base block styles.
 * Override via Settings → Block styles (scoped to .apm-* classes).
 */

.apm-btn {
	display: inline-block;
	padding: 0.6em 1.4em;
	background: #ff9900;
	color: #111;
	font-weight: 600;
	text-decoration: none;
	border-radius: 6px;
	line-height: 1.2;
	transition: background 0.15s ease, transform 0.15s ease;
}

.apm-btn:hover,
.apm-btn:focus {
	background: #e88a00;
	color: #111;
	transform: translateY(-1px);
}

/* Single card */
.apm-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.75em;
	padding: 1em;
	border: 1px solid #e4e4e4;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.apm-card__img img {
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

.apm-card__title {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.35;
}

/* Card grid */
.apm-cards {
	display: grid;
	gap: 1.25em;
	grid-template-columns: 1fr;
}

@media (min-width: 600px) {
	.apm-cards--cols-2 { grid-template-columns: repeat(2, 1fr); }
	.apm-cards--cols-3 { grid-template-columns: repeat(2, 1fr); }
	.apm-cards--cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
	.apm-cards--cols-3 { grid-template-columns: repeat(3, 1fr); }
	.apm-cards--cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Feature */
.apm-feature {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.5em;
	padding: 1.5em;
	border-radius: 12px;
	background: #fafafa;
}

.apm-feature__img,
.apm-feature__body {
	flex: 1 1 280px;
}

.apm-feature__img img {
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

.apm-feature__title {
	margin-top: 0;
}

.apm-feature__desc {
	margin-bottom: 1em;
}
