/* =========================================================================
 * SmartFlick CRO styles  (namespaced .sf-cro-)
 * Loaded on single product pages only.
 * ====================================================================== */

/* ---- 3.1 Near-title rating ------------------------------------------- */
.sf-cro-rating {
	margin: 4px 0 12px;
	line-height: 1.2;
}
.sf-cro-rating .star-rating {
	display: inline-block;
	vertical-align: middle;
	margin: 0 6px 0 0;
	font-size: 15px;
}
.sf-cro-rating-link,
.sf-cro-be-first {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
}
.sf-cro-rating-count {
	font-size: 13px;
	color: #555;
	white-space: nowrap;
}
.sf-cro-rating-link:hover .sf-cro-rating-count {
	text-decoration: underline;
}
.sf-cro-be-first {
	font-size: 13px;
	color: #666;
	border-bottom: 1px dashed currentColor;
}
.sf-cro-be-first:hover {
	color: #111;
}

/* ---- 3.2 Trust badges ------------------------------------------------ */
.sf-cro-trust {
	list-style: none;
	margin: 16px 0 4px;
	padding: 14px 16px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 18px;
	border: 1px solid #e6e6e6;
	border-radius: 10px;
	background: #fafafa;
}
.sf-cro-trust-item {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 13.5px;
	font-weight: 600;
	color: #2b2b2b;
	line-height: 1.3;
}
.sf-cro-check {
	flex: 0 0 auto;
	color: #1a9c4c;
}
@media (min-width: 480px) {
	.sf-cro-trust {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---- 3.4 Sticky mobile add-to-cart bar ------------------------------- */
.sf-cro-sticky-atc {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
	background: #fff;
	box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.14);
	align-items: center;
	gap: 10px;
	border-top: 1px solid #ececec;
}
.sf-cro-sticky-atc.is-visible {
	display: flex;
}
.sf-cro-sticky-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
}
.sf-cro-sticky-title {
	font-size: 12px;
	color: #666;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 40vw;
}
.sf-cro-sticky-price {
	font-size: 15px;
	font-weight: 700;
	color: #111;
	line-height: 1.2;
}
.sf-cro-sticky-price del {
	color: #999;
	font-weight: 400;
	font-size: 12px;
	margin-right: 4px;
}
.sf-cro-sticky-actions {
	display: flex;
	gap: 8px;
	flex: 0 0 auto;
}
.sf-cro-sticky-btn {
	appearance: none;
	border: 0;
	cursor: pointer;
	border-radius: 8px;
	padding: 11px 14px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	line-height: 1;
	white-space: nowrap;
}
.sf-cro-sticky-add {
	background: #ffedcf;
	color: #a15c00;
}
.sf-cro-sticky-buy {
	background: #ff8a00;
	color: #fff;
}
.sf-cro-sticky-btn:disabled {
	opacity: 0.6;
	cursor: default;
}
.sf-cro-sticky-btn.is-loading {
	opacity: 0.75;
	pointer-events: none;
}

/* Brief highlight when the sticky bar sends the user to the options form. */
form.cart.sf-cro-flash {
	outline: 2px solid #ff8a00;
	outline-offset: 4px;
	border-radius: 6px;
	transition: outline-color 0.3s ease;
}

/* Show only on mobile / small tablets. */
@media (min-width: 769px) {
	.sf-cro-sticky-atc,
	.sf-cro-sticky-atc.is-visible {
		display: none !important;
	}
}
/* Avoid the fixed bar covering the footer / last content on mobile. */
@media (max-width: 768px) {
	body.sf-cro-has-sticky {
		padding-bottom: 68px;
	}
}

/* ---- 3.5 Frequently bought together ---------------------------------- */
.sf-cro-fbt {
	margin: 30px auto;
	padding: 20px;
	border: 1px solid #ececec;
	border-radius: 12px;
	background: #fff;
}
.sf-cro-fbt-title {
	margin: 0 0 16px;
	font-size: 18px;
}
.sf-cro-fbt-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: flex-start;
	justify-content: space-between;
}
.sf-cro-fbt-list {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1 1 320px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.sf-cro-fbt-item {
	margin: 0;
}
.sf-cro-fbt-label {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	padding: 8px;
	border: 1px solid #f0f0f0;
	border-radius: 8px;
	transition: border-color 0.15s ease;
}
.sf-cro-fbt-label:hover {
	border-color: #ddd;
}
.sf-cro-fbt-check {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	accent-color: #ff8a00;
}
.sf-cro-fbt-thumb {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	overflow: hidden;
	border-radius: 6px;
}
.sf-cro-fbt-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
}
.sf-cro-fbt-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.sf-cro-fbt-name {
	font-size: 14px;
	font-weight: 600;
	color: #222;
	line-height: 1.3;
}
.sf-cro-fbt-this {
	font-style: normal;
	font-size: 12px;
	font-weight: 500;
	color: #888;
}
.sf-cro-fbt-price {
	font-size: 14px;
	font-weight: 700;
	color: #111;
}
.sf-cro-fbt-summary {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-start;
	min-width: 200px;
}
.sf-cro-fbt-total {
	font-size: 15px;
	color: #333;
}
.sf-cro-fbt-total-value {
	font-size: 18px;
	color: #111;
}
.sf-cro-fbt-add {
	cursor: pointer;
	background: #ff8a00;
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 12px 20px;
	font-weight: 700;
	font-size: 14px;
}
.sf-cro-fbt-add.is-loading {
	opacity: 0.75;
	pointer-events: none;
}
.sf-cro-fbt-feedback {
	font-size: 13px;
	color: #1a9c4c;
	min-height: 16px;
}
.sf-cro-fbt-feedback.is-error {
	color: #c0392b;
}
@media (max-width: 600px) {
	.sf-cro-fbt-summary {
		width: 100%;
		min-width: 0;
	}
	.sf-cro-fbt-add {
		width: 100%;
		text-align: center;
	}
}
