/* Gold Maps gift cards: the buy and redeem forms, and the gift part of the thank-you page. Colors and sizes follow BRAND.md. */
.gm-gift-form {
	--gm-ink: var(--wp--preset--color--main, #1E2B2F);
	--gm-gold: var(--wp--preset--color--primary, #D6A21E);
	--gm-card: var(--wp--preset--color--card, #FBF8F0);
	--gm-sheet: var(--wp--preset--color--tertiary, #EAE2CF);
	--gm-note: var(--wp--preset--color--secondary, #4A5357);
	max-width: 640px;
	background: var(--gm-card);
	border-radius: 22px;
	padding: clamp(20px, 4vw, 32px);
	box-shadow: 0 1px 0 rgba(30, 43, 47, .06), 0 22px 50px rgba(30, 43, 47, .12);
	color: var(--gm-ink);
	font-size: 17px;
	line-height: 1.5;
}
.gm-gift-form p { margin: 0 0 18px; text-wrap: pretty; }
.gm-gift-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; align-items: start; }
.gm-redeem-code { align-items: end; } /* the Check button sits level with the code box */
.gm-gift-field label, .gm-gift-field legend { display: block; font-weight: 700; margin: 0 0 6px; }
.gm-gift-opt { font-weight: 400; color: var(--gm-note); }
.gm-gift-help { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--gm-note); }
.gm-gift-form input[type="text"],
.gm-gift-form input[type="email"],
.gm-gift-form input[type="date"],
.gm-gift-form select,
.gm-gift-form textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1.5px solid #8A7F6A;
	border-radius: 12px;
	background: #fff;
	color: var(--gm-ink);
	font: inherit;
}
.gm-gift-form textarea { min-height: 88px; resize: vertical; }
.gm-gift-form input:focus-visible, .gm-gift-form select:focus-visible, .gm-gift-form textarea:focus-visible { outline: 3px solid var(--gm-gold); outline-offset: 1px; }
.gm-gift-form input[readonly] { background: var(--gm-sheet); }
.gm-gift-deliver { border: 0; padding: 0; margin: 0 0 18px; }
.gm-gift-deliver label { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 400; margin: 0; cursor: pointer; }
.gm-gift-form .gm-gift-deliver input[type="radio"], .gm-gift-form .gm-redeem-states input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; accent-color: var(--gm-ink); flex: none; }
.gm-gift-form .gm-gift-deliver input[type="radio"]:focus-visible { border-radius: 50%; }
.gm-gift-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px solid var(--gm-ink); padding-top: 14px; font-weight: 700; }
.gm-gift-total strong { font-family: var(--wp--preset--font-family--display, "Fraunces", Georgia, serif); font-weight: 600; font-size: 34px; line-height: 1; }
.gm-gift-error { color: #B4432A; font-weight: 600; }
.gm-gift-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; margin-bottom: 14px; }
.gm-gift-pay > :only-child { grid-column: 1 / -1; }
.gm-gift-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 14px 24px;
	border: 0;
	border-radius: 999px;
	background: var(--gm-gold, #D6A21E);
	color: var(--gm-ink, #1E2B2F);
	font: 700 17px/1.2 var(--wp--preset--font-family--primary, "Public Sans", system-ui, sans-serif);
	text-decoration: none;
	cursor: pointer;
}
.gm-gift-pay .gm-gift-btn { width: 100%; }
.gm-gift-btn:hover { background: #C4911A; color: var(--gm-ink, #1E2B2F); }
.gm-gift-btn:disabled { opacity: .6; cursor: wait; }
.gm-gift-terms { font-size: 14px; color: var(--gm-note); margin: 0; }
.gm-gift-terms a { color: var(--wp--preset--color--primary-alt, #8A5A2B); }
.gm-redeem-code .gm-gift-field { margin-bottom: 18px; }
.gm-redeem-code input[name="code"] { font-family: var(--wp--preset--font-family--monospace, "IBM Plex Mono", ui-monospace, monospace); letter-spacing: .06em; text-transform: uppercase; }
.gm-redeem-intro { font-weight: 600; }
.gm-redeem-states { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 16px; }
.gm-redeem-states label { display: flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; }
.gm-redeem-states label:has(input:disabled) { color: var(--gm-note); cursor: not-allowed; }
.gm-redeem-count { font-size: 15px; color: var(--gm-note); }
@media (max-width: 600px) {
	.gm-gift-row, .gm-gift-pay { grid-template-columns: 1fr; }
}

/* The gift page's side column */
.gm-gift-cols { gap: clamp(28px, 5vw, 64px); }
.gm-gift-cols h2 { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.15; margin-top: 0; }
.gm-gift-cols h2 ~ h2 { margin-top: 36px; }
.gm-gift-cols h3 { font-size: 19px; margin: 22px 0 6px; }
.gm-gift-cols p, .gm-gift-cols li { text-wrap: pretty; }

/* Thank-you page after buying a card */
.gm-gift-done { max-width: 640px; background: var(--wp--preset--color--card, #FBF8F0); border-radius: 22px; padding: clamp(20px, 4vw, 32px); margin: 24px 0; box-shadow: 0 1px 0 rgba(30, 43, 47, .06), 0 14px 34px rgba(30, 43, 47, .08); }
.gm-gift-done p { margin: 0 0 14px; text-wrap: pretty; }
.gm-gift-done__what { font-weight: 700; }
.gm-gift-done__code { display: inline-block; background: var(--wp--preset--color--tertiary, #EAE2CF); border-radius: 12px; padding: 10px 16px; font-family: var(--wp--preset--font-family--monospace, "IBM Plex Mono", ui-monospace, monospace); font-size: 24px; letter-spacing: .06em; }
.gm-gift-done .gm-gift-help { font-size: 15px; color: var(--wp--preset--color--secondary, #4A5357); }
