/* NHPUK shop: items in a responsive grid, basket below. */

.nhpuk-shop__items {
	list-style: none;
	margin: 0 0 1.5em;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: 1.5em;
}

.nhpuk-shop__item {
	margin: 0;
	padding: 1em;
	border: 1px solid #ddd;
	border-radius: 4px;
	display: flex;
	flex-direction: column;
}

.nhpuk-shop__image img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto 0.75em;
}

.nhpuk-shop__title {
	margin: 0 0 0.5em;
}

.nhpuk-shop__price {
	font-weight: bold;
	font-size: 1.2em;
	margin: auto 0 0.5em;
}

.nhpuk-shop__quantity label {
	display: block;
	margin-bottom: 0.25em;
}

.nhpuk-shop__quantity input {
	width: 6em;
	font-size: 1.1em;
	padding: 0.3em;
}

.nhpuk-shop__basket {
	max-width: 28rem;
	padding: 1em;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.nhpuk-shop__basket-title {
	margin-top: 0;
}

.nhpuk-shop__totals {
	margin: 0 0 0.75em;
}

.nhpuk-shop__totals > div {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	padding: 0.25em 0;
}

.nhpuk-shop__totals dt,
.nhpuk-shop__totals dd {
	margin: 0;
}

.nhpuk-shop__grand {
	border-top: 1px solid #ccc;
	font-weight: bold;
}

.nhpuk-shop__postage-note {
	font-size: 0.9em;
}

.nhpuk-shop__pay {
	display: block;
	width: 100%;
	padding: 0.75em 1em;
	font-size: 1.1em;
	font-weight: bold;
	cursor: pointer;
	color: #111;
	background: #ffc439; /* PayPal yellow, with dark text for contrast. */
	border: 0;
	border-radius: 4px;
}

.nhpuk-shop__pay:hover {
	background: #f2ba36;
}

.nhpuk-shop__pay:focus-visible,
.nhpuk-shop__quantity input:focus-visible {
	outline: 3px solid #1d4ed8;
	outline-offset: 2px;
}

.nhpuk-shop__message:empty {
	display: none;
}

/* Without the script the basket can't work, so hide it; <noscript> explains. */
.nhpuk-shop:not(.nhpuk-shop--js) .nhpuk-shop__needs-js {
	display: none;
}
