/**
 * Fit Football — the cart page.
 *
 * Same rules as the product page and the bag drawer: white ground, hairline
 * rules, uppercase display type for headings, one dark action. The summary
 * card is the only thing that sits still while the lines scroll past it.
 */

.ffcp {
	max-width: 1180px;
	margin: 0 auto;
	padding: 34px 20px 80px;
	font-family: var(--ff-font-body, 'Inter', system-ui, sans-serif);
	color: var(--ff-ink, #0b0f14);
}

.ffcp-head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding-bottom: 16px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--pdp-line, #e6e6e6);
}

.ffcp-head h1 {
	margin: 0;
	font-family: var(--ff-font-display, 'Anton', sans-serif);
	font-size: clamp(1.6rem, 4vw, 2.1rem);
	font-weight: 400;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.ffcp-head span {
	color: var(--ff-ink-mute, #767676);
	font-size: var(--ff-text-sm, .875rem);
}

.ffcp-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 40px;
	align-items: start;
}

/* ---- lines ------------------------------------------------------------ */

.ffcp-line {
	display: grid;
	grid-template-columns: 108px minmax(0, 1fr) auto;
	gap: 18px;
	padding: 20px 0;
	border-bottom: 1px solid var(--pdp-line, #e6e6e6);
}

.ffcp-line:first-child {
	border-top: 1px solid var(--pdp-line, #e6e6e6);
}

.ffcp-line-img {
	display: block;
	background: var(--pdp-soft, #f5f5f5);
	border-radius: 3px;
	overflow: hidden;
	aspect-ratio: 1;
}

.ffcp-line-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ffcp-line-main {
	min-width: 0;
}

.ffcp-line-name {
	display: block;
	margin-bottom: 6px;
	color: inherit;
	font-size: var(--ff-text-md, 1rem);
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.ffcp-line-opt {
	display: block;
	color: var(--ff-ink-mute, #767676);
	font-size: var(--ff-text-xs, .75rem);
	line-height: 1.7;
}

.ffcp-line-opt em {
	font-style: normal;
	opacity: .7;
}

.ffcp-line-foot {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 14px;
}

.ffcp-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--pdp-line, #e6e6e6);
	border-radius: 3px;
}

.ffcp-qty-b {
	width: 34px;
	height: 34px;
	border: 0;
	background: none;
	font-size: 1rem;
	color: inherit;
	cursor: pointer;
}

.ffcp-qty-n {
	min-width: 28px;
	text-align: center;
	font-size: var(--ff-text-sm, .875rem);
	font-variant-numeric: tabular-nums;
}

.ffcp-line-x {
	border: 0;
	background: none;
	padding: 0;
	color: var(--ff-ink-mute, #767676);
	font-family: inherit;
	font-size: var(--ff-text-xs, .75rem);
	text-decoration: underline;
	cursor: pointer;
}

.ffcp-line-price {
	font-size: var(--ff-text-md, 1rem);
	white-space: nowrap;
}

/* ---- summary ---------------------------------------------------------- */

.ffcp-side {
	position: sticky;
	top: 90px;
	display: grid;
	gap: 16px;
}

.ffcp-card {
	padding: 22px;
	border: 1px solid var(--pdp-line, #e6e6e6);
	border-radius: 5px;
}

.ffcp-card h2 {
	margin: 0 0 16px;
	font-family: var(--ff-font-display, 'Anton', sans-serif);
	font-size: 1.05rem;
	font-weight: 400;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.ffcp-totals {
	margin: 0 0 18px;
}

.ffcp-totals > div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	padding: 5px 0;
	color: var(--ff-ink-mute, #767676);
	font-size: var(--ff-text-sm, .875rem);
}

.ffcp-totals > div.is-off {
	color: #17913a;
}

.ffcp-totals > div.is-total {
	margin-top: 10px;
	padding-top: 12px;
	border-top: 1px solid var(--pdp-line, #e6e6e6);
	color: var(--ff-ink, #0b0f14);
	font-size: 1.05rem;
	font-weight: 700;
}

.ffcp-totals dt {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.ffcp-totals dd {
	margin: 0;
	white-space: nowrap;
}

.ffcp-coupon-x {
	border: 0;
	background: none;
	padding: 0 2px;
	color: inherit;
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	opacity: .7;
}

.ffcp-code {
	display: flex;
	gap: 8px;
	margin-bottom: 8px;
}

.ffcp-code input {
	flex: 1;
	min-width: 0;
	padding: 12px;
	border: 1px solid var(--pdp-line, #e6e6e6);
	border-radius: 3px;
	font-family: inherit;
	font-size: var(--ff-text-sm, .875rem);
	text-transform: uppercase;
}

.ffcp-code input:focus {
	outline: none;
	border-color: var(--ff-ink, #0b0f14);
}

.ffcp-code button {
	padding: 12px 16px;
	border: 1px solid var(--ff-ink, #0b0f14);
	border-radius: 3px;
	background: #fff;
	font-family: inherit;
	font-size: var(--ff-text-xs, .75rem);
	font-weight: 700;
	cursor: pointer;
}

.ffcp-code-msg {
	margin: 0 0 12px;
	color: #17913a;
	font-size: var(--ff-text-xs, .75rem);
}

.ffcp-code-msg.is-bad {
	color: var(--ff-sale, #b42318);
}

.ffcp-code-msg[hidden] {
	display: none !important;
}

/* The one action on this page. */
.ffcp-go {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin-top: 12px;
	padding: 16px 18px;
	border: 0;
	border-radius: 4px;
	/* The one button on this page that starts a payment wears the checkout's
	   green, the same as the drawer and the sheet it opens. */
	background: var(--ff-brand-ink, #0a7a46);
	color: #fff;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	transition: transform .16s ease;
}

.ffcp-go:hover {
	transform: translateY(-1px);
}

.ffcp-go-mark svg {
	width: 26px;
	height: 26px;
	display: block;
	color: #fff;
}

.ffcp-go-txt strong {
	display: block;
	font-size: var(--ff-text-sm, .875rem);
	font-weight: 700;
	letter-spacing: .02em;
}

.ffcp-go-txt span {
	display: block;
	margin-top: 2px;
	font-size: var(--ff-text-xs, .75rem);
	opacity: .72;
}

.ffcp-safe {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 12px 0 0;
	color: var(--ff-ink-mute, #767676);
	font-size: var(--ff-text-xs, .75rem);
}

.ffcp-back {
	display: block;
	margin-top: 14px;
	color: var(--ff-ink-mute, #767676);
	font-size: var(--ff-text-xs, .75rem);
	text-align: center;
	text-decoration: underline;
}

.ffcp-trust {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.ffcp-trust li {
	position: relative;
	padding-left: 22px;
	color: var(--ff-ink-mute, #767676);
	font-size: var(--ff-text-xs, .75rem);
}

.ffcp-trust li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: .45em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #17913a;
}

/* ---- empty ------------------------------------------------------------ */

.ffcp-empty {
	display: grid;
	justify-items: center;
	gap: 14px;
	padding: 90px 20px;
	text-align: center;
}

.ffcp-empty h1 {
	margin: 0;
	font-family: var(--ff-font-display, 'Anton', sans-serif);
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 400;
	text-transform: uppercase;
}

.ffcp-empty p {
	margin: 0;
	color: var(--ff-ink-mute, #767676);
}

.ffcp-btn {
	display: inline-block;
	padding: 15px 28px;
	border-radius: 3px;
	background: var(--ff-ink, #0b0f14);
	color: #fff;
	font-size: var(--ff-text-sm, .875rem);
	font-weight: 700;
	text-decoration: none;
}

/* A line on its way out is the only thing that moves. The page used to dim
   from end to end while one row was removed, which read as a stall. */
.ffcp-line {
	overflow: hidden;
	transition: height .28s cubic-bezier(.22,.61,.36,1), opacity .22s ease,
		padding .28s cubic-bezier(.22,.61,.36,1);
}

.ffcp-line.is-working {
	opacity: .5;
	pointer-events: none;
}

.ffcp-line.is-going {
	border-bottom-color: transparent;
}

@media (max-width: 900px) {
	.ffcp-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}

	.ffcp-side {
		position: static;
	}
}

@media (max-width: 520px) {
	.ffcp-line {
		grid-template-columns: 84px minmax(0, 1fr);
	}

	.ffcp-line-price {
		grid-column: 2;
		margin-top: 6px;
	}
}
