.page-template-template-gift-cards #main_content {
	margin-top: 0;
}

#gc_hero {
	width: 100%;
	height: 47vh;
	overflow: hidden;
	position: relative;
	margin-bottom: 50px;
}
#gc_hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 25%;
	display: block;
}

/* two of these, with the full-width #gc_balance band between them */
.gc_wrap {
	max-width: 860px;
	padding: 0 10px;
	margin: 0 auto;
}
.gc_wrap-last {
	margin-bottom: 100px;
}

.gc_wrap h1 {
	font-weight: 600;
	line-height: 1.1;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 40px;
	margin: 0 0 20px;
}

#gc_intro {
	max-width: 560px;
	margin: 0 auto 55px;
	text-align: center;
	text-wrap: pretty;
}

#gc_grid {
	display: grid;
	/* fixed count, not auto-fit — a denomination must never be pushed onto a row of its own */
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.gc_card {
	width: 100%;
	/* the sheen has to come first — later layers paint underneath it */
	background:
		linear-gradient(107deg, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0.15) 45%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0.07) 56%, rgba(255, 255, 255, 0) 67%),
		linear-gradient(135deg, #c0a49c 0%, #ae928c 48%, #96786f 100%);
	aspect-ratio: 1.586;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 20px;
	padding: 0;
	cursor: pointer;
	/* inset lights the top edge, so the card reads as having a thickness */
	box-shadow: 0 12px 26px rgba(79, 70, 68, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.3);
	/* outline, not a border, so selecting a card cannot shift the grid */
	outline: 3px solid transparent;
	outline-offset: 5px;
	-webkit-transition: outline-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; transition: outline-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.gc_card:hover {
	transform: translateY(-5px);
	box-shadow: 0 18px 34px rgba(79, 70, 68, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}
.gc_card[aria-pressed="true"] {
	outline-color: #fff;
}
.gc_amount {
	color: #fefdfd;
	font-family: inherit;
	font-size: 32px;
	font-weight: 500;
	letter-spacing: 3px;
	line-height: 1;
}

#gc_actions {
	margin-top: 45px;
	text-align: center;
}

.gc_btn {
	display: inline-block;
	min-width: 260px;
	border: 1px solid #4f4644;
	background: none;
	color: #4f4644;
	padding: 15px 30px;
	font-family: inherit;
	font-size: 13px;
	line-height: 1;
	letter-spacing: 1px;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	-webkit-transition: all 0.2s ease; transition: all 0.2s ease;
}
.gc_btn:hover {
	border-color: #fff;
	color: #fff;
	border-radius: 35px;
}

.gc_section {
	border-top: 1px solid #fff;
	margin-top: 70px;
	padding-top: 40px;
}
.gc_section h2,
#gc_balance h2 {
	font-weight: 600;
	line-height: 1.1;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 22px;
	margin: 0 0 30px;
}

#gc_steps {
	max-width: 540px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 28px;
	text-align: left;
}
.gc_step {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}
.gc_step-num {
	flex: 0 0 34px;
	color: #fff;
	font-size: 25px;
	font-weight: 500;
	letter-spacing: 2px;
	line-height: 1;
}
.gc_step-title {
	margin: 0 0 4px;
	color: #4f4644;
	text-transform: uppercase;
	font-size: 15px;
	letter-spacing: 1px;
	font-weight: 500;
}
.gc_step p:last-child {
	margin: 0;
	text-wrap: pretty;
}

#gc_terms {
	border-top: 0;
	padding-top: 0;
	margin-top: 40px;
}
#gc_terms h2 {
	margin-bottom: 30px;
}
#gc_terms ul {
	max-width: 640px;
	margin: 0 auto;
	padding: 0 0 0 20px;
	font-size: 13px;
	line-height: 1.7;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
#gc_terms li {
	text-wrap: pretty;
}

/* full-width band, like .prod_faq on a product page */
#gc_balance {
	width: 100%;
	margin: 60px 0 40px;
	padding: 60px 10px;
	background: #fefdfd;
}
#gc_balance .pd-gift-card-check {
	max-width: 420px;
	margin: 0 auto;
	text-align: center;
}
.pd-gift-card-check-intro {
	margin: 0 0 24px;
	font-size: 13px;
	line-height: 1.7;
	text-wrap: pretty;
}
.pd-gift-card-check-fields {
	display: flex;
	align-items: stretch;
}
.pd-gift-card-check-fields input[type=text] {
	flex: 1;
	min-width: 0;
	background: none;
	border: 1px solid #4f4644;
	border-right: 0;
	padding: 0 16px;
	font-family: inherit;
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #4f4644;
	outline: none;
}
.pd-gift-card-check-fields input[type=text]::placeholder {
	letter-spacing: 0.5px;
	text-transform: none;
	color: #9c8d89;
}
.pd-gift-card-check-fields button {
	flex: none;
	border: 1px solid #4f4644;
	background: #4f4644;
	padding: 12px 20px;
	font-family: inherit;
	font-size: 13px;
	line-height: 1;
	letter-spacing: 1px;
	text-transform: uppercase;
	white-space: nowrap;
	color: #fefdfd;
	cursor: pointer;
	-webkit-transition: all 0.2s ease; transition: all 0.2s ease;
}
.pd-gift-card-check-fields button:hover {
	border-color: #ae928c;
	background: #ae928c;
	color: #fff;
}
.pd-gift-card-check-fields button[disabled] {
	border-color: #9c8d89;
	background: #9c8d89;
	cursor: default;
}
.pd-gift-card-check-result {
	margin: 22px 0 0;
	font-size: 18px;
	letter-spacing: 1px;
	color: #4f4644;
}
.pd-gift-card-check-error {
	font-size: 13px;
	letter-spacing: 0.5px;
}
footer {
	margin-top: 80px;
}

@media only screen and (max-width: 810px) {
	
	#gc_hero {
		height: 25vh;
		margin-bottom: 30px;
	}
	.gc_wrap h1 {
		font-size: 26px;
	}
	
}

/* below this, three to a row leaves each card too narrow to set "£250" at a readable size.
   Two across here is also about the width three across has just reached, so the cards do not
   jump size at the breakpoint */
@media only screen and (max-width: 700px) {

	#gc_grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
		/* without the cap, two across makes the cards wider here than they are on desktop */
		max-width: 420px;
		margin: 0 auto;
	}

}

@media only screen and (max-width: 560px) {

	/* two across is down to about 140px a card on the smallest phone */
	.gc_card {
		border-radius: 16px;
		box-shadow: 0 8px 18px rgba(79, 70, 68, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.3);
		outline-width: 2px;
		outline-offset: 4px;
	}
	.gc_amount {
		font-size: 26px;
		letter-spacing: 2px;
	}

	/* the code is 18 characters and the button eats the rest of a phone's width */
	.pd-gift-card-check-fields {
		display: block;
	}
	.pd-gift-card-check-fields input[type=text] {
		width: 100%;
		border-right: 1px solid #4f4644;
		padding: 13px 16px;
		text-align: center;
	}
	.pd-gift-card-check-fields button {
		width: 100%;
		margin-top: 10px;
	}
	
}
