/* Classic purchase surfaces. The surrounding site shell belongs to the theme. */
.cpck-cart-page,
.cpck-checkout-page {
	--cpck-ink: #1d1d1d;
	--cpck-gold: #795521;
	--cpck-border: #e4dfd7;
	--cpck-surface: #faf8f4;
	--cpck-cta: linear-gradient(90deg, #b78742, #e7d293);
}

:is(.cpck-cart-page, .cpck-checkout-page) .woocommerce {
	color: var(--cpck-ink);
}

.cpck-cart-empty #main-content {
	min-height: 390px;
}

.cpck-cart-empty .woocommerce .cart-empty.woocommerce-info {
	background: var(--cpck-ink);
	border: 0;
	border-radius: 0;
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 36px;
	padding: 10px 15px;
}

.cpck-cart-page #main-content article > h1 {
	position: absolute;
	width: 1px;
	height: 1px;
	clip-path: inset(50%);
	overflow: hidden;
}

.cpck-cart-empty .woocommerce .cart-empty::before,
.cpck-cart-empty .woocommerce .cart-empty::after {
	display: none;
}

.cpck-cart-page .woocommerce .return-to-shop .wc-backward {
	background: #fff;
	border: 2px solid #69cf7b;
	border-radius: 40px;
	color: #27843c;
	display: inline-block;
	font: 700 14px/1.1 Montserrat, Arial, sans-serif;
	padding: 12px 20px;
	text-decoration: none;
	text-transform: uppercase;
}

:is(.cpck-cart-page, .cpck-checkout-page) .woocommerce :is(button.button, a.checkout-button, button#place_order) {
	background: var(--cpck-cta);
	border: 1px solid transparent;
	border-radius: 40px;
	color: #161616;
	font-size: 14px;
	font-weight: 700;
	min-height: 42px;
	padding: 10px 20px;
}

:is(.cpck-cart-page, .cpck-checkout-page) .woocommerce :is(button.button, a.button, input, select):focus-visible,
.cpck-copy:focus-visible {
	outline: 2px solid #795521;
	outline-offset: 2px;
}

:is(.cpck-cart-page, .cpck-checkout-page) .woocommerce table.shop_table {
	border-color: var(--cpck-border);
}

.cpck-cart-page .woocommerce .product-thumbnail img {
	height: auto;
	object-fit: contain;
	width: 64px;
}

.cpck-cart-page .woocommerce .cart_totals {
	width: min(100%, 490px);
}

.cpck-checkout-page .woocommerce form.checkout {
	display: grid;
	gap: 16px 32px;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.cpck-checkout-page .woocommerce form.checkout::before,
.cpck-checkout-page .woocommerce form.checkout::after {
	content: none;
}

.cpck-checkout-page #customer_details {
	grid-column: 1;
	grid-row: 1 / span 2;
}

.cpck-checkout-page #order_review_heading {
	grid-column: 2;
	margin: 0;
}

.cpck-checkout-page #order_review {
	align-self: start;
	grid-column: 2;
	min-width: 0;
}

.cpck-checkout-page #customer_details :is(.col-1, .col-2) {
	float: none;
	margin: 0 0 24px;
	width: 100%;
}

.cpck-checkout-page .woocommerce :is(.input-text, .select2-selection) {
	border: 1px solid #d8d2c7;
	border-radius: 5px;
	color: var(--cpck-ink);
	min-height: 43px;
	padding: 9px 11px;
}

.cpck-checkout-page .woocommerce .select2-selection {
	padding: 5px 2px;
}

.cpck-checkout-page #payment,
.cpck-checkout-page #payment div.payment_box {
	background: var(--cpck-surface);
	color: var(--cpck-ink);
}

.cpck-checkout-page #payment div.payment_box::before {
	border-bottom-color: var(--cpck-surface);
}

.cpck-checkout-page #payment .cpck-methods,
.woocommerce .cpck-shipping-options ul.cpck-ship-list {
	display: grid;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cpck-checkout-page #payment .cpck-method,
.woocommerce ul.cpck-ship-list .cpck-ship-option {
	background: #fff;
	border: 1px solid var(--cpck-border);
	border-radius: 6px;
	margin: 0;
	min-width: 0;
	padding: 9px 10px;
}

.cpck-method-label,
.woocommerce .cpck-ship-option label {
	align-items: start;
	column-gap: 8px;
	cursor: pointer;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	row-gap: 3px;
	text-align: left;
}

:is(.cpck-method-input, .cpck-ship-option input[type="radio"]) {
	accent-color: var(--cpck-gold);
	margin: 4px 0 0 !important;
}

.cpck-method-name,
.cpck-ship-name {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.cpck-method-network {
	color: var(--cpck-gold);
	font-size: 12px;
	grid-column: 2 / -1;
}

.cpck-method-body {
	font-size: 13px;
	margin: 7px 0 0 20px;
}

.cpck-method:has(.cpck-method-input:not(:checked)) .cpck-method-body {
	display: none;
}

.woocommerce tr.cpck-shipping-row td {
	min-width: 0;
	width: 74%;
}

.woocommerce table.shop_table_responsive tr.cpck-shipping-row td::before {
	content: none;
}

.woocommerce .cpck-shipping-options {
	border: 0;
	margin: 0;
	min-width: 0;
	padding: 0;
}

.cpck-ship-cost {
	white-space: nowrap;
}

.cpck-ship-cost del {
	color: #666;
	margin-right: 4px;
}

.cpck-ship-cost strong {
	color: var(--cpck-gold);
}

.cpck-ship-desc {
	font-size: 12px;
	grid-column: 2 / -1;
	overflow-wrap: anywhere;
}

.woocommerce ul.cpck-ship-list .cpck-ship-option--locked {
	background: #f4f4f4;
	color: #595959;
}

.woocommerce .cpck-ship-option--locked label {
	cursor: default;
}

@media (min-width: 769px) {
	.cpck-cart-empty .woocommerce .cart-empty.woocommerce-info {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

@media (max-width: 768px) {
	.cpck-cart-empty #main-content {
		min-height: 410px;
	}

	.cpck-checkout-page .woocommerce form.checkout {
		display: block;
	}

	.cpck-checkout-page #order_review_heading {
		margin-bottom: 15px;
	}

	.woocommerce table.shop_table_responsive tr.cpck-shipping-row td {
		width: auto;
	}
}

.cpck-pay-block:not(.cpck-pay-block--email) .cpck-pay-cols {
	display: grid;
	gap: 20px;
	grid-template-columns: minmax(0, 1fr) auto;
}

.cpck-pay-block:not(.cpck-pay-block--email) .cpck-pay-details {
	max-width: none !important;
}

.cpck-pay-block .cpck-pay-qr svg {
	display: block;
	max-width: 100%;
}

@media (max-width: 600px) {
	.cpck-pay-block:not(.cpck-pay-block--email) .cpck-pay-cols {
		grid-template-columns: 1fr;
	}

	.cpck-pay-block .cpck-pay-qr {
		justify-self: center;
	}
}

.cpck-ship-progress {
	background: #faf8f4;
	border: 1px solid #e4dfd7;
	border-radius: 6px;
	margin: 0 0 15px;
	padding: 10px 13px;
}

.cpck-ship-progress p { font-size: 13px; font-weight: 600; margin: 0 0 5px; }
.cpck-ship-progress progress { accent-color: #a56c29; display: block; height: 12px; width: 100%; }

