/* Gift tickets: checkout recipients (split gifts) and the Site Settings choice. */

.c2w-gift-left {
	margin: 0 0 12px;
}

/* Recipient fields in two columns where the checkout is wide enough, one where it is not. */
.c2w-gift-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	column-gap: 16px;
}

.c2w-gift-grid > .form-row {
	float: none !important;
	width: auto !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.c2w-gift-grid > .c2w-gift-wide {
	grid-column: 1 / -1;
}

.c2w-gift-left.is-over .c2w-gift-left-n {
	color: #c53a2b;
}

.c2w-gift-person {
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 8px;
	padding: 12px 14px 4px;
	margin: 0 0 12px;
}

/* Manual Orders without split gifts: one recipient, no box around it. */
.c2w-gift-person--one {
	border: 0;
	padding: 0;
}

.c2w-gift-person::after {
	content: "";
	display: table;
	clear: both;
}

.c2w-gift-person h4 {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 8px;
	font-size: 15px;
}

/* Basket styles every button with an !important background, so the link look needs it too. */
.c2w-gift-remove {
	background: none !important;
	border: 0;
	padding: 0;
	color: #c53a2b !important;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}

.c2w-gift-remove[hidden],
.c2w-gift-add[hidden],
.c2w-gift-how[hidden],
.c2w-gift-by[hidden] {
	display: none;
}

.c2w-gift-how {
	margin: 12px 0 0;
}

/* Basket and Queen settings pages force every label to small inline-block capitals with
   !important, which ran the two options and their hints together. */
.c2w-gift-how-opt,
body.c2w-dashboard-page .tpl-site-settings #test_form fieldset.allfieldsets label.c2w-gift-how-opt {
	display: flex !important;
	gap: 10px;
	align-items: flex-start;
	margin: 0 0 10px !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	cursor: pointer;
}

.c2w-gift-how-opt input {
	margin-top: 3px;
}

/* Some settings pages set every label in capitals; the option text is a sentence. */
.c2w-gift-how-opt > span {
	text-transform: none;
	letter-spacing: normal;
}

/* Manual Orders: look like the "Seller / Team" section above it, which Traditional styles inline. */
.c2w-gift-manual > summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
	color: #1a237e;
	padding: 8px 0;
}

/* Same look as the page's "Clear Form" button. Basket forces button backgrounds with !important. */
.c2w-gift-manual .c2w-gift-add {
	background: #e8eaf6 !important;
	color: #1a237e !important;
	border: 0;
	border-radius: 6px;
	padding: 10px 18px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

.c2w-gift-manual .hint {
	margin: 4px 0 12px;
	font-size: 12px;
	line-height: 1.4;
	color: #6b7a99;
}
