/**
 * 结账页卡片表单样式。
 *
 * .sf-iframe-field 是 Spreedly iframe 的挂载点，外部 CSS 只能控制它的外框，
 * 框内文字样式必须通过 Spreedly.setStyle() 注入。
 */

.sf-card-form {
	margin-top: 12px;
}

.sf-card-form .sf-description {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.5;
	opacity: 0.8;
}

.sf-field {
	margin-bottom: 14px;
}

.sf-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.sf-field-row {
	display: flex;
	gap: 14px;
}

.sf-field-row .sf-field {
	flex: 1;
	min-width: 0;
}

.sf-input,
.sf-iframe-field {
	box-sizing: border-box;
	width: 100%;
	height: 44px;
	padding: 0 12px;
	border: 1px solid #cbd2dc;
	border-radius: 6px;
	background: #fff;
	font-size: 15px;
	line-height: 42px;
}

.sf-iframe-field {
	/* iframe 由 Spreedly 注入，这里只负责外框和内边距。 */
	overflow: hidden;
}

.sf-iframe-field iframe {
	display: block;
	width: 100%;
	height: 42px;
	border: 0;
}

.sf-expiry {
	display: flex;
	gap: 10px;
}

.sf-expiry .sf-input {
	flex: 1;
	min-width: 0;
	padding: 0 8px;
}

.sf-errors:empty {
	display: none;
}

.sf-errors {
	margin-top: 10px;
	padding: 10px 12px;
	border-radius: 6px;
	background: #fdecea;
	color: #a4211b;
	font-size: 14px;
	line-height: 1.45;
}
