/**
 * Mục dẫn tới công cụ quét mã vạch ở trang chủ.
 * Bám theo kích thước + nhận diện của thanh tìm kiếm (bnsg-search-bar)
 * để nằm dưới nó cho liền mạch. Responsive PC / tablet / phone.
 */

.bbs-cta {
	--bbs-cta-accent: #e8557f;
	--bbs-cta-accent-dark: #cf3f68;
	--bbs-cta-border: #ecd9c7;
	--bbs-cta-text: #3a2b22;
	--bbs-cta-muted: #9a8b80;

	width: 100%;
	box-sizing: border-box;
	margin: 0 auto 22px;
	padding: 0 16px; /* Trùng padding thanh tìm kiếm để 2 mục thẳng mép nhau. */
}

.bbs-cta *,
.bbs-cta *::before,
.bbs-cta *::after {
	box-sizing: border-box;
}

.bbs-cta__link {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 640px; /* Bằng .bnsg-sb__form. */
	margin: 0 auto;
	padding: 9px 14px 9px 10px;
	background: #fff;
	border: 1.5px solid var(--bbs-cta-border);
	border-radius: 999px;
	box-shadow: 0 4px 18px rgba( 90, 60, 40, 0.08 );
	color: var(--bbs-cta-text);
	text-decoration: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.bbs-cta__link:hover,
.bbs-cta__link:focus-visible {
	border-color: var(--bbs-cta-accent);
	box-shadow: 0 6px 22px rgba( 232, 85, 127, 0.16 );
	color: var(--bbs-cta-text);
	text-decoration: none;
	transform: translateY( -1px );
}

.bbs-cta__icon {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background: var(--bbs-cta-accent);
	border-radius: 50%;
	color: #fff;
}

.bbs-cta__body {
	flex: 1 1 auto;
	min-width: 0; /* Cho phép chữ xuống dòng thay vì đẩy vỡ hàng. */
}

.bbs-cta__title {
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--bbs-cta-text);
}

.bbs-cta__desc {
	display: block;
	margin-top: 1px;
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.35;
	color: var(--bbs-cta-muted);
}

.bbs-cta__arrow {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	color: var(--bbs-cta-accent);
}

@media ( prefers-reduced-motion: reduce ) {
	.bbs-cta__link {
		transition: none;
	}

	.bbs-cta__link:hover,
	.bbs-cta__link:focus-visible {
		transform: none;
	}
}

/* Tablet — thanh tìm kiếm hẹp lại còn 560px, mục này theo cho khớp. */
@media ( max-width: 782px ) {
	.bbs-cta__link {
		max-width: 560px;
	}
}

/* Phone */
@media ( max-width: 520px ) {
	.bbs-cta {
		margin-bottom: 18px;
		padding: 0 12px; /* Trùng .bnsg-sb ở cùng breakpoint. */
	}

	.bbs-cta__link {
		gap: 10px;
		padding: 8px 12px 8px 8px;
	}

	.bbs-cta__icon {
		width: 34px;
		height: 34px;
	}

	.bbs-cta__title {
		font-size: 14px;
	}

	.bbs-cta__desc {
		font-size: 11.5px;
	}
}
