/**
 * payment.css - the four payment screens, in this shop's own colours.
 *
 * The colours here are the shop's, not a payment company's: the navy of the
 * header, the red reserved for what changes the page or has gone wrong, and the
 * yellow kept for the dock's mark alone. Nothing here introduces a colour the
 * reader has not already seen on the way to the page, because a payment screen
 * that looks like a different website is a payment screen a reader hesitates at.
 *
 * The sizes are the ones the rest of the shop is set in: a heading that is read,
 * a name that is found and passed, a body of fourteen for reading, a caption of
 * eleven for the small print. On a phone the amount is the largest thing on the
 * screen after the Pay Now button, because that is what the reader came to
 * check; everything else gives way to it.
 *
 * One rule runs through all of it: the amount is never the thing that moves.
 * It is the same number in the same place while the gateway window is open and
 * after it closes, so a reader who watched the figure change has been looking at
 * a loading bar and not at their bill.
 */

/* The page box, on every screen. */

.ck-paypage {
	background: #fff;
	border: 1px solid var( --ck-border, #e3e6ee );
	border-radius: 14px;
	box-sizing: border-box;
	margin: 0 auto 26px;
	max-width: 640px;
	padding: 22px 20px 24px;
	width: 100%;
}

.ck-paypage .ck-h1 {
	color: var( --ck-navy, #011752 );
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.2;
	margin: 0 0 4px;
}

.ck-paypage .ck-h3 {
	color: var( --ck-navy, #011752 );
	font-size: 16px;
	font-weight: 800;
	line-height: 1.3;
	margin: 20px 0 8px;
}

.ck-paypage .ck-muted {
	color: var( --ck-muted, #6b7385 );
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 14px;
}

/* The lines of the order. */

.ck-pay__items {
	border-top: 1px solid var( --ck-border, #e3e6ee );
}

.ck-pay__item {
	align-items: baseline;
	border-bottom: 1px solid var( --ck-border, #e3e6ee );
	display: flex;
	font-size: 14px;
	gap: 12px;
	justify-content: space-between;
	padding: 9px 0;
}

.ck-pay__itemname {
	color: var( --ck-navy, #011752 );
	font-weight: 600;
}

.ck-pay__itemname small {
	color: var( --ck-muted, #6b7385 );
	font-size: 12px;
	font-weight: 400;
	margin-left: 4px;
}

.ck-pay__itemprice {
	color: var( --ck-navy, #011752 );
	font-weight: 700;
	white-space: nowrap;
}

/* The bill. */

.ck-pay__rows {
	margin: 14px 0 0;
}

.ck-pay__rows > div {
	align-items: baseline;
	color: var( --ck-muted, #6b7385 );
	display: flex;
	font-size: 14px;
	gap: 12px;
	justify-content: space-between;
	padding: 4px 0;
}

.ck-pay__rows .is-grand {
	border-top: 1px solid var( --ck-border, #e3e6ee );
	color: var( --ck-navy, #011752 );
	font-size: 18px;
	font-weight: 800;
	margin-top: 6px;
	padding-top: 10px;
}

/* The note above the button. */

.ck-pay__note {
	color: var( --ck-muted, #6b7385 );
	font-size: 12px;
	line-height: 1.55;
	margin: 14px 0 12px;
}

/* The button. It is the page. */

.ck-pay__now {
	align-items: center;
	background: var( --ck-navy, #011752 );
	border: 0;
	border-radius: 10px;
	color: #fff;
	display: flex;
	font-size: 16px;
	font-weight: 800;
	gap: 8px;
	justify-content: center;
	min-height: 48px;
	padding: 12px 18px;
	width: 100%;
}

.ck-pay__now:hover,
.ck-pay__now:focus-visible {
	background: #0a2170;
}

.ck-pay__secure {
	align-items: flex-start;
	color: var( --ck-muted, #6b7385 );
	display: flex;
	font-size: 11px;
	gap: 6px;
	line-height: 1.5;
	margin: 12px 0 0;
}

/* The result screens: a mark, a line, and a box of facts. */

.ck-paypage--result {
	text-align: center;
}

.ck-paypage--result .ck-muted {
	margin-left: auto;
	margin-right: auto;
	max-width: 46ch;
}

.ck-pay__tick {
	align-items: center;
	background: #e8f6ec;
	border-radius: 50%;
	color: #1a9e4b;
	display: flex;
	font-size: 30px;
	height: 76px;
	justify-content: center;
	margin: 0 auto 16px;
	width: 76px;
}

.ck-pay__tick--no {
	background: #fdecec;
	color: var( --ck-red, #d92027 );
}

.ck-pay__tick--wait {
	background: #fff6e5;
	color: #b47700;
}

.ck-pay__box {
	border: 1px solid var( --ck-border, #e3e6ee );
	border-radius: 12px;
	margin: 18px 0;
	text-align: left;
}

.ck-pay__box > div {
	align-items: baseline;
	border-bottom: 1px solid var( --ck-border, #e3e6ee );
	display: flex;
	gap: 12px;
	justify-content: space-between;
	padding: 11px 14px;
}

.ck-pay__box > div:last-child {
	border-bottom: 0;
}

.ck-pay__label {
	color: var( --ck-muted, #6b7385 );
	font-size: 13px;
}

.ck-pay__box strong {
	color: var( --ck-navy, #011752 );
	font-size: 14px;
	font-weight: 800;
}

.ck-paypage--receipt {
	text-align: left;
}

.ck-paypage--result .ck-btn,
.ck-paypage--receipt .ck-btn {
	margin-bottom: 10px;
}

/* A phone: the box has no outside edge of its own, and the button is the width
   of a thumb and the height of one. */

@media ( max-width: 760px ) {

	.ck-paypage {
		border-left: 0;
		border-radius: 0;
		border-right: 0;
		padding: 18px 14px 22px;
	}

	.ck-paypage .ck-h1 {
		font-size: 20px;
	}

	.ck-pay__now {
		min-height: 48px;
	}

	.ck-pay__rows .is-grand {
		font-size: 17px;
	}
}

/* A tablet: the same box, with room around it. */

@media ( min-width: 761px ) and ( max-width: 1024px ) {

	.ck-paypage {
		max-width: 720px;
	}
}