/* Checkout Test Lab: landing page sections (problem, features, payment results, preview,
   good to know, need help). Loaded after qpp.css on this product's pages only. */

:root {
	--qpp-ctl-amber: #b45309;
	--qpp-ctl-amber-bg: #fdf1dc;
	--qpp-ctl-red-bg: #fbe6e6;
	--qpp-ctl-soft-line: #edf2f1;
}

/* Shared pieces */

.qpp-ctl-box {
	border: 1px solid var(--qpp-line);
	border-radius: var(--qpp-radius);
	background: var(--qpp-white);
	box-shadow: var(--qpp-shadow);
}

.qpp-ctl-tile {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px; height: 44px;
	border-radius: 12px;
	background: var(--qpp-brand);
	color: var(--qpp-white);
}
.qpp-ctl-tile .qpp-icon { width: 22px; height: 22px; }
.qpp-ctl-tile--soft { background: var(--qpp-tint); color: var(--qpp-brand); }
.qpp-ctl-tile--amber { background: var(--qpp-ctl-amber-bg); color: var(--qpp-ctl-amber); }

.qpp-ctl-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	align-self: flex-start;
	padding: 4px 10px;
	border: 1px solid var(--qpp-line);
	border-radius: 999px;
	background: var(--qpp-soft);
	color: var(--qpp-muted);
	font-size: .8rem;
	font-weight: 600;
	line-height: 1.4;
}
.qpp-ctl-chip .qpp-icon { width: 14px; height: 14px; color: var(--qpp-brand); }

/* 1. Problem */

.qpp-ctl-problem__title { max-width: 760px; margin-inline: auto; text-align: center; }

.qpp-ctl-problem__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 44px 0 24px;
}
.qpp-card.qpp-ctl-problem__item { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.qpp-card.qpp-ctl-problem__item p { color: var(--qpp-ink); font-size: 1.05rem; font-weight: 600; line-height: 1.4; }

.qpp-ctl-problem__flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; }

.qpp-ctl-note {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 20px 22px;
	border-radius: var(--qpp-radius);
	line-height: 1.55;
}
.qpp-ctl-note p { margin: 0; }
.qpp-ctl-note .qpp-icon { width: 22px; height: 22px; margin-top: 2px; }
.qpp-ctl-note--bad { background: var(--qpp-ctl-red-bg); color: #5c1a1a; }
.qpp-ctl-note--bad .qpp-icon { color: var(--qpp-no); }
.qpp-ctl-note--good { background: var(--qpp-tint); color: #0b3b37; font-weight: 600; }
.qpp-ctl-note--good .qpp-icon { color: var(--qpp-brand); }

.qpp-ctl-problem__arrow { align-self: center; justify-self: center; color: var(--qpp-brand); }
.qpp-ctl-problem__arrow .qpp-icon { width: 28px; height: 28px; }

/* 2. Features */

.qpp-ctl-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.qpp-card.qpp-ctl-feature { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.qpp-ctl-feature__head { display: flex; align-items: center; gap: 14px; }
.qpp-ctl-feature__head h3 { margin: 0; }
.qpp-ctl-feature__num { margin-inline-start: auto; color: var(--qpp-muted); font-size: .8rem; font-weight: 700; }
.qpp-card.qpp-ctl-feature p { flex: 1; }

/* 3. Seven payment results */

.qpp-ctl-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.qpp-ctl-group {
	--qpp-ctl-accent: var(--qpp-brand);
	--qpp-ctl-accent-bg: var(--qpp-tint);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.qpp-ctl-group--wait { --qpp-ctl-accent: var(--qpp-ctl-amber); --qpp-ctl-accent-bg: var(--qpp-ctl-amber-bg); }
.qpp-ctl-group--fail { --qpp-ctl-accent: var(--qpp-no); --qpp-ctl-accent-bg: var(--qpp-ctl-red-bg); }

.qpp-ctl-group__head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 22px;
	border-top: 4px solid var(--qpp-ctl-accent);
	border-bottom: 1px solid var(--qpp-line);
	background: var(--qpp-ctl-accent-bg);
}
.qpp-ctl-group__head .qpp-ctl-tile { background: var(--qpp-ctl-accent); }
.qpp-ctl-group__head h3 { margin: 0; font-size: 1.15rem; }
.qpp-ctl-group__head p { margin: 3px 0 0; color: var(--qpp-muted); font-size: .875rem; line-height: 1.4; }

.qpp-ctl-results { flex: 1; margin: 0; padding: 6px 22px 10px; list-style: none; }
.qpp-ctl-results li { padding: 16px 0; border-bottom: 1px solid var(--qpp-ctl-soft-line); }
.qpp-ctl-results li:last-child { border-bottom: 0; }
.qpp-ctl-results p { margin: 8px 0 0; color: var(--qpp-muted); font-size: .97rem; line-height: 1.55; }

.qpp-ctl-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 12px 5px 10px;
	border-radius: 999px;
	font-size: .875rem;
	font-weight: 700;
	line-height: 1.2;
}
.qpp-ctl-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.qpp-ctl-pill--processing { background: #dcf2e3; color: #14532d; }
.qpp-ctl-pill--completed { background: #dce9f5; color: #1e4e79; }
.qpp-ctl-pill--onhold { background: #fcebc8; color: #7a4b05; }
.qpp-ctl-pill--pending,
.qpp-ctl-pill--cancelled { background: #e8ecec; color: #3f4f52; }
.qpp-ctl-pill--failed { background: #fbdada; color: #8e1f1f; }
.qpp-ctl-pill--refunded { background: #e3e8f0; color: #334155; }

.qpp-ctl-tag {
	display: inline-block;
	margin-inline-start: 8px;
	padding: 2px 8px;
	border-radius: 6px;
	background: var(--qpp-tint);
	color: var(--qpp-brand-dark);
	font-size: .75rem;
	font-weight: 700;
	vertical-align: 1px;
}

/* 4. Preview */

.qpp-ctl-points { display: grid; gap: 10px; margin: 24px 0 26px; padding: 0; list-style: none; }
.qpp-ctl-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--qpp-ink); line-height: 1.5; }
.qpp-ctl-points .qpp-icon { width: 20px; height: 20px; margin-top: 2px; color: var(--qpp-brand); }

.qpp-ctl-window { min-width: 0; overflow: hidden; }
.qpp-ctl-window__bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--qpp-line);
	background: #f1f5f5;
}
.qpp-ctl-window__bar i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #cbd5d5; }
.qpp-ctl-window__bar span { margin-inline-start: 10px; color: var(--qpp-muted); font-size: .8rem; font-weight: 600; }
.qpp-ctl-window__body { padding: 20px 22px 22px; }
.qpp-ctl-window__body h3 { margin: 0 0 14px; font-size: 1.1rem; }

.qpp-ctl-window__label {
	margin: 16px 0 6px;
	color: var(--qpp-muted);
	font-size: .75rem;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.qpp-ctl-window__body h3 + .qpp-ctl-window__label { margin-top: 0; }

.qpp-ctl-reasons { margin: 0; padding: 0; list-style: none; border: 1px solid var(--qpp-line); border-radius: 12px; background: #fafcfc; }
.qpp-ctl-reasons li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid var(--qpp-ctl-soft-line); }
.qpp-ctl-reasons li:last-child { border-bottom: 0; }
.qpp-ctl-reasons li > div { min-width: 0; }
.qpp-ctl-reasons i { margin-top: 2px; }
.qpp-ctl-reasons small {
	display: block;
	margin-bottom: 2px;
	color: var(--qpp-muted);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.qpp-ctl-reasons span { font-size: .94rem; line-height: 1.5; }

/* 5. Good to know */

.qpp-ctl-know { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.qpp-ctl-know__item { display: flex; gap: 16px; padding: 22px 24px; }
.qpp-ctl-know__item h3 { margin: 0 0 6px; font-size: 1.05rem; }
.qpp-ctl-know__item p { margin: 0; color: var(--qpp-muted); font-size: .97rem; line-height: 1.6; }

/* 6. Need help: the whole card is clickable through the title link. */

.qpp-ctl-help { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.qpp-ctl-help__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.qpp-ctl-help__card h3 { margin: 0; font-size: 1.05rem; }
.qpp-ctl-help__card h3 a { color: var(--qpp-ink); text-decoration: none; }
.qpp-ctl-help__card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--qpp-radius); }
.qpp-ctl-help__card h3 a:focus-visible { outline: none; }
.qpp-ctl-help__card p { margin: 0; color: var(--qpp-muted); font-size: .94rem; line-height: 1.5; }
.qpp-ctl-help__go {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	color: var(--qpp-brand);
	font-size: .875rem;
	font-weight: 700;
}
.qpp-ctl-help__go .qpp-icon { width: 16px; height: 16px; }

.qpp-ctl-help__card:hover,
.qpp-ctl-help__card:focus-within {
	transform: translateY(-2px);
	border-color: var(--qpp-brand);
	box-shadow: 0 2px 4px rgb(11 42 46 / 6%), 0 14px 30px rgb(11 42 46 / 10%);
}
.qpp-ctl-help__card:hover h3 a { text-decoration: underline; }
.qpp-ctl-help__card:focus-within { outline: 3px solid var(--qpp-brand); outline-offset: 3px; }

/* Responsive (same breakpoints as the design reference) */

@media (max-width: 1020px) {
	.qpp-ctl-problem__grid,
	.qpp-ctl-groups,
	.qpp-ctl-problem__flow,
	.qpp-ctl-preview .qpp-split { grid-template-columns: minmax(0, 1fr); }
	.qpp-ctl-problem__arrow { transform: rotate(90deg); }
	.qpp-ctl-help { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
	.qpp-ctl-features,
	.qpp-ctl-know,
	.qpp-ctl-help { grid-template-columns: minmax(0, 1fr); }
	.qpp-card.qpp-ctl-feature { padding: 22px; }
	.qpp-ctl-know__item { padding: 20px; }
}
