/**
 * Evrycard Affiliate — editorial redesign to match evrycard.co.uk house style.
 * Same design language as .evry-pricing: Outfit, brand #F59F0A, cream radial
 * washes, hairline dividers, generous whitespace, large soft radii.
 */

.evry-afp,
.evry-afp * {
	box-sizing: border-box;
	font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.evry-afp {
	--evry-brand: #F59F0A;
	--evry-brand-dark: #B26F00;
	--evry-brand-soft: #FFF4DB;
	--evry-brand-tint: #FFFAF0;
	--evry-ink: #0B0F19;
	--evry-ink-2: #1F2937;
	--evry-ink-soft: #6B7280;
	--evry-line: #EEF0F3;
	--evry-line-2: #E5E7EB;
	--evry-bg-alt: #FAFAF7;
	--evry-radius: 18px;
	--evry-radius-lg: 22px;
	--evry-radius-sm: 10px;
	--evry-radius-xl: 28px;

	color: var(--evry-ink);
	line-height: 1.55;
	background: #fff;

	/* Rounded parent surface — the theme wrapper renders square, so the
	   shortcode rounds its own outer block and each banded section. */
	border-radius: var(--evry-radius-xl);
	overflow: hidden;
}

.evry-afp__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ------------------------------------------------------------------ Hero */

.evry-afp__hero {
	position: relative;
	padding: 88px 0 72px;
	text-align: center;
	overflow: hidden;
	border-radius: var(--evry-radius-xl);
	background:
		radial-gradient(120% 70% at 0% 0%, #FFF3DC 0%, rgba(255, 243, 220, 0) 58%),
		radial-gradient(110% 70% at 100% 10%, #FFE8C2 0%, rgba(255, 232, 194, 0) 55%),
		#FFFFFF;
}




.evry-afp__eyebrow {
	margin: 0 0 18px;
}

.evry-afp__eyebrow span {
	font-family: 'Outfit', var(--evry-font, system-ui), sans-serif !important;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--evry-brand-dark);
	background: #fff;
	border: 1px solid #F6E2BC;
	border-radius: 999px;
	padding: 7px 16px;
	box-shadow: 0 1px 2px rgba(11, 15, 25, .04);
}

.evry-afp__eyebrow span::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--evry-brand);
}

.evry-afp__title {
	margin: 0 0 16px;
	/* Themes override heading fonts — force the brand face. */
	font-family: 'Outfit', var(--evry-font, system-ui), sans-serif !important;
	font-size: clamp(2.1rem, 5vw, 3.6rem);
	font-weight: 600 !important;
	line-height: 1.08;
	letter-spacing: -.03em;
	color: var(--evry-ink);
}

.evry-afp__sub {
	font-family: 'Outfit', var(--evry-font, system-ui), sans-serif !important;
	max-width: 660px;
	margin: 0 auto;
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--evry-ink-soft);
	letter-spacing: -.005em;
}

.evry-afp__cta {
	margin: 32px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.evry-afp__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--evry-brand);
	color: #fff !important;
	padding: 10px 22px;
	border-radius: 999px;
	font-weight: 600;
	font-size: .975rem;
	letter-spacing: -.01em;
	text-decoration: none !important;
	border: 1px solid transparent;
	transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
	box-shadow: 0 6px 18px -8px rgba(245, 159, 10, .65);
}

.evry-afp__btn:hover {
	background: #E08F04;
	transform: translateY(-1px);
	box-shadow: 0 10px 24px -10px rgba(245, 159, 10, .7);
}

.evry-afp__btn--ghost {
	background: #fff;
	color: var(--evry-ink) !important;
	border-color: var(--evry-line-2);
	box-shadow: none;
}

.evry-afp__btn--ghost:hover {
	background: var(--evry-brand-tint);
	border-color: #F6E2BC;
	box-shadow: none;
}

.evry-afp__btn--dark {
	background: var(--evry-ink);
	box-shadow: 0 8px 22px -12px rgba(11, 15, 25, .8);
}

.evry-afp__btn--dark:hover {
	background: #1B2233;
}

/* Stat strip */

.evry-afp__facts {
	margin: 52px auto 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	background: #fff;
	border: 1px solid var(--evry-line);
	border-radius: var(--evry-radius-lg);
	overflow: hidden;
}

.evry-afp__fact {
	padding: 26px 18px;
	position: relative;
}

.evry-afp__fact + .evry-afp__fact::before {
	content: '';
	position: absolute;
	left: 0;
	top: 18px;
	bottom: 18px;
	width: 1px;
	background: var(--evry-line);
}

.evry-afp__fact-v {
	display: block;
	font-size: 1.9rem;
	font-weight: 600;
	letter-spacing: -.03em;
	color: var(--evry-ink);
	line-height: 1.1;
}

.evry-afp__fact-l {
	display: block;
	margin-top: 6px;
	font-size: .8125rem;
	letter-spacing: .02em;
	color: var(--evry-ink-soft);
}

.evry-afp__payout-note {
	margin: 18px 0 0;
	font-size: .875rem;
	letter-spacing: .01em;
	color: var(--evry-ink-soft);
	text-align: center;
}

/* -------------------------------------------------------------- Sections */

.evry-afp__sec {
	padding: 84px 0;
	background: #fff;
	border-radius: var(--evry-radius-xl);
}

/* Tinted bands read as distinct rounded cards; keep a little breathing
   room so adjacent radii don't visually collide. */
.evry-afp__sec--white {
	background: var(--evry-bg-alt);
	margin: 12px 0;
}

@media (max-width: 640px) {
	.evry-afp,
	.evry-afp__hero,
	.evry-afp__final,
	.evry-afp__sec {
		border-radius: var(--evry-radius-lg);
	}
}

.evry-afp__h2 {
	font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
	margin: 0 0 12px;
	font-size: clamp(1.6rem, 3vw, 2.35rem);
	font-weight: 600;
	letter-spacing: -.025em;
	line-height: 1.15;
	text-align: center;
}

.evry-afp__lead {
	max-width: 620px;
	margin: 0 auto 36px;
	text-align: center;
	color: var(--evry-ink-soft);
	line-height: 1.7;
}

.evry-afp__h2 + .evry-afp__steps,
.evry-afp__h2 + .evry-afp__grid2,
.evry-afp__h2 + .evry-afp__tiers,
.evry-afp__h2 + .evry-afp__calc,
.evry-afp__h2 + .evry-afp__who,
.evry-afp__h2 + .evry-afp__faq {
	margin-top: 44px;
}

/* Steps */

.evry-afp__steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.evry-afp__step {
	position: relative;
	background: #fff;
	border: 1px solid var(--evry-line);
	border-radius: var(--evry-radius);
	padding: 30px 28px;
	transition: border-color .18s ease, transform .18s ease;
}

.evry-afp__step:hover {
	border-color: #F6E2BC;
	transform: translateY(-2px);
}

.evry-afp__step-n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 12px;
	background: var(--evry-brand-soft);
	color: var(--evry-brand-dark);
	font-weight: 600;
	font-size: .95rem;
}

.evry-afp h2,
.evry-afp h3,
.evry-afp h4,
.evry-afp__step h3,
.evry-afp__card h3 {
	font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.evry-afp__step h3,
.evry-afp__card h3 {
	margin: 18px 0 8px;
	font-size: 1.075rem;
	font-weight: 600 !important;
	letter-spacing: -.015em;
}

.evry-afp__step p,
.evry-afp__card p {
	margin: 0;
	color: var(--evry-ink-soft);
	line-height: 1.7;
	font-size: .95rem;
}

/* Perk cards */

.evry-afp__grid2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
}

.evry-afp__card {
	position: relative;
	background: #fff;
	border: 1px solid var(--evry-line);
	border-radius: var(--evry-radius);
	padding: 28px 30px;
	overflow: hidden;
}

.evry-afp__card::before {
	content: '';
	position: absolute;
	inset: 0 auto 0 0;
	width: 3px;
	background: linear-gradient(180deg, var(--evry-brand), #FFD489);
}

/* Tiers */

.evry-afp__tiers {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	background: #fff;
	border: 1px solid var(--evry-line);
	border-radius: var(--evry-radius-lg);
	overflow: hidden;
}

.evry-afp__tier {
	padding: 24px 26px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 10px;
	border-top: 1px solid var(--evry-line);
	border-left: 1px solid var(--evry-line);
	background: #fff;
}

.evry-afp__tier:nth-child(-n+3) {
	border-top: 0;
}

.evry-afp__tier:nth-child(3n+1) {
	border-left: 0;
}

.evry-afp__tier-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--evry-tier, #F59F0A);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--evry-tier, #F59F0A) 18%, transparent);
}

.evry-afp__tier-name {
	font-weight: 600;
	letter-spacing: -.01em;
}

.evry-afp__tier-rate {
	font-weight: 600;
	color: var(--evry-brand-dark);
	font-size: 1rem;
	background: var(--evry-brand-soft);
	border-radius: 999px;
	padding: 4px 12px;
}

.evry-afp__tier-req {
	grid-column: 1 / -1;
	font-size: .8125rem;
	color: var(--evry-ink-soft);
}

/* Calculator */

.evry-afp__calc {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	border: 1px solid var(--evry-line);
	border-radius: var(--evry-radius-lg);
	overflow: hidden;
	background: #fff;
	box-shadow: none !important;
}

.evry-afp__calc-controls {
	background:
		radial-gradient(120% 80% at 0% 0%, #FFF7E7 0%, rgba(255, 247, 231, 0) 60%),
		#fff;
	padding: 36px;
	box-shadow: none !important;
}

.evry-afp__calc-controls *,
.evry-afp__calc-controls input[type="range"] {
	box-shadow: none !important;
}

.evry-afp__calc-out {
	background: var(--evry-ink);
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 22px;
	padding: 36px;
}

.evry-afp__calc-controls label {
	display: block;
	margin-bottom: 28px;
	font-size: .9rem;
	font-weight: 500;
	color: var(--evry-ink-2);
}

.evry-afp__calc-controls label:last-child {
	margin-bottom: 0;
}

.evry-afp__calc-controls input[type="range"] {
	width: 100%;
	margin: 14px 0 6px;
	accent-color: var(--evry-brand);
}

.evry-afp__calc-controls output {
	display: inline-block;
	font-weight: 600;
	color: var(--evry-brand-dark);
	background: var(--evry-brand-soft);
	border-radius: 8px;
	padding: 2px 10px;
	font-size: .9rem;
}

.evry-afp__calc-l {
	display: block;
	font-size: .75rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .55);
}

.evry-afp__calc-v {
	display: block;
	margin-top: 6px;
	font-size: 2.25rem;
	font-weight: 600;
	letter-spacing: -.03em;
	color: #FFC761;
	line-height: 1.1;
}

.evry-afp__calc-note {
	margin: 0;
	font-size: .78rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, .5);
	border-top: 1px solid rgba(255, 255, 255, .12);
	padding-top: 16px;
}

/* Who it's for */

.evry-afp__who {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0;
	border: 1px solid var(--evry-line);
	border-radius: var(--evry-radius-lg);
	overflow: hidden;
	background: #fff;
}

.evry-afp__who li {
	position: relative;
	padding: 20px 24px 20px 52px;
	color: var(--evry-ink-2);
	line-height: 1.6;
	font-size: .975rem;
	border-top: 1px solid var(--evry-line);
	border-left: 1px solid var(--evry-line);
}

.evry-afp__who li:nth-child(-n+2) {
	border-top: 0;
}

.evry-afp__who li:nth-child(odd) {
	border-left: 0;
}

.evry-afp__who li::before {
	content: '';
	position: absolute;
	left: 24px;
	top: 24px;
	width: 14px;
	height: 14px;
	border-radius: 5px;
	background: var(--evry-brand-soft);
	box-shadow: inset 0 0 0 2px var(--evry-brand);
}


/* FAQ */

/* Matches the Evrycard FAQ Elementor widget (.evry-faq) exactly. */
.evry-afp__faq {
	max-width: 900px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.evry-afp__faq details {
	border: 1px solid #F59F0A29;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	transition: background .25s ease, border-color .25s ease;
}

.evry-afp__faq details[open] {
	background: #FFFCF5;
}

.evry-afp__faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	line-height: 1.4;
	color: var(--evry-ink);
}

.evry-afp__faq summary::-webkit-details-marker {
	display: none;
}

/* Plus icon that collapses to a minus, same as the widget. */
.evry-afp__faq summary::after {
	content: '';
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	background:
		linear-gradient(currentColor, currentColor) center/100% 2px no-repeat,
		linear-gradient(currentColor, currentColor) center/2px 100% no-repeat;
	color: var(--evry-brand);
	border-radius: 2px;
	transition: transform .25s ease;
}

.evry-afp__faq details[open] summary::after {
	background:
		linear-gradient(currentColor, currentColor) center/100% 2px no-repeat;
}

.evry-afp__faq p {
	margin: 0;
	padding: 0 22px 20px;
	color: var(--evry-ink-soft);
	line-height: 1.6;
}

@media (max-width: 600px) {
	.evry-afp__faq summary {
		padding: 14px 16px;
		gap: 12px;
	}

	.evry-afp__faq p {
		padding: 0 16px 16px;
	}
}


/* Final CTA */

.evry-afp__final {
	position: relative;
	background:
		radial-gradient(90% 120% at 50% 0%, rgba(245, 159, 10, .28) 0%, rgba(245, 159, 10, 0) 62%),
		var(--evry-ink);
	color: #fff;
	text-align: center;
	padding: 64px 0;
	border-radius: var(--evry-radius-xl);
	overflow: hidden;
}

.evry-afp__final h2 {
	margin: 0 0 12px;
	font-size: clamp(1.6rem, 3vw, 2.35rem);
	font-weight: 600;
	letter-spacing: -.025em;
}

.evry-afp__final p {
	margin: 0 0 26px;
	color: rgba(255, 255, 255, .7);
}

.evry-afp__final .evry-afp__btn--dark {
	background: var(--evry-brand);
	box-shadow: 0 12px 30px -14px rgba(245, 159, 10, .9);
}

.evry-afp__final .evry-afp__btn--dark:hover {
	background: #E08F04;
}

.evry-afp__final-help {
	margin-top: 20px !important;
	font-size: .9rem;
	color: rgba(255, 255, 255, .6);
}

.evry-afp__final-help a {
	color: #FFC761 !important;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 199, 97, .4);
}

/* ---------------------------------------------------------------- Mobile */

@media (max-width: 900px) {
	.evry-afp__facts { grid-template-columns: repeat(3, 1fr); }
	.evry-afp__steps,
	.evry-afp__grid2,
	.evry-afp__tiers,
	.evry-afp__who { grid-template-columns: 1fr; }
	.evry-afp__tier { border-left: 0; }
	.evry-afp__tier:nth-child(-n+3) { border-top: 1px solid var(--evry-line); }
	.evry-afp__tier:first-child { border-top: 0; }
	.evry-afp__who li { border-left: 0; }
	.evry-afp__who li:nth-child(2) { border-top: 1px solid var(--evry-line); }
	.evry-afp__calc { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.evry-afp__inner { padding: 0 18px; }
	.evry-afp__hero { padding: 60px 0 52px; }
	.evry-afp__sec { padding: 56px 0; }
	.evry-afp__final { padding: 48px 0; }
	.evry-afp__cta { flex-direction: column; }
	.evry-afp__btn { width: 100%; }
	.evry-afp__facts { grid-template-columns: 1fr; }
	.evry-afp__fact + .evry-afp__fact { border-top: 1px solid var(--evry-line); }
	.evry-afp__fact + .evry-afp__fact::before { display: none; }
	.evry-afp__calc-controls,
	.evry-afp__calc-out { padding: 26px; }
}

/* ------------------------------------------------------------------ */
/* Shadow reset — affiliate landing must render completely flat        */
/* ------------------------------------------------------------------ */
.evry-afp,
.evry-afp *,
.evry-afp-widget,
.evry-afp-widget *,
.evry-afp-fallback,
.evry-afp-fallback * {
	box-shadow: none !important;
	text-shadow: none !important;
	filter: none !important;
}

/* ------------------------------------------------------------------ */
/* Final CTA — theme heading colour override + trailing gap            */
/* ------------------------------------------------------------------ */

/* The theme paints all h2s ink-dark, which makes the CTA headline
   disappear against the dark band. Force the on-dark palette. */
.evry-afp .evry-afp__final h2,
.evry-afp .evry-afp__final h2 a {
	color: #fff !important;
	font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
	font-weight: 600 !important;
	letter-spacing: -.025em;
}

.evry-afp .evry-afp__final p,
.evry-afp .evry-afp__final a {
	font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.evry-afp .evry-afp__final p {
	color: rgba(255, 255, 255, .72) !important;
}

/* The shortcode is the last thing on the page — never leave a trailing
   band of whitespace under it. */
.evry-afp {
	margin-bottom: 0 !important;
}

.evry-afp .evry-afp__final {
	margin-bottom: 0 !important;
	padding-bottom: 64px;
}

/* Elementor leaves an empty child container after the widget on the
   affiliate page, which renders as a large blank block above the footer.
   Only collapse it on pages that actually render this shortcode. */
body:has(.evry-afp) .elementor-element.e-con:has(> .e-con-inner:empty) {
	display: none !important;
}

body:has(.evry-afp) .elementor-widget:has(> .evry-afp) {
	margin-bottom: 0 !important;
}

@media (max-width: 640px) {
	.evry-afp .evry-afp__final { padding-bottom: 48px; }
}
