/* SG365 responsive WooCommerce advertisements. */
.sg365wdcs-ad {
	--sg365wdcs-ad-primary: var(--sg365wdcs-primary, #08b89f);
	--sg365wdcs-ad-secondary: var(--sg365wdcs-secondary, #1678d3);
	--sg365wdcs-ad-navy: var(--sg365wdcs-navy, #102f4e);
	width: 100%;
	margin: 24px auto;
	clear: both;
	text-align: center;
}
.sg365wdcs-ad[hidden] { display: none !important; }
.sg365wdcs-ad-device { display: none; margin: 0 auto; max-width: 100%; text-decoration: none; }
.sg365wdcs-ad-device img { display: block; width: 100%; height: auto; max-width: 100%; margin: 0 auto; object-fit: contain; border-radius: 12px; }
.sg365wdcs-ad-size-300x250 { width: min(300px, 100%); }
.sg365wdcs-ad-size-728x90 { width: min(728px, 100%); }
.sg365wdcs-ad-size-300x600 { width: min(300px, 100%); }
.sg365wdcs-ad-size-336x280 { width: min(336px, 100%); }
.sg365wdcs-ad-size-320x50 { width: min(320px, 100%); }
.sg365wdcs-ad-size-320x100 { width: min(320px, 100%); }
.sg365wdcs-ad-size-250x250 { width: min(250px, 100%); }
.sg365wdcs-ad-size-970x90 { width: min(970px, 100%); }
.sg365wdcs-ad-html { max-width: 100%; text-align: initial; overflow: hidden; }
.sg365wdcs-ad-html > *:first-child { margin-top: 0; }
.sg365wdcs-ad-html > *:last-child { margin-bottom: 0; }

.sg365wdcs-product-ad-card {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	max-width: 780px;
	margin: 0 auto;
	padding: 16px;
	text-align: left;
	background: #fff;
	border: 1px solid rgba(16, 47, 78, .12);
	border-radius: 18px;
	box-shadow: 0 12px 32px rgba(16, 47, 78, .08);
}
.sg365wdcs-product-ad-image { display: block; width: 92px; height: 92px; overflow: hidden; border-radius: 13px; background: #f7fbfb; }
.sg365wdcs-product-ad-image img { width: 100%; height: 100%; object-fit: cover; }
.sg365wdcs-product-ad-copy { min-width: 0; }
.sg365wdcs-product-ad-copy > span { display: block; margin-bottom: 5px; color: var(--sg365wdcs-ad-primary); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.sg365wdcs-product-ad-copy a { color: inherit; text-decoration: none; }
.sg365wdcs-product-ad-copy strong { display: block; color: var(--sg365wdcs-ad-navy); font-size: 17px; line-height: 1.3; }
.sg365wdcs-product-ad-price { margin-top: 7px; color: var(--sg365wdcs-ad-navy); font-size: 15px; font-weight: 700; }
.sg365wdcs-product-ad-price del { opacity: .55; margin-right: 6px; }
.sg365wdcs-product-ad-price ins { text-decoration: none; }
.sg365wdcs-ad-cta.button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px !important;
	color: #fff !important;
	background: linear-gradient(135deg, var(--sg365wdcs-ad-primary), var(--sg365wdcs-ad-secondary)) !important;
	border: 0 !important;
	border-radius: 11px !important;
	font-weight: 750 !important;
	text-decoration: none !important;
	white-space: nowrap;
}

@media (min-width: 1025px) {
	.sg365wdcs-ad-device.sg365wdcs-ad-desktop { display: block; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.sg365wdcs-ad-device.sg365wdcs-ad-tablet { display: block; }
}
@media (max-width: 767px) {
	.sg365wdcs-ad { margin: 18px auto; }
	.sg365wdcs-ad-device.sg365wdcs-ad-mobile { display: block; }
	.sg365wdcs-product-ad-card { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 13px; }
	.sg365wdcs-product-ad-image { width: 72px; height: 72px; }
	.sg365wdcs-product-ad-copy strong { font-size: 15px; }
	.sg365wdcs-ad-cta.button { grid-column: 1 / -1; width: 100%; }
}
