/* ─── Order Summary Block ─────────────────────────────────────────────────── */

.bfp-order-summary {
	margin-top: 8px;
}

.bfp-order-summary .boldform-lite-form__label {
	font-weight: 600;
	margin-bottom: 10px;
}

.bfp-table-wrap {
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 16px;
	background: #fff;
}

.bfp-order-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	line-height: 1.5;
	margin:0
}

/* Header */
.bfp-order-table thead tr {
	background: #f8f9fa;
	border-bottom: 1px solid #e9ecef;
}

.bfp-order-table thead th {
	padding: 9px 14px;
	font-weight: 600;
	color: #6b7280;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .04em;
	white-space: nowrap;
}

.bfp-order-table thead th.bfp-col-price,
.bfp-order-table thead th.bfp-col-qty,
.bfp-order-table thead th.bfp-col-total {
	text-align: right;
}

/* Body rows */
.bfp-order-table tbody tr {
	border-bottom: 1px solid #f3f4f6;
	transition: background .1s;
}

.bfp-order-table tbody tr:last-child {
	border-bottom: none;
}

.bfp-order-table tbody td {
	padding: 11px 14px;
	color: #374151;
	vertical-align: middle;
}

.bfp-col-item {
	font-weight: 500;
}

.bfp-col-price,
.bfp-col-qty,
.bfp-col-total {
	text-align: right;
	white-space: nowrap;
	color: #4b5563;
}

.bfp-line-total {
	font-weight: 500;
	color: #111827;
}

/* Footer total row */
.bfp-order-table tfoot tr {
	background: #f8f9fa;
	border-top: 1px solid #e9ecef;
}

.bfp-order-table tfoot td {
	padding: 12px 14px;
}

.bfp-total-label {
	text-align: right;
	font-weight: 600;
	color: #374151;
	font-size: 13px;
}

.bfp-total-value {
	text-align: right;
	white-space: nowrap;
}

.bfp-grand-total {
	font-size: 17px;
	font-weight: 700;
	color: #111827;
}

/* ─── Gateway Section ─────────────────────────────────────────────────────── */

.bfp-gateway-ui {
	margin-top: 4px;
}

/* ─── Stripe Elements ─────────────────────────────────────────────────────── */

.bfp-stripe-elements {
	padding: 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	min-height: 54px;
}

.bfp-stripe-elements iframe {
	width: 100% !important;
}

/* ─── Payment Error ───────────────────────────────────────────────────────── */

.bfp-payment-error {
	margin-top: 10px;
	padding: 10px 14px;
	background: #fef2f2;
	border: 1px solid #fca5a5;
	border-radius: 6px;
	color: #dc2626;
	font-size: 13px;
}

/* ─── Processing Spinner ──────────────────────────────────────────────────── */

.boldform-payment-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid #d1d5db;
	border-top-color: #2f80ed;
	border-radius: 50%;
	animation: bfp-spin .7s linear infinite;
	display: inline-block;
	vertical-align: middle;
	margin-right: 6px;
}

@keyframes bfp-spin {
	to { transform: rotate(360deg); }
}

/* ─── Product Field ───────────────────────────────────────────────────────── */

.bfp-product-price {
	font-weight: 600;
	color: var(--bf-focus-color, #0d9488);
	white-space: nowrap;
}

/* ─── Custom Amount Field ─────────────────────────────────────────────────── */

.bfp-amount-input-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	width: 100%;
}

.bfp-currency-symbol {
	position: absolute;
	left: 12px;
	font-weight: 600;
	color: #374151;
	pointer-events: none;
	font-size: 14px;
	line-height: 1;
	z-index: 1;
}

.bfp-amount-input {
	padding-left: 28px !important;
}