/* Affiliate programme page + dashboard (builds on b2b.css) */
.bb-affp__cta {
	margin: 24px 0;
	text-align: center;
}

.bb-affp__form textarea,
.bb-affp__form select,
.bb-aff input[type="text"],
.bb-aff input[type="url"],
.bb-aff input[type="search"],
.bb-aff select {
	width: 100%;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid #ddd0cd;
	border-radius: 10px;
	font-size: 15px;
}

.bb-affp__form .bb-b2b__field--about {
	grid-column: 1 / -1;
}

.bb-aff-note {
	padding: 14px 16px;
	border-radius: 12px;
	background: #faf6f5;
}

.bb-aff {
	display: grid;
	gap: 22px;
	color: #2b2326;
}

.bb-aff section {
	padding: 20px;
	border: 1px solid #efe2df;
	border-radius: 16px;
	background: #fff;
}

.bb-aff h3 {
	margin: 0 0 10px;
	font-size: 18px;
}

.bb-aff h4 {
	margin: 18px 0 8px;
	font-size: 15px;
}

.bb-aff__share {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
}

.bb-aff__copy {
	display: flex;
	gap: 8px;
}

.bb-aff__copy input {
	flex: 1 1 auto;
	min-width: 0;
}

.bb-aff__copy .button {
	flex: 0 0 auto;
	border-radius: 10px !important;
}

.bb-aff__hint {
	margin: 8px 0 0;
	color: #7a6c70;
	font-size: 13px;
}

.bb-aff__coupon {
	margin: 0;
	font-size: 15px;
}

.bb-aff__head {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.bb-aff__head h3 {
	margin: 0;
}

.bb-aff__range {
	display: inline-flex;
	overflow: hidden;
	border: 1px solid #ddd0cd;
	border-radius: 999px;
}

.bb-aff__range button {
	padding: 6px 12px;
	border: 0;
	background: #fff;
	color: #2b2326;
	font-size: 13px;
	cursor: pointer;
}

.bb-aff__range button.is-active {
	background: #b85c6b;
	color: #fff;
}

.bb-aff__live {
	color: #7a6c70;
	font-size: 12px;
}

.bb-aff__live i {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 4px;
	border-radius: 50%;
	background: #2eaa5c;
	animation: bbAffPulse 2s infinite;
}

@keyframes bbAffPulse {
	50% { opacity: 0.35; }
}

.bb-aff__kpis,
.bb-aff__balances {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.bb-aff__balances {
	grid-template-columns: repeat(3, 1fr);
	margin-top: 14px;
}

.bb-aff__kpis div,
.bb-aff__balances div {
	padding: 14px;
	border-radius: 12px;
	background: #faf6f5;
}

.bb-aff__kpis span,
.bb-aff__balances span {
	display: block;
	color: #7a6c70;
	font-size: 12px;
}

.bb-aff__kpis strong,
.bb-aff__balances strong {
	display: block;
	margin-top: 2px;
	font-size: 22px;
}

.bb-aff__kpis em {
	color: #7a6c70;
	font-size: 12px;
	font-style: normal;
}

.bb-aff__balances div:nth-child(2) {
	background: #fbf1ef;
}

.bb-aff__chart {
	margin-top: 16px;
}

.bb-aff__chart svg {
	width: 100%;
	height: 180px;
}

.bb-aff__bars rect {
	fill: #eecfd4;
}

.bb-aff__line {
	fill: none;
	stroke: #b85c6b;
	stroke-width: 2;
}

.bb-aff__labels text {
	fill: #9a8c90;
	font-size: 10px;
	text-anchor: middle;
}

.bb-aff__legend {
	display: flex;
	gap: 16px;
	color: #7a6c70;
	font-size: 12px;
}

.bb-aff__legend span::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 5px;
	border-radius: 2px;
	vertical-align: -1px;
}

.bb-aff__legend .c::before {
	background: #eecfd4;
}

.bb-aff__legend .o::before {
	height: 2px;
	background: #b85c6b;
	vertical-align: 3px;
}

.bb-aff__table-wrap {
	overflow-x: auto;
}

.bb-aff__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.bb-aff__table th,
.bb-aff__table td {
	padding: 8px;
	border-bottom: 1px solid #f1e8e6;
	text-align: left;
	white-space: nowrap;
}

.bb-aff__st {
	padding: 2px 8px;
	border-radius: 999px;
	background: #f5ecea;
	font-size: 12px;
}

.bb-aff__st.is-approved { background: #e6f4ea; color: #1e6b34; }
.bb-aff__st.is-paid { background: #e8eefb; color: #2849a0; }
.bb-aff__st.is-rejected { background: #fbe9e9; color: #a83232; }

.bb-aff__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bb-aff__filters input,
.bb-aff__filters select {
	width: auto;
	min-width: 180px;
}

.bb-aff__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.bb-aff__product {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 12px;
	border: 1px solid #f1e8e6;
	border-radius: 12px;
}

.bb-aff__product img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	border-radius: 8px;
	background: #fff;
}

.bb-aff__product h4 {
	flex: 1 1 auto;
	margin: 8px 0 4px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
}

.bb-aff__price {
	margin: 0;
	color: #7a6c70;
	font-size: 13px;
}

.bb-aff__earn {
	margin: 2px 0 8px;
	font-size: 14px;
}

.bb-aff__earn strong {
	color: #b85c6b;
	font-size: 16px;
}

.bb-aff__earn span {
	color: #7a6c70;
	font-size: 12px;
}

.bb-aff__product .button {
	width: 100%;
	padding: 8px !important;
	border-radius: 10px !important;
	font-size: 12px !important;
}

.bb-aff__pager {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: center;
	margin-top: 14px;
	font-size: 13px;
}

.bb-aff__pager button {
	width: 36px;
	height: 36px;
	border: 1px solid #ddd0cd;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
}

.bb-aff__payout form {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 4px 16px;
	align-items: end;
}

.bb-aff__payout label {
	display: block;
	font-size: 13px;
}

@media (max-width: 991px) {
	.bb-aff__grid { grid-template-columns: repeat(2, 1fr); }
	.bb-aff__kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.bb-aff section { padding: 16px; }
	.bb-aff__balances,
	.bb-aff__payout form { grid-template-columns: 1fr; }
	.bb-aff__kpis strong,
	.bb-aff__balances strong { font-size: 18px; }
	.bb-aff__filters input,
	.bb-aff__filters select { flex: 1 1 100%; min-width: 0; }
}

.bb-aff__wallet {
	background: linear-gradient(135deg, #fbf1ef 0%, #fff 70%) !important;
}

.bb-aff__wallet-balance {
	color: #b85c6b;
	font-size: 26px;
}

.bb-aff__wallet-options {
	margin: 0 0 12px 18px;
	font-size: 14px;
}

.bb-aff__withdraw {
	padding: 14px;
	border-radius: 12px;
	background: #fff;
	border: 1px dashed #e3cfcb;
}

.bb-aff__methods {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.bb-aff__methods label {
	display: flex;
	gap: 6px;
	align-items: center;
}

.bb-aff__wgrid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 4px 16px;
}

.bb-aff__wgrid label {
	display: block;
	font-size: 13px;
}

.bb-aff__wgrid input[type="file"] {
	display: block;
	margin-top: 6px;
}

@media (max-width: 600px) {
	.bb-aff__wgrid { grid-template-columns: 1fr; }
}

.bb-aff__docs,
.bb-affp__docs {
	margin: 0 0 16px;
	font-size: 14px;
}

.bb-affp__docs {
	margin-top: 16px;
	text-align: center;
}

.bb-aff__short-btn {
	background: #fff !important;
	color: #b85c6b !important;
	border: 1px solid #e3cfcb !important;
}

.bb-aff__pbtns {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 6px;
}

.bb-aff__pbtns .button {
	width: 100%;
}

.bb-aff__shortlinks .bb-aff__head {
	align-items: baseline;
}

/* Audience declaration */
.bb-affp__subtitle {
	margin: 18px 0 6px;
	font-size: 18px;
}

.bb-aud__intro {
	margin: 0 0 10px;
	color: #7a6c70;
	font-size: 14px;
}

.bb-aud__groups {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}

.bb-aud__group {
	margin: 0;
	padding: 10px 14px 4px;
	border: 1px solid #efe2df;
	border-radius: 12px;
}

.bb-aud__group legend {
	padding: 0 6px;
	color: #b85c6b;
	font-size: 13px;
	font-weight: 600;
}

.bb-aud label {
	display: block;
	margin: 0 0 10px;
	font-size: 13px;
}

.bb-aud input[type="number"],
.bb-aud input[type="text"],
.bb-aud select {
	width: 100%;
	min-height: 42px;
	margin-top: 4px;
	padding: 6px 10px;
	border: 1px solid #ddd0cd;
	border-radius: 10px;
}

.bb-aud__profile {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 12px;
	margin-top: 12px;
}

.bb-aud__wide {
	grid-column: 1 / -1;
}

.bb-aud__note {
	grid-column: 1 / -1;
	color: #7a6c70;
	font-size: 13px;
}

.bb-aff__audience summary {
	cursor: pointer;
	list-style: none;
}

@media (max-width: 600px) {
	.bb-aud__profile { grid-template-columns: 1fr; }
}

/* Screenshot guide */
.bb-aud__guide {
	grid-column: 1 / -1;
	margin: 6px 0 12px;
	padding: 14px;
	border-radius: 12px;
	background: #faf6f5;
}

.bb-aud__guide-title {
	margin: 0 0 10px;
	font-weight: 600;
}

.bb-aud__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 10px;
}

.bb-aud__card {
	padding: 10px 12px;
	border-left: 4px solid #b85c6b;
	border-radius: 8px;
	background: #fff;
	font-size: 13px;
	line-height: 1.45;
}

.bb-aud__card--ig { border-left-color: #d6249f; }
.bb-aud__card--tt { border-left-color: #111; }
.bb-aud__card--yt { border-left-color: #ff0000; }
.bb-aud__card--blog { border-left-color: #f9ab00; }

.bb-aud__card ol {
	margin: 6px 0 0 18px;
	padding: 0;
}

.bb-aud__card li {
	margin: 0 0 4px;
}

.bb-aud__guide-note {
	margin: 10px 0 0;
	color: #7a6c70;
	font-size: 12px;
}

.bb-aud__guide-link {
	margin: 10px 0 0;
	font-weight: 600;
}

.bb-aff__product.is-promo {
	border-color: #e7a9b4;
	box-shadow: 0 0 0 2px #fbe3e7;
}

.bb-aff__bonus {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 1;
	padding: 3px 8px;
	border-radius: 999px;
	background: #b85c6b;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
}

.bb-aff__tiers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 8px;
}

.bb-aff__tiers span {
	padding: 6px 12px;
	border-radius: 999px;
	background: #fdf1f3;
	font-size: 13px;
}

.bb-aff__tiers strong {
	color: #b85c6b;
}
