/* -----------------------------------------------------------
   Cart & Checkout — the Cart/Checkout pages use WooCommerce's
   block editor (Cart/Checkout blocks), not the classic shortcode
   templates, so this reskins the blocks' own real markup/classes
   rather than replacing them with custom templates. Colors, fonts,
   spacing and buttons are themed here; the blocks' own layout,
   interactivity and Store API logic are left untouched.
----------------------------------------------------------- */

.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 160px 24px 80px;
}

.wp-block-woocommerce-cart *,
.wp-block-woocommerce-checkout * {
	font-family: var(--font-body);
}

/* -----------------------------------------------------------
   Cart block
----------------------------------------------------------- */
.wc-block-cart-items__header {
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--c-gray-60);
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.wc-block-cart-items__row {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	padding: 20px 0;
}

.wc-block-cart-item__image img {
	border-radius: 10px;
}

.wc-block-components-product-name {
	font-weight: 700;
	font-size: 15px;
	color: var(--c-black-100);
}

.wc-block-components-product-metadata__description p {
	font-size: 13px;
	color: var(--c-gray-60);
}

.wc-block-components-quantity-selector {
	border: 0.8px solid #134635;
	border-radius: 999px;
	overflow: hidden;
}

.wc-block-components-quantity-selector__button {
	color: #134635;
}

.wc-block-cart-item__remove-link.wc-block-cart-item__remove-link {
	color: var(--c-gray-60);
	font-size: 13px;
}

.wc-block-cart-item__remove-link.wc-block-cart-item__remove-link:hover {
	color: #b3261e;
}

.wc-block-cart__totals-title,
.wc-block-components-checkout-order-summary__title-text,
.wc-block-components-checkout-step__title {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--c-dark-green);
}

.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value {
	font-size: 14px;
	color: var(--c-black-100);
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-weight: 700;
	font-size: 16px;
	color: var(--c-dark-green);
}

.wc-block-cart__submit-button.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button.wc-block-components-checkout-place-order-button {
	background: #0a3024;
	border-color: #0a3024;
	color: #fdfdfd;
	border-radius: 999px;
	font-family: var(--font-body);
	font-weight: 700;
}

.wc-block-cart__submit-button.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button.wc-block-components-checkout-place-order-button:hover {
	background: #062d20;
}

/* -----------------------------------------------------------
   Empty cart state + cross-sell "New in store" grid
----------------------------------------------------------- */
.wc-block-cart__empty-cart__title {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--c-dark-green);
}

.wc-block-grid__product-title {
	font-weight: 700;
	font-size: 14px;
	color: var(--c-black-100);
}

.wc-block-grid__product-price {
	color: var(--c-gray-60);
}

.wc-block-grid__product-image img {
	border-radius: 10px;
}

.wc-block-grid__product .add_to_cart_button {
	background: #0a3024;
	color: #fdfdfd;
	border-radius: 999px;
	font-family: var(--font-body);
	font-weight: 700;
	text-align: center;
	padding: 8px 16px;
}

/* -----------------------------------------------------------
   Checkout block
----------------------------------------------------------- */
.wc-block-components-checkout-step__heading-content .wc-block-components-checkout-step__title {
	font-size: 18px;
}

.wc-block-components-text-input input,
.wc-block-components-text-input textarea {
	border-radius: 10px;
	font-family: var(--font-body);
}

.wc-block-components-text-input.is-active label,
.wc-block-components-text-input input:focus,
.wc-block-components-text-input textarea:focus {
	color: var(--c-dark-green);
	border-color: var(--c-dark-green) !important;
	box-shadow: none !important;
}

.wc-block-components-radio-control__option {
	border-radius: 10px;
}

.wc-block-components-radio-control__option-checked {
	color: #0a3024;
}

.wc-block-checkout__terms {
	font-size: 13px;
	color: var(--c-gray-60);
}

.wc-block-components-checkout-order-summary__title {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* -----------------------------------------------------------
   Order details / customer details — rendered on the classic
   thank-you page after a successful order (do_action('woocommerce_thankyou')),
   still core markup/classes, themed here.
----------------------------------------------------------- */
.woocommerce-order-details,
.woocommerce-customer-details {
	max-width: 520px;
	margin: 0 auto 24px;
	text-align: start;
}

.woocommerce-order-details__title,
.woocommerce-column__title {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 18px;
	color: var(--c-dark-green);
	margin: 0 0 12px;
}

table.woocommerce-table--order-details {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 24px;
}

table.woocommerce-table--order-details th,
table.woocommerce-table--order-details td {
	padding: 10px 14px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--c-black-100);
	text-align: start;
}

table.woocommerce-table--order-details tfoot th,
table.woocommerce-table--order-details tfoot td {
	font-weight: 700;
}

.woocommerce-columns--addresses {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.woocommerce-column--billing-address address,
.woocommerce-column--shipping-address address {
	font-style: normal;
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--c-gray-60);
	line-height: 1.6;
}

/* -----------------------------------------------------------
   Order received (thank-you) page — theme's own markup
   (woocommerce/checkout/thankyou.php).
----------------------------------------------------------- */
.order-received {
	background: var(--c-cream);
	padding: 160px 0 80px;
	min-height: 60vh;
}

.order-received__card {
	max-width: 520px;
	margin: 0 auto;
	text-align: center;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 20px;
	padding: 48px 32px;
}

.order-received__icon {
	margin: 0 auto 16px;
}

.order-received__card h1 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 26px;
	color: var(--c-dark-green);
	margin: 0 0 8px;
}

.order-received__message {
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--c-gray-60);
	margin: 0 0 24px;
}

.order-received__overview {
	list-style: none;
	margin: 0 0 28px;
	padding: 16px 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--c-gray-60);
}

.order-received__overview li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.order-received__overview strong {
	color: var(--c-dark-green);
}

.order-received__btn,
.order-received__actions {
	display: inline-block;
	background: #0a3024;
	color: #fdfdfd;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 15px;
	padding: 14px 32px;
	border-radius: 999px;
}

.order-received__btn--outline {
	background: transparent;
	color: var(--c-dark-green);
	border: 1.5px solid var(--c-dark-green);
	margin-inline-start: 12px;
}

/* -----------------------------------------------------------
   Responsive
----------------------------------------------------------- */
@media (max-width: 900px) {
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout {
		padding: 140px 16px 60px;
	}
}

@media (max-width: 640px) {
	.wp-block-woocommerce-cart,
	.wp-block-woocommerce-checkout {
		padding: 120px 16px 48px;
	}

	.order-received {
		padding: 120px 0 60px;
	}

	.woocommerce-columns--addresses {
		grid-template-columns: 1fr;
	}

	.order-received__card {
		padding: 32px 20px;
	}

	.order-received__btn--outline {
		margin-inline-start: 0;
		margin-top: 12px;
		display: block;
	}
}
