:root {
	--eg-checkout-ink: #102d2a;
	--eg-checkout-green: #0f4b43;
	--eg-checkout-green-deep: #0a3631;
	--eg-checkout-gold: #c9a04a;
	--eg-checkout-gold-soft: #f5ebd4;
	--eg-checkout-paper: #fbfaf7;
	--eg-checkout-line: #e7e2d7;
	--eg-checkout-muted: #687976;
}

body.woocommerce-checkout {
	background:
		radial-gradient(circle at 95% 8%, rgba(201, 160, 74, .12), transparent 24rem),
		linear-gradient(180deg, #fff 0, var(--eg-checkout-paper) 100%);
}

body.woocommerce-checkout main.site-main {
	box-sizing: border-box;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 34px 24px 64px;
}

body.woocommerce-checkout .page-header {
	text-align: center;
	margin: 0 0 24px;
}

body.woocommerce-checkout .entry-title {
	color: var(--eg-checkout-ink);
	font-size: clamp(34px, 4vw, 54px);
	font-weight: 900;
	letter-spacing: -.04em;
}

.eg-checkout-intro {
	position: relative;
	display: flex;
	align-items: center;
	gap: 18px;
	overflow: hidden;
	margin: 0 0 24px;
	padding: 22px 24px;
	border: 1px solid rgba(201, 160, 74, .35);
	border-radius: 24px;
	background: linear-gradient(135deg, var(--eg-checkout-green-deep), var(--eg-checkout-green));
	color: #fff;
	box-shadow: 0 18px 48px rgba(15, 75, 67, .14);
}

.eg-checkout-intro::after {
	content: "";
	position: absolute;
	inset-inline-end: -54px;
	top: -74px;
	width: 180px;
	height: 180px;
	border: 35px solid rgba(255, 255, 255, .05);
	border-radius: 50%;
}

.eg-checkout-intro__mark {
	position: relative;
	z-index: 1;
	display: grid;
	flex: 0 0 58px;
	width: 58px;
	height: 58px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 18px;
	background: rgba(255, 255, 255, .1);
	color: var(--eg-checkout-gold);
}

.eg-checkout-intro__mark svg {
	width: 30px;
	height: 30px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.eg-checkout-intro div {
	position: relative;
	z-index: 1;
}

.eg-checkout-intro p {
	margin: 0 0 3px;
	color: var(--eg-checkout-gold);
	font-size: 13px;
	font-weight: 800;
}

.eg-checkout-intro h2 {
	margin: 0;
	color: #fff;
	font-size: clamp(22px, 3vw, 31px);
	font-weight: 900;
	letter-spacing: -.025em;
}

.eg-checkout-intro div > span {
	display: block;
	margin-top: 5px;
	color: rgba(255, 255, 255, .76);
	font-size: 14px;
}

body.woocommerce-checkout form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
	gap: 0 28px;
	align-items: start;
}

body.woocommerce-checkout #customer_details {
	grid-column: 1;
	grid-row: 1 / span 3;
	width: 100%;
}

body.woocommerce-checkout #customer_details .col-1 {
	float: none;
	width: 100%;
}

body.woocommerce-checkout #customer_details .col-2,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields {
	display: none !important;
}

body.woocommerce-checkout .woocommerce-form-login-toggle,
body.woocommerce-checkout .woocommerce-form-coupon-toggle {
	display: none !important;
}

body.woocommerce-checkout .woocommerce-billing-fields {
	padding: 28px;
	border: 1px solid var(--eg-checkout-line);
	border-radius: 26px;
	background: var(--eg-checkout-card);
	box-shadow: 0 18px 54px rgba(16, 45, 42, .08);
}

body.woocommerce-checkout .woocommerce-billing-fields > h3 {
	display: none;
}

.eg-checkout-section-title {
	display: flex;
	align-items: center;
	gap: 13px;
	margin: 0 0 24px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--eg-checkout-line);
}

.eg-checkout-section-title > span {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 14px;
	background: var(--eg-checkout-gold-soft);
	color: #806019;
	font-size: 13px;
	font-weight: 900;
}

.eg-checkout-section-title div {
	display: flex;
	flex-direction: column;
}

.eg-checkout-section-title b {
	color: var(--eg-checkout-ink);
	font-size: 20px;
	font-weight: 900;
}

.eg-checkout-section-title small {
	margin-top: 2px;
	color: var(--eg-checkout-muted);
	font-size: 12px;
}

body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 16px;
}

body.woocommerce-checkout .form-row {
	float: none !important;
	box-sizing: border-box;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.woocommerce-checkout .form-row-wide,
body.woocommerce-checkout #billing_phone_field,
body.woocommerce-checkout #billing_delivery_place_field {
	grid-column: 1 / -1;
}

body.woocommerce-checkout .form-row label {
	display: block;
	margin: 0 0 8px;
	color: var(--eg-checkout-ink);
	font-size: 14px;
	font-weight: 800;
}

body.woocommerce-checkout .form-row .required {
	color: var(--eg-checkout-gold);
	text-decoration: none;
}

body.woocommerce-checkout .input-text,
body.woocommerce-checkout select,
body.woocommerce-checkout .select2-selection {
	box-sizing: border-box !important;
	width: 100% !important;
	min-height: 54px !important;
	padding: 0 15px !important;
	border: 1px solid #dcd7cc !important;
	border-radius: 15px !important;
	outline: 0 !important;
	background: #fff !important;
	color: var(--eg-checkout-ink) !important;
	font-size: 15px !important;
	box-shadow: none !important;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}

body.woocommerce-checkout .input-text:focus,
body.woocommerce-checkout select:focus,
body.woocommerce-checkout .select2-container--focus .select2-selection {
	border-color: var(--eg-checkout-gold) !important;
	box-shadow: 0 0 0 4px rgba(201, 160, 74, .13) !important;
}

body.woocommerce-checkout .select2-container {
	width: 100% !important;
}

body.woocommerce-checkout .select2-selection__rendered {
	padding: 11px 0 !important;
	color: var(--eg-checkout-ink) !important;
	line-height: 30px !important;
}

body.woocommerce-checkout .select2-selection__arrow {
	top: 13px !important;
	inset-inline-end: 10px !important;
}

body.woocommerce-checkout #billing_delivery_place_field {
	margin-top: 4px !important;
	padding-top: 20px !important;
	border-top: 1px solid var(--eg-checkout-line);
}

body.woocommerce-checkout #billing_delivery_place_field > label {
	margin-bottom: 12px;
	font-size: 16px;
}

body.woocommerce-checkout #billing_delivery_place_field .woocommerce-input-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

body.woocommerce-checkout #billing_delivery_place_field br {
	display: none;
}

body.woocommerce-checkout #billing_delivery_place_field .input-radio {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

body.woocommerce-checkout #billing_delivery_place_field label.radio {
	position: relative;
	display: flex;
	min-height: 70px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 14px 18px;
	border: 1px solid #dcd7cc;
	border-radius: 17px;
	background: var(--eg-checkout-card);
	color: var(--eg-checkout-ink);
	font-size: 15px;
	font-weight: 900;
	text-align: center;
	cursor: pointer;
	transition: border-color .2s, background .2s, color .2s, box-shadow .2s, transform .2s;
}

body.woocommerce-checkout #billing_delivery_place_field label.radio::before {
	content: "";
	width: 17px;
	height: 17px;
	margin-inline-end: 9px;
	border: 2px solid #c9c4b8;
	border-radius: 50%;
	box-shadow: inset 0 0 0 4px #fff;
	transition: background .2s, border-color .2s;
}

body.woocommerce-checkout #billing_delivery_place_field label.radio:hover {
	border-color: var(--eg-checkout-gold);
	transform: translateY(-1px);
}

body.woocommerce-checkout #billing_delivery_place_field .input-radio:checked + label.radio {
	border-color: var(--eg-checkout-green);
	background: #edf5f2;
	color: var(--eg-checkout-green-deep);
	box-shadow: 0 10px 28px rgba(15, 75, 67, .1);
}

body.woocommerce-checkout #billing_delivery_place_field .input-radio:checked + label.radio::before {
	border-color: var(--eg-checkout-green);
	background: var(--eg-checkout-green);
}

body.woocommerce-checkout #order_review_heading {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	padding: 21px 24px 17px;
	border: 1px solid var(--eg-checkout-line);
	border-bottom: 0;
	border-radius: 24px 24px 0 0;
	background: var(--eg-checkout-card);
	color: var(--eg-checkout-ink);
	font-size: 21px;
	font-weight: 900;
}

body.woocommerce-checkout #order_review {
	grid-column: 2;
	grid-row: 2;
	overflow: hidden;
	padding: 0 24px 24px;
	border: 1px solid var(--eg-checkout-line);
	border-top: 0;
	border-radius: 0 0 24px 24px;
	background: var(--eg-checkout-card);
	box-shadow: 0 18px 54px rgba(16, 45, 42, .08);
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table {
	margin: 0 0 20px;
	border: 0;
	border-collapse: collapse;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td {
	padding: 15px 4px;
	border-color: var(--eg-checkout-line);
	color: var(--eg-checkout-ink);
}

body.woocommerce-checkout #payment {
	border-radius: 18px;
	background: #f4f6f4;
}

body.woocommerce-checkout #payment div.payment_box {
	background: #e9efec;
	color: var(--eg-checkout-ink);
}

body.woocommerce-checkout #payment div.payment_box::before {
	border-bottom-color: #e9efec;
}

body.woocommerce-checkout #place_order {
	width: 100%;
	min-height: 56px;
	border: 0;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--eg-checkout-green), var(--eg-checkout-green-deep));
	color: #fff;
	font-size: 17px;
	font-weight: 900;
	box-shadow: 0 13px 30px rgba(15, 75, 67, .2);
	transition: transform .2s, box-shadow .2s;
}

body.woocommerce-checkout #place_order:hover {
	transform: translateY(-2px);
	box-shadow: 0 17px 36px rgba(15, 75, 67, .25);
}

body.woocommerce-checkout .woocommerce-privacy-policy-text {
	color: var(--eg-checkout-muted);
	font-size: 12px;
	line-height: 1.8;
}

body.woocommerce-checkout .woocommerce-error,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message {
	border-top-color: var(--eg-checkout-gold);
	border-radius: 14px;
	background: #fff;
}

@media (max-width: 780px) {
	body.woocommerce-checkout main.site-main {
		padding: 24px 12px 44px !important;
	}

	body.woocommerce-checkout .entry-title {
		font-size: 36px;
	}

	.eg-checkout-intro {
		margin-bottom: 16px;
		padding: 18px;
		border-radius: 20px;
	}

	.eg-checkout-intro__mark {
		flex-basis: 50px;
		width: 50px;
		height: 50px;
		border-radius: 15px;
	}

	.eg-checkout-intro h2 {
		font-size: 22px;
	}

	.eg-checkout-intro div > span {
		font-size: 12px;
	}

	body.woocommerce-checkout form.checkout {
		display: flex;
		flex-direction: column;
		gap: 18px;
	}

	body.woocommerce-checkout #customer_details,
	body.woocommerce-checkout #order_review_heading,
	body.woocommerce-checkout #order_review {
		width: 100%;
	}

	body.woocommerce-checkout .woocommerce-billing-fields {
		padding: 20px 16px;
		border-radius: 21px;
	}

	body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	body.woocommerce-checkout .form-row,
	body.woocommerce-checkout .form-row-wide,
	body.woocommerce-checkout #billing_phone_field,
	body.woocommerce-checkout #billing_delivery_place_field {
		grid-column: 1;
	}

	body.woocommerce-checkout #order_review_heading {
		order: 2;
		padding: 19px 18px 15px;
		border-radius: 21px 21px 0 0;
	}

	body.woocommerce-checkout #order_review {
		order: 3;
		margin-top: -18px;
		padding: 0 18px 20px;
		border-radius: 0 0 21px 21px;
	}

	body.woocommerce-checkout #billing_delivery_place_field .woocommerce-input-wrapper {
		grid-template-columns: 1fr;
	}

	body.woocommerce-checkout #billing_delivery_place_field label.radio {
		min-height: 60px;
		justify-content: flex-start;
	}

	.eg-checkout-section-title b {
		font-size: 18px;
	}
}

@media (max-width: 380px) {
	.eg-checkout-intro__mark {
		display: none;
	}

	.eg-checkout-intro {
		padding: 17px 15px;
	}

	body.woocommerce-checkout .woocommerce-billing-fields {
		padding: 18px 13px;
	}

	body.woocommerce-checkout #order_review_heading,
	body.woocommerce-checkout #order_review {
		padding-inline: 14px;
	}
}

/* Checkout shipping selector: native WooCommerce rates, placed beside the address. */
body.woocommerce-checkout form.checkout > * {
	min-width: 0;
}

body.woocommerce-checkout .eg-shipping-choice-panel {
	grid-column: 1 / -1;
	overflow: hidden;
	margin-top: 4px;
	border: 1px solid rgba(201, 160, 74, .42);
	border-radius: 20px;
	background: linear-gradient(180deg, #fff 0%, #fbf8f0 100%);
	box-shadow: 0 12px 32px rgba(16, 45, 42, .07);
}

body.woocommerce-checkout .eg-shipping-choice-panel__title {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px 13px;
	border-bottom: 1px solid var(--eg-checkout-line);
}

body.woocommerce-checkout .eg-shipping-choice-panel__title > span {
	display: grid;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	place-items: center;
	border-radius: 12px;
	background: var(--eg-checkout-green);
	color: #fff;
	font-size: 12px;
	font-weight: 900;
}

body.woocommerce-checkout .eg-shipping-choice-panel__title div {
	display: flex;
	min-width: 0;
	flex-direction: column;
}

body.woocommerce-checkout .eg-shipping-choice-panel__title b {
	color: var(--eg-checkout-ink);
	font-size: 17px;
	font-weight: 900;
}

body.woocommerce-checkout .eg-shipping-choice-panel__title small {
	margin-top: 2px;
	color: var(--eg-checkout-muted);
	font-size: 12px;
	line-height: 1.5;
}

body.woocommerce-checkout .eg-shipping-choice-panel__body {
	padding: 14px;
}

body.woocommerce-checkout .eg-shipping-choice-panel #shipping_method {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 11px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

body.woocommerce-checkout .eg-shipping-choice-panel #shipping_method li {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 70px;
	align-items: center;
	margin: 0 !important;
	padding: 14px 15px !important;
	border: 1px solid #dcd7cc;
	border-radius: 16px;
	background: #fff;
	color: var(--eg-checkout-ink);
	cursor: pointer;
	transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}

body.woocommerce-checkout .eg-shipping-choice-panel #shipping_method li:hover {
	border-color: var(--eg-checkout-gold);
	transform: translateY(-1px);
}

body.woocommerce-checkout .eg-shipping-choice-panel #shipping_method li:has(input:checked) {
	border-color: var(--eg-checkout-green);
	background: #edf5f2;
	box-shadow: 0 9px 24px rgba(15, 75, 67, .11);
}

body.woocommerce-checkout .eg-shipping-choice-panel #shipping_method input[type="radio"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0 0 0 10px !important;
	accent-color: var(--eg-checkout-green);
}

body.woocommerce-checkout .eg-shipping-choice-panel #shipping_method label {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 5px 10px;
	margin: 0;
	color: var(--eg-checkout-ink);
	font-size: 14px;
	font-weight: 900;
	line-height: 1.5;
	cursor: pointer;
}

body.woocommerce-checkout .eg-shipping-choice-panel #shipping_method .amount {
	color: var(--eg-checkout-green);
	font-size: 15px;
	font-weight: 900;
	white-space: nowrap;
}

body.woocommerce-checkout .eg-shipping-choice-panel__message {
	margin: 0;
	padding: 13px 14px;
	border: 1px dashed #d7c697;
	border-radius: 13px;
	background: #fffdf7;
	color: var(--eg-checkout-muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.7;
	text-align: center;
}

body.woocommerce-checkout tr.eg-shipping-row-relocated {
	display: none !important;
}

body.woocommerce-checkout #order_review,
body.woocommerce-checkout .woocommerce-checkout-review-order-table {
	max-width: 100%;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table {
	table-layout: fixed;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td {
	overflow-wrap: anywhere;
}

@media (max-width: 780px) {
	body.woocommerce-checkout main.site-main {
		overflow-x: clip;
	}

	body.woocommerce-checkout form.checkout {
		width: 100%;
		max-width: 620px;
		margin-inline: auto;
	}

	body.woocommerce-checkout .eg-shipping-choice-panel {
		grid-column: 1;
		border-radius: 18px;
	}

	body.woocommerce-checkout .eg-shipping-choice-panel #shipping_method {
		grid-template-columns: 1fr;
	}

	body.woocommerce-checkout .eg-shipping-choice-panel #shipping_method li {
		min-height: 64px;
	}

	body.woocommerce-checkout #order_review_heading,
	body.woocommerce-checkout #order_review {
		box-sizing: border-box;
		max-width: 100%;
	}

	body.woocommerce-checkout .woocommerce-checkout-review-order-table th,
	body.woocommerce-checkout .woocommerce-checkout-review-order-table td {
		padding-inline: 3px;
		font-size: 13px;
	}
}

@media (max-width: 380px) {
	body.woocommerce-checkout .eg-shipping-choice-panel__title {
		padding-inline: 13px;
	}

	body.woocommerce-checkout .eg-shipping-choice-panel__body {
		padding: 11px;
	}

	body.woocommerce-checkout .eg-shipping-choice-panel #shipping_method li {
		padding-inline: 12px !important;
	}

	body.woocommerce-checkout .eg-shipping-choice-panel #shipping_method label {
		font-size: 13px;
	}
}
