:root {
	--spcf-ink: #261d22;
	--spcf-muted: #6f6268;
	--spcf-wine: #7b2139;
	--spcf-rose: #f8eef1;
	--spcf-line: #eadfe3;
	--spcf-paper: #ffffff;
	--spcf-canvas: #fbf8f9;
}

body.woocommerce-checkout { background: var(--spcf-canvas); }

.spcf-page {
	min-height: 100vh;
	color: var(--spcf-ink);
	background: var(--spcf-canvas);
}

.spcf-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 24px clamp(20px, 4vw, 48px);
	border-bottom: 1px solid var(--spcf-line);
}

.spcf-brand {
	color: var(--spcf-ink);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: .18em;
	text-decoration: none;
}

.spcf-secure,
.spcf-placeholder-note,
.spcf-access-policy,
.spcf-intro p { color: var(--spcf-muted); }

.spcf-secure { margin: 0; font-size: 14px; }

.spcf-main {
	max-width: 1180px;
	margin: 0 auto;
	padding: 48px clamp(20px, 4vw, 48px) 80px;
}

.spcf-before-checkout:empty { display: none; }
.spcf-before-checkout .woocommerce-info { margin-bottom: 28px; }

.spcf-intro { max-width: 760px; margin-bottom: 32px; }

.spcf-intro h1 {
	margin: 6px 0 12px;
	font-size: clamp(32px, 5vw, 52px);
	line-height: 1.08;
}

.spcf-eyebrow,
.spcf-presale-label {
	margin: 0;
	color: var(--spcf-wine);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.spcf-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
	gap: 28px;
	align-items: start;
}

.spcf-sidebar { display: grid; gap: 18px; }

.spcf-panel {
	padding: clamp(22px, 3vw, 34px);
	border: 1px solid var(--spcf-line);
	border-radius: 18px;
	background: var(--spcf-paper);
	box-shadow: 0 14px 36px rgba(50, 30, 39, .05);
}

.spcf-section-title { margin: 0 0 20px; font-size: 21px; line-height: 1.25; }
.spcf-field { margin-bottom: 18px !important; }
.spcf-field label { display: block; margin-bottom: 7px; font-weight: 650; }

.spcf-field input,
.spcf-field select {
	width: 100%;
	min-height: 50px;
	padding: 10px 14px;
	border: 1px solid #d8cbd0;
	border-radius: 10px;
	background: #fff;
}

.spcf-checkout #billing_country_field { display: none !important; }
.spcf-checkout #customer_details {
	float: none !important;
	width: 100% !important;
}

.spcf-company { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--spcf-line); }

.spcf-company-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 22px;
	font-weight: 700;
}

.spcf-company-toggle input { width: 20px; height: 20px; }
.spcf-company-fields[hidden] { display: none !important; }
.spcf-product-price { margin: 6px 0 12px; color: var(--spcf-wine); font-size: 26px; font-weight: 800; }
.spcf-seller address { font-style: normal; line-height: 1.7; }
.spcf-placeholder-note { margin: 12px 0 0; font-size: 13px; line-height: 1.5; }

.spcf-checkout .woocommerce-checkout-review-order-table {
	display: table !important;
	width: 100%;
	margin-top: 0 !important;
}

.spcf-checkout #order_review_heading,
.spcf-checkout #order_review {
	float: none !important;
	clear: both !important;
	width: 100% !important;
	max-width: none !important;
}

.spcf-checkout #order_review_heading {
	display: block !important;
	margin: 0 0 20px !important;
	padding: 0 !important;
	font-size: 21px !important;
	line-height: 1.25 !important;
}

.spcf-checkout #order_review {
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.spcf-checkout .wc_payment_methods,
.spcf-checkout .wc_payment_methods > li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.spcf-checkout .woocommerce-checkout-review-order-table th,
.spcf-checkout .woocommerce-checkout-review-order-table td {
	padding: 12px 0;
	border-color: var(--spcf-line);
}

.spcf-checkout .woocommerce-checkout-payment { margin-top: 22px; background: transparent !important; }

.spcf-presale-notice {
	margin: 18px 0;
	padding: 18px;
	border: 1px solid #d9a6b5;
	border-radius: 12px;
	background: var(--spcf-rose);
}

.spcf-presale-notice p { margin: 8px 0 0; color: var(--spcf-ink); font-size: 14px; line-height: 1.55; }

.spcf-payment-recovery {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 14px 0 0;
	padding: 12px 14px;
	border: 1px solid #e7d9de;
	border-radius: 10px;
	background: #fff8fa;
	color: var(--spcf-ink);
	font-size: 14px;
	line-height: 1.45;
}

.spcf-payment-retry {
	min-height: 40px;
	padding: 8px 12px;
	border: 1px solid var(--spcf-wine);
	border-radius: 8px;
	background: #fff;
	color: var(--spcf-wine);
	font-weight: 700;
	cursor: pointer;
}

.spcf-payment-retry:hover,
.spcf-payment-retry:focus-visible {
	background: var(--spcf-rose);
}

.spcf-checkout #place_order {
	width: 100%;
	min-height: 54px;
	margin-top: 4px;
	border-radius: 12px;
	background: var(--spcf-wine);
	font-size: 16px;
	font-weight: 750;
}

@media (max-width: 860px) {
	.spcf-grid { grid-template-columns: 1fr; }
	.spcf-header { align-items: flex-start; flex-direction: column; }
	.spcf-payment-recovery { align-items: stretch; flex-direction: column; }
}
