/* ============================================================
   Affiliate Blocks — shared styling
   Loaded on both the editor and the front end.
============================================================= */

:root {
	--affb-pink: #e6146b;
	--affb-pink-bg: #fdeaf1;
	--affb-ink: #16121a;
	--affb-sub: #6b6470;
	--affb-green: #1a9e5c;
	--affb-red: #d3283f;
}

.affb-btn,
a.affb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var( --affb-pink );
	color: #fff !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 700;
	padding: 12px 18px;
	border-radius: 8px;
	cursor: pointer;
}
a.affb-btn:hover {
	background: #c4105c;
}

/* ---------- Quick Decision Box ---------- */
.affb-quick-decision {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: var( --affb-pink-bg );
	border-radius: 16px;
	padding: 28px;
	max-width: 1160px;
	margin: 32px auto;
}
.affb-heading {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var( --affb-ink );
	margin: 0 0 18px;
}
.affb-qd-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 18px;
}
@media ( max-width: 780px ) {
	.affb-qd-grid {
		grid-template-columns: 1fr;
	}
}
.affb-qd-card {
	background: #fff;
	border-radius: 12px;
	padding: 20px 20px 24px;
	display: flex;
	flex-direction: column;
	position: relative;
}
.affb-qd-card.affb-featured {
	border-top: 4px solid var( --affb-pink );
}
a.affb-qd-card-link {
	text-decoration: none !important;
	color: inherit !important;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
a.affb-qd-card-link:hover {
	box-shadow: 0 6px 20px rgba( 0, 0, 0, 0.1 );
	transform: translateY( -2px );
}
.affb-tag {
	position: absolute;
	top: 14px;
	right: 14px;
	background: var( --affb-pink );
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	padding: 5px 10px;
	border-radius: 999px;
}
.affb-qd-img-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 190px;
	margin-bottom: 18px;
	position: relative;
}
.affb-qd-img-wrap img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.affb-qd-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 14px;
}
.affb-icon {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var( --affb-pink );
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	margin-top: 2px;
}
.affb-qd-text h3 {
	font-size: 16px;
	font-weight: 800;
	color: var( --affb-ink );
	margin: 0 0 4px;
}
.affb-qd-text p {
	font-size: 14px;
	line-height: 1.45;
	color: var( --affb-sub );
	margin: 0;
}
.affb-qd-card .affb-btn {
	margin-top: auto;
}

/* ---------- Pros & Cons Table ---------- */
.affb-pros-cons {
	max-width: 900px;
	margin: 28px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.affb-pc-title {
	font-size: 18px;
	font-weight: 800;
	color: var( --affb-ink );
	margin: 0 0 14px;
}
.affb-pc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
@media ( max-width: 600px ) {
	.affb-pc-grid {
		grid-template-columns: 1fr;
	}
}
.affb-pc-col {
	border-radius: 10px;
	padding: 18px 18px 10px;
}
.affb-pc-pros {
	background: #eafbf1;
	border: 1px solid #cdeedc;
}
.affb-pc-cons {
	background: #fdecee;
	border: 1px solid #f4d3d8;
}
.affb-pc-col-label {
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 10px;
	color: var( --affb-ink );
}
.affb-pc-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.affb-pc-col li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	line-height: 1.5;
	color: var( --affb-ink );
	margin-bottom: 10px;
}
.affb-pc-icon {
	flex-shrink: 0;
	font-weight: 700;
	margin-top: 1px;
}
.affb-pc-pros .affb-pc-icon {
	color: var( --affb-green );
}
.affb-pc-cons .affb-pc-icon {
	color: var( --affb-red );
}
.affb-remove-item {
	margin-left: auto;
	color: var( --affb-red ) !important;
}

/* ---------- Product Card ---------- */
.affb-product-card {
	max-width: 380px;
	margin: 28px auto;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 14px;
	padding: 24px;
	text-align: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-shadow: 0 2px 14px rgba( 0, 0, 0, 0.05 );
}
.affb-pcard-img-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 200px;
	margin-bottom: 16px;
}
.affb-pcard-img-wrap img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.affb-pcard-name {
	font-size: 18px;
	font-weight: 800;
	color: var( --affb-ink );
	margin: 0 0 6px;
}
.affb-pcard-price {
	font-size: 16px;
	font-weight: 700;
	color: var( --affb-pink );
	margin-bottom: 14px;
}
.affb-pcard-why-label {
	font-size: 12px;
	font-weight: 700;
	color: var( --affb-sub );
	margin-bottom: 4px;
}
.affb-pcard-why {
	font-size: 14px;
	line-height: 1.5;
	color: var( --affb-ink );
	margin: 0 0 18px;
}
.affb-pcard-btn {
	width: 100%;
}
a.affb-pcard-wrap-link {
	text-decoration: none !important;
	color: inherit !important;
	display: block;
}

/* ---------- Star rating ---------- */
.affb-stars {
	margin-bottom: 10px;
	font-size: 16px;
	letter-spacing: 2px;
}
.affb-star {
	color: #ddd;
}
.affb-star-filled {
	color: #f5a623;
}

/* ---------- Comparison Table ---------- */
.affb-comparison-table {
	max-width: 1100px;
	margin: 28px auto;
	overflow-x: auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.affb-ct-grid {
	display: grid;
	border: 1px solid #ececec;
	border-radius: 10px;
	overflow: hidden;
	min-width: 560px;
}
.affb-ct-cell {
	padding: 12px 14px;
	border-bottom: 1px solid #ececec;
	border-right: 1px solid #ececec;
	display: flex;
	align-items: center;
	font-size: 14px;
	color: var( --affb-ink );
}
.affb-ct-cell:last-child {
	border-right: none;
}
.affb-ct-label {
	font-weight: 700;
	background: #fafafa;
}
.affb-ct-corner {
	background: #fafafa;
}
.affb-ct-head {
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: #fff;
	font-weight: 800;
	gap: 6px;
}
.affb-ct-head img {
	max-width: 100%;
	max-height: 90px;
	object-fit: contain;
	margin-bottom: 4px;
}
.affb-ct-name {
	font-size: 14px;
}
.affb-ct-highlight {
	background: var( --affb-pink-bg );
}
.affb-ct-row {
	display: contents;
}
.affb-ct-grid .affb-btn {
	width: 100%;
	justify-content: center;
}

/* ---------- Disclosure banner ---------- */
.affb-disclosure {
	font-size: 13px;
	color: var( --affb-sub );
	background: #f6f6f7;
	border-left: 3px solid var( --affb-pink );
	padding: 10px 14px;
	border-radius: 4px;
	margin: 20px 0;
}
