/*
 * Cart and checkout (WooCommerce blocks) in the site's house style. The pages use the Elementor
 * "header & footer" template without Elementor content, so the blocks sit straight under <body>:
 * they get the site's 1200px column here, plus the fonts, colours and buttons of the shop pages.
 */

.woocommerce-cart,
.woocommerce-checkout {
	--jc-primary: #AD7674;
	--jc-primary-dark: #8E5F5D;
	--jc-secondary: #EDE0D8;
	--jc-cream: #FFF6F0;
	--jc-text: #303030;
	--jc-text-soft: #5C4A3A;
	--jc-line: rgba(173, 118, 116, 0.25);
	--jc-serif: "Cormorant Garamond", Georgia, serif;
	--jc-sans: "Inter", -apple-system, sans-serif;
}

/* ---------- Page heading (added by Joelle_Maatwerk_Cart_Style) ---------- */
.joelle-cart-hero {
	background: var(--jc-secondary);
	padding: 64px 40px 56px;
	text-align: center;
	font-family: var(--jc-sans);
}
.joelle-cart-hero-eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--jc-primary);
	opacity: 0.75;
	margin: 0 0 12px;
}
.joelle-cart-hero .joelle-cart-hero-title {
	font-family: var(--jc-serif);
	font-size: clamp(36px, 4.4vw, 54px);
	font-weight: 500;
	line-height: 1.05;
	color: var(--jc-primary);
	margin: 0;
}

/* ---------- Column ---------- */
.woocommerce-cart .wp-block-woocommerce-cart,
.woocommerce-checkout .wp-block-woocommerce-checkout {
	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
	padding: 56px 40px 96px;
	font-family: var(--jc-sans);
	color: var(--jc-text);
}

/* ---------- Type ---------- */
.woocommerce-cart .wc-block-cart-items__header,
.woocommerce-cart .wc-block-cart__totals-title,
.woocommerce-checkout .wc-block-components-checkout-order-summary__title-text {
	font-family: var(--jc-sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--jc-primary);
}
.woocommerce-checkout .wc-block-components-checkout-order-summary__title-text {
	font-size: 12px !important;
	letter-spacing: 0.2em !important;
}
.woocommerce-checkout .wc-block-components-checkout-step__title,
.woocommerce-checkout .wc-block-components-title.wc-block-components-title {
	font-family: var(--jc-serif);
	font-size: 28px;
	font-weight: 500;
	color: var(--jc-primary);
}
.wc-block-components-product-name,
.wc-block-cart-item__product .wc-block-components-product-name {
	font-family: var(--jc-serif);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--jc-primary);
	text-decoration: none;
}
.wc-block-cart-items .wc-block-components-product-name {
	font-size: 22px !important;
}
.wc-block-components-product-name:hover {
	color: var(--jc-primary-dark);
}
.woocommerce-cart .wp-block-woocommerce-cart a:not(.wc-block-components-button),
.woocommerce-checkout .wp-block-woocommerce-checkout a:not(.wc-block-components-button) {
	color: var(--jc-primary);
}
.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value {
	font-family: var(--jc-sans);
}
.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-family: var(--jc-serif);
	font-size: 26px;
	font-weight: 500;
	color: var(--jc-primary);
}
.wc-block-components-product-metadata__description,
.wc-block-components-checkout-step__description {
	color: var(--jc-text-soft);
	font-weight: 300;
}
.wc-block-cart-item__image img {
	border-radius: 4px;
	background: var(--jc-secondary);
}

/* ---------- Buttons ---------- */
.wc-block-components-button:not(.is-link),
.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button {
	background: var(--jc-primary) !important;
	color: var(--jc-cream) !important;
	border: 0 !important;
	border-radius: 3px !important;
	box-shadow: none !important;
	font-family: var(--jc-sans) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: 1.2px !important;
	text-transform: uppercase !important;
	min-height: 52px;
	transition: background 200ms ease;
}
.wc-block-components-button:not(.is-link):hover,
.wc-block-components-checkout-place-order-button:hover,
.wc-block-cart__submit-button:hover {
	background: var(--jc-primary-dark) !important;
}
.wc-block-components-button:not(.is-link) .wc-block-components-button__text,
.wc-block-components-checkout-place-order-button .wc-block-components-button__text {
	color: var(--jc-cream);
}
.wc-block-components-button.is-link,
.wc-block-components-checkout-return-to-cart-button {
	color: var(--jc-primary) !important;
	font-family: var(--jc-sans);
}

/* ---------- Fields, quantity, radio ---------- */
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-textarea {
	font-family: var(--jc-sans) !important;
	border-color: rgba(173, 118, 116, 0.35) !important;
	border-radius: 3px !important;
}
.wc-block-components-text-input input:focus,
.wc-block-components-combobox .wc-block-components-combobox-control input:focus,
.wc-blocks-components-select .wc-blocks-components-select__select:focus,
.wc-block-components-textarea:focus {
	border-color: var(--jc-primary) !important;
	box-shadow: 0 0 0 1px var(--jc-primary) !important;
	outline: 0 !important;
}
.wc-block-components-quantity-selector {
	border-color: rgba(173, 118, 116, 0.35) !important;
	border-radius: 3px !important;
}
.wc-block-components-quantity-selector input,
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	font-family: var(--jc-sans);
	color: var(--jc-text);
}
.wc-block-components-radio-control__input:checked,
.wc-block-components-checkbox .wc-block-components-checkbox__input:checked {
	border-color: var(--jc-primary) !important;
	background-color: var(--jc-primary) !important;
}
.wc-block-components-radio-control__input:checked::before {
	background: var(--jc-cream) !important;
}
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
	box-shadow: inset 0 0 0 1px var(--jc-primary) !important;
	border-radius: 3px;
}
.wc-block-components-checkout-order-summary,
.wp-block-woocommerce-checkout-order-summary-block {
	border-color: var(--jc-line) !important;
	border-radius: 4px;
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.joelle-cart-hero {
		padding: 48px 20px 40px;
	}
	.woocommerce-cart .wp-block-woocommerce-cart,
	.woocommerce-checkout .wp-block-woocommerce-checkout {
		padding: 32px 20px 64px;
	}
}
