/* Smart Advertisement Manager - public styles */

.smart-ad {
	max-width: 100%;
	box-sizing: border-box;
	margin: 0 0 1em;
	overflow: hidden;
}

.smart-ad * {
	box-sizing: border-box;
	max-width: 100%;
}

.smart-ad-image,
.smart-ad img {
	height: auto;
	display: block;
}

.smart-ad-link {
	display: inline-block;
	line-height: 0;
}

.smart-ad-text-block {
	padding: 16px;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	background: #fafafa;
}

.smart-ad-title {
	margin: 0 0 8px;
	font-size: 1.1em;
	line-height: 1.3;
}

.smart-ad-desc {
	margin: 0 0 12px;
	font-size: 0.95em;
	line-height: 1.5;
	color: #444;
}

.smart-ad-button {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 4px;
	background: #2271b1;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9em;
}

.smart-ad-button:hover,
.smart-ad-button:focus {
	background: #135e96;
	color: #fff;
}

/* Device visibility - CSS based so markup stays cache-safe. */
@media screen and (min-width: 1025px) {
	.smart-ad.sam-hide-desktop {
		display: none !important;
	}
}

@media screen and (min-width: 601px) and (max-width: 1024px) {
	.smart-ad.sam-hide-tablet {
		display: none !important;
	}
}

@media screen and (max-width: 600px) {
	.smart-ad.sam-hide-mobile {
		display: none !important;
	}
}
