/* ==========================================================================
   Gift Card (Stripe demo) — [stripe_gift_card]
   Colors/fonts match the site's existing brand (Additional CSS defines
   'PP Editorial Old' and 'Suisse Int\'l' globally, so they're reused here
   rather than redeclared) rather than introducing a new visual style.
   ========================================================================== */

.sgcd-wrap {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 48px;
	max-width: 980px;
	margin: 0 auto;
	padding: 48px 24px;
	align-items: start;
}

.sgcd-success {
	grid-template-columns: 1fr 1fr;
	align-items: center;
}

/* ---- Card visual ---- */

.sgcd-card-preview {
	/* min-height (not aspect-ratio) so the box always grows to fit its
	   content — brand + label + a 56px amount + the "for" line was
	   sometimes taller than a fixed 1.6:1 box, and overflow:hidden was
	   silently clipping the bottom of the amount and hiding the "for"
	   line entirely. */
	position: sticky;
	top: 32px;
	min-height: 220px;
	border-radius: 18px;
	padding: 32px;
	background: linear-gradient(135deg, #6e1a68 0%, #8c0732 100%);
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 10px;
	box-shadow: 0 20px 45px rgba(110, 26, 104, 0.35);
	overflow: hidden;
}

.sgcd-card-preview::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.14), transparent 55%);
	pointer-events: none;
}

.sgcd-card-brand {
	font-family: 'Suisse Int\'l Mono', 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	opacity: 0.85;
}

.sgcd-card-label {
	font-family: 'PP Editorial Old', serif;
	font-style: italic;
	font-size: 28px;
	line-height: 1.1;
	margin-top: 4px;
}

.sgcd-card-amount {
	font-family: 'PP Editorial Old', serif;
	font-size: 56px;
	line-height: 1;
	margin-top: 12px;
	transition: opacity 0.15s ease;
}

.sgcd-card-to {
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	opacity: 0.9;
	margin-top: auto;
	padding-top: 18px;
}

.sgcd-card-code {
	font-family: 'Suisse Int\'l Mono', monospace;
	font-size: 14px;
	letter-spacing: 0.08em;
	background: rgba(255, 255, 255, 0.16);
	display: inline-block;
	padding: 6px 12px;
	border-radius: 6px;
	margin-top: 10px;
	width: fit-content;
}

/* ---- Form ---- */

.sgcd-form {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sgcd-field-label {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #1d1d1d;
	margin: 18px 0 6px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.sgcd-form > .sgcd-field-label:first-child {
	margin-top: 0;
}

.sgcd-amounts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sgcd-amount-btn {
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 600;
	background: #fff;
	border: 1.5px solid #d9d3d0;
	color: #1d1d1d;
	border-radius: 999px;
	padding: 10px 22px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.sgcd-amount-btn:hover {
	border-color: #6e1a68;
}

.sgcd-amount-btn.is-selected {
	background: #000;
	border-color: #000;
	color: #fff;
}

.sgcd-custom-amount {
	margin-top: 10px;
}

.sgcd-form input[type="text"],
.sgcd-form input[type="email"],
.sgcd-form input[type="number"],
.sgcd-form textarea {
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	padding: 12px 14px;
	border: 1.5px solid #d9d3d0;
	border-radius: 8px;
	background: #fff;
	color: #1d1d1d;
	width: 100%;
	box-sizing: border-box;
}

.sgcd-form input:focus,
.sgcd-form textarea:focus {
	outline: none;
	border-color: #6e1a68;
}

.sgcd-form textarea {
	resize: vertical;
	font-family: inherit;
}

.sgcd-submit {
	font-family: 'Inter', sans-serif;
	display: inline-block;
	text-align: center;
	text-decoration: none;
	margin-top: 26px;
	background: #000;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 16px 28px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.sgcd-submit:hover {
	opacity: 0.85;
	color: #fff;
}

.sgcd-test-note {
	font-family: 'Inter', sans-serif;
	font-size: 12.5px;
	color: #7a7a7a;
	margin-top: 12px;
}

.sgcd-notice {
	grid-column: 1 / -1;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	padding: 14px 18px;
	border-radius: 8px;
	margin-bottom: 8px;
}

.sgcd-notice-cancel {
	background: #fdf3e7;
	color: #6b4c1e;
}

.sgcd-notice-error {
	background: #fdeaea;
	color: #7a1f1f;
}

/* ---- Success state ---- */

.sgcd-card-preview-final {
	/* The success card shows two extra lines (recipient + code chip) on top
	   of the form card's content, so it needs a bit more room. */
	min-height: 260px;
}

.sgcd-card-preview-final .sgcd-card-amount {
	font-size: 48px;
}

.sgcd-success-copy h3 {
	font-family: 'PP Editorial Old', serif;
	font-size: 30px;
	font-weight: 400;
	color: #1d1d1d;
	margin: 0 0 14px;
}

.sgcd-success-copy p {
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	color: #333;
	line-height: 1.6;
}

.sgcd-message-quote {
	font-family: 'PP Editorial Old', serif;
	font-style: italic;
	font-size: 17px;
	color: #6e1a68;
}

.sgcd-buy-another {
	display: inline-block;
}

@media (max-width: 780px) {
	.sgcd-wrap,
	.sgcd-success {
		grid-template-columns: 1fr;
		padding: 32px 20px;
	}

	.sgcd-card-preview {
		position: static;
		aspect-ratio: auto;
		min-height: 220px;
	}
}
