/* Premium cart and checkout. Loads only on the cart and checkout pages, after the responsive layer. */

.oakcrew-premium-checkout #content {
	padding: 0;
}

.oakcrew-checkout-main {
	padding: clamp(2rem, 5vw, 4rem) 16px clamp(3rem, 7vw, 6rem);
}

.oakcrew-checkout-shell {
	margin: 0 auto;
	max-width: 1180px;
}

/* Intro and progress line. */
.oakcrew-checkout-intro {
	margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.oakcrew-checkout-intro h1 {
	color: var(--oak-ink);
	font-family: var(--oak-serif);
	font-size: clamp(2rem, 4.5vw, 3.1rem);
	font-weight: 400;
	letter-spacing: -0.01em;
	line-height: 1.1;
	margin: 0;
}

.oakcrew-checkout-steps {
	color: var(--oak-moss);
	display: flex;
	flex-wrap: wrap;
	font-size: 11px;
	font-weight: 650;
	gap: 0.5rem 1.5rem;
	letter-spacing: 0.1em;
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
	text-transform: uppercase;
}

.oakcrew-checkout-steps li {
	align-items: center;
	display: flex;
	gap: 0.5rem;
	margin: 0;
}

.oakcrew-checkout-steps .oakcrew-step-number {
	align-items: center;
	border: 1px solid var(--oak-line);
	border-radius: 50%;
	display: inline-flex;
	font-size: 10px;
	height: 22px;
	justify-content: center;
	letter-spacing: 0;
	width: 22px;
}

.oakcrew-checkout-steps .is-current {
	color: var(--oak-ink);
}

.oakcrew-checkout-steps .is-current .oakcrew-step-number {
	background: var(--oak-ink);
	border-color: var(--oak-ink);
	color: #fff;
}

.oakcrew-checkout-steps .is-done .oakcrew-step-number {
	background: var(--oak-cream);
	border-color: var(--oak-cream);
	color: var(--oak-forest);
}

/* Shared WooCommerce typography and links. */
.oakcrew-checkout-body,
.oakcrew-checkout-body .woocommerce {
	color: var(--oak-ink);
	font-family: var(--oak-sans);
	font-size: 15px;
}

.oakcrew-checkout-body a {
	color: var(--oak-ink);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.oakcrew-checkout-body h2,
.oakcrew-checkout-body h3 {
	color: var(--oak-ink);
	font-family: var(--oak-serif);
	font-size: 1.45rem;
	font-weight: 400;
	letter-spacing: 0;
	margin: 0 0 1.1rem;
	text-transform: none;
}

/* Notices. */
.oakcrew-checkout-body .woocommerce-info,
.oakcrew-checkout-body .woocommerce-message,
.oakcrew-checkout-body .woocommerce-error {
	background: var(--oak-cream);
	border: 0;
	border-left: 2px solid var(--oak-gold);
	color: var(--oak-forest);
	font-size: 14px;
	list-style: none;
	margin: 0 0 1rem;
	padding: 0.9rem 1.1rem;
}

.oakcrew-checkout-body .woocommerce-error {
	border-left-color: #a33a2b;
}

.oakcrew-checkout-body .woocommerce-info::before,
.oakcrew-checkout-body .woocommerce-message::before,
.oakcrew-checkout-body .woocommerce-error::before {
	display: none;
}

.oakcrew-checkout-body .woocommerce-info a,
.oakcrew-checkout-body .woocommerce-message a {
	color: var(--oak-ink);
	font-weight: 650;
}

/* Buttons. */
.oakcrew-checkout-body .button,
.oakcrew-checkout-body button.button,
.oakcrew-checkout-body #place_order,
.oakcrew-checkout-body .checkout-button {
	align-items: center;
	background: var(--oak-ink);
	border: 1px solid var(--oak-ink);
	border-radius: 0;
	box-shadow: none;
	color: #fff;
	display: inline-flex;
	font-family: var(--oak-sans);
	font-size: 11px;
	font-weight: 700;
	justify-content: center;
	letter-spacing: 0.14em;
	line-height: 1.2;
	min-height: 48px;
	padding: 0.85rem 1.5rem;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 180ms ease;
}

.oakcrew-checkout-body .button:hover,
.oakcrew-checkout-body #place_order:hover,
.oakcrew-checkout-body .checkout-button:hover {
	background: var(--oak-forest);
	border-color: var(--oak-forest);
	color: #fff;
}

.oakcrew-checkout-body button[name="update_cart"],
.oakcrew-checkout-body button[name="apply_coupon"] {
	background: transparent;
	color: var(--oak-ink);
}

.oakcrew-checkout-body button[name="update_cart"]:hover,
.oakcrew-checkout-body button[name="apply_coupon"]:hover {
	background: var(--oak-cream);
	color: var(--oak-ink);
}

.oakcrew-checkout-body .button:disabled,
.oakcrew-checkout-body .button[disabled] {
	opacity: 0.4;
	padding: 0.85rem 1.5rem;
}

/* Form fields. */
.oakcrew-checkout-body .form-row {
	margin: 0 0 1rem;
	padding: 0;
}

.oakcrew-checkout-body .form-row label {
	color: var(--oak-forest);
	display: block;
	font-size: 12px;
	font-weight: 650;
	letter-spacing: 0.04em;
	margin-bottom: 0.35rem;
}

.oakcrew-checkout-body .form-row label.checkbox,
.oakcrew-checkout-body .woocommerce-form__label-for-checkbox {
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
}

.oakcrew-checkout-body .required {
	color: var(--oak-gold);
	text-decoration: none;
}

.oakcrew-checkout-body .input-text,
.oakcrew-checkout-body select,
.oakcrew-checkout-body textarea,
.oakcrew-checkout-body .select2-container .select2-selection--single {
	background: #fff;
	border: 1px solid var(--oak-line);
	border-radius: 2px;
	box-shadow: none;
	color: var(--oak-ink);
	font-family: var(--oak-sans);
	font-size: 15px;
	min-height: 48px;
	padding: 0.7rem 0.85rem;
	width: 100%;
}

.oakcrew-checkout-body textarea {
	min-height: 96px;
}

.oakcrew-checkout-body .select2-container .select2-selection--single {
	align-items: center;
	display: flex;
	padding: 0 0.85rem;
}

.oakcrew-checkout-body .select2-container .select2-selection--single .select2-selection__rendered {
	color: var(--oak-ink);
	line-height: 1.4;
	padding: 0;
}

.oakcrew-checkout-body .select2-container .select2-selection--single .select2-selection__arrow {
	height: 46px;
	right: 8px;
}

.oakcrew-checkout-body .input-text:focus,
.oakcrew-checkout-body select:focus,
.oakcrew-checkout-body textarea:focus,
.oakcrew-checkout-body .select2-container--focus .select2-selection--single {
	border-color: var(--oak-ink);
	outline: 2px solid rgba(168, 136, 90, 0.35);
	outline-offset: 1px;
}

.oakcrew-checkout-body .woocommerce-invalid .input-text,
.oakcrew-checkout-body .woocommerce-invalid .select2-selection--single {
	border-color: #a33a2b;
}

/* Tables (cart, totals, order review). */
.oakcrew-checkout-body table.shop_table {
	background: transparent;
	border: 0;
	border-collapse: collapse;
	border-radius: 0;
	margin: 0 0 1.5rem;
	width: 100%;
}

.oakcrew-checkout-body table.shop_table th,
.oakcrew-checkout-body table.shop_table td {
	background: transparent;
	border: 0;
	border-top: 1px solid var(--oak-line);
	color: var(--oak-ink);
	font-size: 14px;
	padding: 1rem 0.6rem;
	vertical-align: middle;
}

.oakcrew-checkout-body table.shop_table thead th {
	border-top: 0;
	color: var(--oak-moss);
	font-size: 11px;
	font-weight: 650;
	letter-spacing: 0.1em;
	padding-bottom: 0.75rem;
	text-transform: uppercase;
}

.oakcrew-checkout-body table.shop_table td.product-name a {
	font-family: var(--oak-serif);
	font-size: 1.05rem;
	text-decoration: none;
}

.oakcrew-checkout-body table.cart img {
	border-radius: 2px;
	height: auto;
	max-width: 72px;
	width: 72px;
}

.oakcrew-checkout-body a.remove {
	border: 1px solid var(--oak-line);
	border-radius: 50%;
	color: var(--oak-moss) !important;
	font-size: 16px;
	font-weight: 400;
	height: 26px;
	line-height: 24px;
	text-decoration: none;
	width: 26px;
}

.oakcrew-checkout-body a.remove:hover {
	background: var(--oak-ink);
	border-color: var(--oak-ink);
	color: #fff !important;
}

.oakcrew-checkout-body .quantity .qty {
	border: 1px solid var(--oak-line);
	border-radius: 2px;
	min-height: 44px;
	text-align: center;
	width: 64px;
}

.oakcrew-checkout-body table.cart td.actions {
	padding-top: 1.25rem;
}

.oakcrew-checkout-body .coupon {
	align-items: stretch;
	display: flex;
	gap: 0.5rem;
}

.oakcrew-checkout-body .coupon .input-text {
	max-width: 220px;
	min-height: 48px;
}

/* Cart totals card. */
.oakcrew-checkout-body .cart-collaterals .cart_totals {
	background: #fff;
	border: 1px solid var(--oak-line);
	float: right;
	padding: 1.5rem;
	width: min(100%, 420px);
}

.oakcrew-checkout-body .cart_totals table.shop_table th,
.oakcrew-checkout-body .cart_totals table.shop_table td {
	padding: 0.85rem 0;
}

.oakcrew-checkout-body .order-total th,
.oakcrew-checkout-body .order-total td {
	font-family: var(--oak-serif);
	font-size: 1.2rem !important;
}

.oakcrew-checkout-body .wc-proceed-to-checkout {
	padding: 0.5rem 0 0;
}

.oakcrew-checkout-body .wc-proceed-to-checkout .checkout-button {
	align-items: center !important;
	display: flex !important;
	font-size: 12px;
	justify-content: center !important;
	line-height: 1 !important;
	margin: 0;
	min-height: 56px;
	padding-bottom: 0 !important;
	padding-top: 0 !important;
	text-align: center;
	width: 100%;
}

.oakcrew-checkout-body ul#shipping_method {
	list-style: none;
	margin: 0;
	padding: 0;
}

.oakcrew-checkout-body ul#shipping_method li {
	margin: 0 0 0.4rem;
}

.oakcrew-checkout-body .woocommerce-shipping-destination,
.oakcrew-checkout-body .shipping-calculator-button {
	font-size: 13px;
}

/* Free-delivery bar sits flush above the cart table. */
.oakcrew-premium-checkout .oakcrew-cart-progress {
	margin-bottom: 1.25rem;
}

.oakcrew-checkout-body .oakcrew-cart-upsell > p {
	color: var(--oak-moss);
	font-size: 13px;
	font-weight: 650;
	margin: 0 0 0.7rem;
}

.oakcrew-cart-upsell-options {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.oakcrew-checkout-body .oakcrew-cart-upsell-options > a {
	background: rgba(255, 255, 255, 0.68);
	border: 1px solid rgba(74, 58, 48, 0.16);
	border-radius: 10px;
	display: grid;
	gap: 0.25rem;
	padding: 0.85rem 1rem;
	text-decoration: none;
}

.oakcrew-checkout-body .oakcrew-cart-upsell-options strong,
.oakcrew-checkout-body .oakcrew-cart-upsell-options span,
.oakcrew-checkout-body .oakcrew-cart-upsell-options b {
	display: block;
}

.oakcrew-checkout-body .oakcrew-cart-upsell-options strong {
	font-size: 14px;
}

.oakcrew-checkout-body .oakcrew-cart-upsell-options span {
	color: var(--oak-moss);
	font-size: 12px;
	font-weight: 400;
}

.oakcrew-checkout-body .oakcrew-cart-upsell-options b {
	font-size: 12px;
	margin-top: 0.35rem;
}

.oakcrew-checkout-body .oakcrew-cart-upsell-options b > span {
	color: inherit;
	display: inline;
	font-size: inherit;
}

/* Empty cart. */
.oakcrew-checkout-body .cart-empty {
	font-family: var(--oak-serif);
	font-size: 1.3rem;
}

.oakcrew-checkout-body .return-to-shop {
	margin-top: 1.5rem;
}

/* Checkout layout: details left, order summary right. */
.oakcrew-checkout-body form.checkout {
	column-gap: clamp(2rem, 5vw, 4.5rem);
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
}

.oakcrew-checkout-body form.checkout > * {
	grid-column: 1 / -1;
}

.oakcrew-checkout-body form.checkout #customer_details {
	grid-column: 1;
	grid-row: 1 / span 3;
}

.oakcrew-checkout-body form.checkout #order_review_heading,
.oakcrew-checkout-body form.checkout #order_review {
	grid-column: 2;
}

.oakcrew-checkout-body #order_review_heading {
	background: #fff;
	border: 1px solid var(--oak-line);
	border-bottom: 0;
	margin: 0;
	padding: 1.5rem 1.5rem 0.5rem;
}

.oakcrew-checkout-body #order_review {
	align-self: start;
	background: #fff;
	border: 1px solid var(--oak-line);
	border-top: 0;
	padding: 0 1.5rem 1.5rem;
}

.oakcrew-checkout-body .col2-set .col-1,
.oakcrew-checkout-body .col2-set .col-2 {
	float: none;
	max-width: none;
	width: 100%;
}

.oakcrew-checkout-body .col2-set .col-2 {
	margin-top: 1rem;
}

.oakcrew-checkout-body #ship-to-different-address {
	font-family: var(--oak-sans);
	font-size: 14px;
	margin: 0.5rem 0 1rem;
}

.oakcrew-checkout-body #ship-to-different-address label {
	font-size: 14px;
	font-weight: 650;
	letter-spacing: 0;
}

.oakcrew-checkout-body .woocommerce-checkout-review-order-table td.product-name {
	font-family: var(--oak-serif);
	font-size: 1rem;
}

.oakcrew-checkout-body .woocommerce-checkout-review-order-table .product-quantity {
	color: var(--oak-moss);
	font-family: var(--oak-sans);
	font-weight: 400;
}

/* Payment box. */
.oakcrew-checkout-body #payment {
	background: var(--oak-cream);
	border-radius: 2px;
	margin-top: 0.5rem;
}

.oakcrew-checkout-body #payment ul.payment_methods {
	border-bottom: 1px solid var(--oak-line);
	padding: 1.1rem;
}

.oakcrew-checkout-body #payment ul.payment_methods li {
	font-size: 14px;
}

.oakcrew-checkout-body #payment div.payment_box {
	background: #fff;
	color: var(--oak-forest);
	font-size: 13px;
}

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

.oakcrew-checkout-body #payment div.form-row {
	padding: 1.1rem;
}

.oakcrew-checkout-body .woocommerce-privacy-policy-text,
.oakcrew-checkout-body .woocommerce-terms-and-conditions-wrapper {
	color: var(--oak-moss);
	font-size: 13px;
	line-height: 1.55;
}

.oakcrew-checkout-body #place_order {
	float: none;
	font-size: 12px;
	margin-top: 0.75rem;
	min-height: 56px;
	width: 100%;
}

/* Order received. */
.oakcrew-checkout-body .woocommerce-thankyou-order-received {
	font-family: var(--oak-serif);
	font-size: 1.3rem;
}

.oakcrew-checkout-body ul.order_details {
	border: 1px solid var(--oak-line);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 1.25rem;
}

.oakcrew-checkout-body ul.order_details li {
	border: 0;
	color: var(--oak-moss);
	font-size: 11px;
	letter-spacing: 0.08em;
	margin: 0;
	padding: 0;
	text-transform: uppercase;
}

.oakcrew-checkout-body ul.order_details li strong {
	color: var(--oak-ink);
	display: block;
	font-size: 15px;
	letter-spacing: 0;
	margin-top: 0.25rem;
	text-transform: none;
}

/* Tablet and mobile: one column, sticky-free. */
@media (max-width: 900px) {
	.oakcrew-checkout-body form.checkout {
		display: block;
	}

	.oakcrew-checkout-body #order_review_heading {
		margin-top: 1.5rem;
	}

	.oakcrew-checkout-body .cart-collaterals .cart_totals {
		float: none;
		width: 100%;
	}
}

@media (max-width: 768px) {
	.oakcrew-checkout-body table.shop_table_responsive tr {
		border-top: 1px solid var(--oak-line);
		display: block;
		padding: 0.75rem 0;
	}

	.oakcrew-checkout-body table.shop_table_responsive tr td {
		border-top: 0;
		padding: 0.4rem 0;
		text-align: right;
	}

	.oakcrew-checkout-body table.shop_table_responsive tr td::before {
		color: var(--oak-moss);
		font-size: 11px;
		font-weight: 650;
		letter-spacing: 0.08em;
		text-transform: uppercase;
	}

	.oakcrew-checkout-body table.cart td.actions {
		text-align: left;
	}

	.oakcrew-checkout-body .coupon {
		flex-wrap: wrap;
		margin-bottom: 0.75rem;
	}

	.oakcrew-checkout-body .coupon .input-text {
		flex: 1 1 160px;
		max-width: none;
		width: auto !important;
	}

	.oakcrew-checkout-body button[name="update_cart"] {
		width: 100%;
	}

	.oakcrew-checkout-body .form-row-first,
	.oakcrew-checkout-body .form-row-last {
		float: none;
		width: 100%;
	}

	.oakcrew-checkout-body #order_review_heading,
	.oakcrew-checkout-body #order_review,
	.oakcrew-checkout-body .cart-collaterals .cart_totals {
		padding-left: 1.1rem;
		padding-right: 1.1rem;
	}
}

/* Legacy theme sets serif/bold on table heads and footers; keep them calm and sans. */
.oakcrew-checkout-body table.shop_table thead th,
.oakcrew-checkout-body table.shop_table tfoot th,
.oakcrew-checkout-body .cart_totals th {
	font-family: var(--oak-sans);
	font-weight: 650;
}

.oakcrew-checkout-body table.shop_table tfoot td,
.oakcrew-checkout-body .cart_totals td {
	font-family: var(--oak-sans);
	font-weight: 400;
}

.oakcrew-checkout-body table.shop_table .amount {
	color: var(--oak-ink);
	font-variant-numeric: tabular-nums;
	font-weight: 500;
}

.oakcrew-checkout-body table.shop_table .order-total .amount {
	font-family: var(--oak-serif);
	font-weight: 400;
}

/* Legacy zebra striping off. */
.oakcrew-checkout-body table.shop_table tr,
.oakcrew-checkout-body table.shop_table tr:nth-child(even) td {
	background: transparent;
}

@media (max-width: 768px) {
	.oakcrew-checkout-body table.shop_table_responsive tr td {
		align-items: center;
		display: flex;
		gap: 1rem;
		justify-content: space-between;
	}

	.oakcrew-checkout-body table.shop_table_responsive tr td::before {
		flex: 0 0 auto;
		float: none;
	}

	.oakcrew-checkout-body table.shop_table_responsive tr td.product-remove,
	.oakcrew-checkout-body table.cart td.actions {
		display: block;
	}
}

/* Small screens: numbers only, with the current step named. */
@media (max-width: 600px) {
	.oakcrew-checkout-steps {
		flex-wrap: nowrap;
		gap: 0.6rem;
	}

	.oakcrew-checkout-steps li:not(.is-current) .oakcrew-step-label {
		display: none;
	}

	.oakcrew-cart-upsell-options {
		grid-template-columns: 1fr;
	}
}

/* Beat WooCommerce/legacy form selectors (.woocommerce form .form-row …). */
.oakcrew-checkout-body .woocommerce form .form-row .input-text,
.oakcrew-checkout-body .woocommerce form .form-row select,
.oakcrew-checkout-body .woocommerce form .form-row textarea {
	border: 1px solid var(--oak-line);
	border-radius: 2px;
}

.oakcrew-checkout-body .woocommerce form .form-row .input-text:focus,
.oakcrew-checkout-body .woocommerce form .form-row textarea:focus {
	border-color: var(--oak-ink);
}

.oakcrew-checkout-body .woocommerce form .form-row .required {
	color: var(--oak-gold);
}

.oakcrew-checkout-body .woocommerce form .form-row.woocommerce-invalid .input-text {
	border-color: #a33a2b;
}
