/* =====================================================================
   Basket and checkout: calmer title, brand step bar, and readable notice cards
   instead of the theme's solid red blocks. Loaded only on the basket and checkout pages.
   ===================================================================== */
body.woocommerce-checkout, body.woocommerce-cart { --mtc-navy: #1A1A2E; --mtc-teal: #008A94; --mtc-text: #3D4250; }

/* ---------- Page titles: the giant "CHECKOUT" / "CART" between long rules become quiet left-aligned headings ---------- */
body.woocommerce-checkout .elementor-element-89e5a93 .elementor-divider, body.woocommerce-cart .elementor-element-4e995c8 .elementor-divider { display: block !important; padding: 0 !important; text-align: left !important; }
body.woocommerce-checkout .elementor-element-89e5a93 .elementor-divider-separator, body.woocommerce-cart .elementor-element-4e995c8 .elementor-divider-separator { display: block !important; width: 100% !important; max-width: none; margin: 0 !important; text-align: left !important; }
body.woocommerce-checkout .elementor-element-89e5a93 .elementor-divider-separator::before, body.woocommerce-cart .elementor-element-4e995c8 .elementor-divider-separator::before,
body.woocommerce-checkout .elementor-element-89e5a93 .elementor-divider-separator::after, body.woocommerce-cart .elementor-element-4e995c8 .elementor-divider-separator::after { display: none !important; }
body.woocommerce-checkout .elementor-element-89e5a93 .elementor-divider__text, body.woocommerce-cart .elementor-element-4e995c8 .elementor-divider__text {
	display: block !important; margin: 0 !important; padding: 0 !important; max-width: none !important;
	font-size: clamp(28px, 3vw, 36px) !important; font-weight: 600 !important; line-height: 1.15 !important; letter-spacing: -.01em !important; text-transform: lowercase !important; color: var(--mtc-navy) !important;
}
body.woocommerce-checkout .elementor-element-89e5a93 .elementor-divider__text::first-letter, body.woocommerce-cart .elementor-element-4e995c8 .elementor-divider__text::first-letter { text-transform: uppercase; }
body.woocommerce-checkout .elementor-element-89e5a93 .elementor-divider-separator::after, body.woocommerce-cart .elementor-element-4e995c8 .elementor-divider-separator::after { content: none; }
body.woocommerce-checkout .elementor-element-89e5a93::after {
	content: "Secure checkout"; display: block; margin: 10px 0 0; padding-left: 20px; font-size: 14px; font-weight: 500; line-height: 16px; color: #5B6170;
	background: no-repeat left center / 14px 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23008A94'%3E%3Cpath d='M17 9V7A5 5 0 0 0 7 7v2a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2zM9 7a3 3 0 0 1 6 0v2H9z'/%3E%3C/svg%3E");
}

/* ---------- Step bar: brand teal, normal case ---------- */
body.woocommerce-checkout .fc-progress-bar__count { font-size: 14px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--mtc-navy) !important; }
body.woocommerce-checkout .fc-progress-bar__step { height: 6px !important; border-radius: 999px !important; background-color: #E3E7EB !important; }
body.woocommerce-checkout .fc-progress-bar__step.is-current, body.woocommerce-checkout .fc-progress-bar__step.is-complete { background-color: var(--mtc-teal) !important; }
body.woocommerce-checkout .fc-progress-bar__steps { gap: 6px; }

/* ---------- Notices: soft cards with an icon, readable text ---------- */
body.woocommerce-checkout .woocommerce-error, body.woocommerce-cart .woocommerce-error,
body.woocommerce-checkout .woocommerce-message, body.woocommerce-cart .woocommerce-message,
body.woocommerce-checkout .woocommerce-info, body.woocommerce-cart .woocommerce-info {
	position: relative !important; display: block !important; margin: 0 0 16px !important; padding: 14px 18px 14px 50px !important;
	list-style: none !important; border: 1px solid #F1C4C0 !important; border-radius: 12px !important; background: #FFF6F5 !important; box-shadow: none !important;
	color: var(--mtc-text) !important; font-size: 15px !important; font-weight: 400 !important; line-height: 1.5 !important; text-align: left !important; max-width: 100% !important;
}
body.woocommerce-checkout .woocommerce-error li, body.woocommerce-cart .woocommerce-error li { margin: 0 !important; padding: 0 !important; list-style: none !important; color: inherit !important; }
body.woocommerce-checkout .woocommerce-error li + li, body.woocommerce-cart .woocommerce-error li + li { margin-top: 6px !important; }
body.woocommerce-checkout .woocommerce-error::before, body.woocommerce-cart .woocommerce-error::before,
body.woocommerce-checkout .woocommerce-message::before, body.woocommerce-cart .woocommerce-message::before,
body.woocommerce-checkout .woocommerce-info::before, body.woocommerce-cart .woocommerce-info::before {
	content: "!" !important; position: absolute !important; left: 16px !important; top: 14px !important; display: flex !important; align-items: center; justify-content: center;
	width: 22px !important; height: 22px !important; margin: 0 !important; border-radius: 50% !important; background: #D93025 !important; color: #fff !important;
	font-family: inherit !important; font-size: 13px !important; font-weight: 700 !important; line-height: 1 !important;
}
/* information (teal) */
body.woocommerce-checkout .woocommerce-info, body.woocommerce-cart .woocommerce-info { border-color: rgba(0, 138, 148, .3) !important; background: #EFF8F9 !important; }
body.woocommerce-checkout .woocommerce-info::before, body.woocommerce-cart .woocommerce-info::before { content: "i" !important; background: var(--mtc-teal) !important; font-style: normal !important; }
/* success (green) */
body.woocommerce-checkout .woocommerce-message, body.woocommerce-cart .woocommerce-message { border-color: #BFE3CC !important; background: #F1FAF4 !important; }
body.woocommerce-checkout .woocommerce-message::before, body.woocommerce-cart .woocommerce-message::before { content: "\2713" !important; background: #1E8E5A !important; }
/* links and buttons inside notices */
body.woocommerce-checkout :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) a,
body.woocommerce-cart :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) a { color: var(--mtc-navy) !important; font-weight: 600 !important; text-decoration: underline !important; background: none !important; }
body.woocommerce-checkout :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) a.button,
body.woocommerce-cart :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) a.button { float: right; margin: -2px 0 0 12px !important; padding: 0 !important; border: 0 !important; font-size: 14px !important; text-transform: none !important; letter-spacing: 0 !important; }

/* Notices sit inside the page width, not stretched or squeezed */
body.woocommerce-checkout .woocommerce-notices-wrapper, body.woocommerce-checkout .fc-checkout-notices { max-width: 100%; }

@media (max-width: 767px) {
	body.woocommerce-checkout .woocommerce-error, body.woocommerce-cart .woocommerce-error,
	body.woocommerce-checkout .woocommerce-message, body.woocommerce-cart .woocommerce-message,
	body.woocommerce-checkout .woocommerce-info, body.woocommerce-cart .woocommerce-info { padding: 12px 14px 12px 46px !important; font-size: 14px !important; border-radius: 10px !important; }
	body.woocommerce-checkout :is(.woocommerce-error, .woocommerce-message, .woocommerce-info)::before,
	body.woocommerce-cart :is(.woocommerce-error, .woocommerce-message, .woocommerce-info)::before { left: 14px !important; top: 12px !important; }
}

/* =====================================================================
   Basket on phones: each product becomes a compact card (photo | name, price | quantity + total, remove)
   instead of the theme's tall list of "Product: / Price: / Quantity: / Subtotal:" rows.
   ===================================================================== */
@media (max-width: 767px) {
	body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive { border: 0 !important; background: transparent !important; margin: 0 !important; }
	body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive thead { display: none !important; }
	body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tbody { display: block !important; }
	body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr.cart_item {
		position: relative !important; display: grid !important; grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: "thumb name name" "thumb price price" "thumb qty total";
		gap: 4px 14px; align-items: center; margin: 0 !important; padding: 16px 0 !important; border: 0 !important; border-bottom: 1px solid rgba(26, 26, 46, .12) !important; background: transparent !important;
	}
	body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr.cart_item td { display: block !important; width: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; text-align: left !important; }
	body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr.cart_item td::before { display: none !important; content: none !important; }
	body.woocommerce-cart .woocommerce-cart-form .product-thumbnail { grid-area: thumb; align-self: start; }
	body.woocommerce-cart .woocommerce-cart-form .product-thumbnail a { display: block; }
	body.woocommerce-cart .woocommerce-cart-form .product-thumbnail img { display: block; width: 84px !important; height: 84px !important; max-width: none !important; object-fit: contain; border-radius: 6px; background: #F5F5F7; }
	body.woocommerce-cart .woocommerce-cart-form table.shop_table_responsive tr.cart_item td.product-name { grid-area: name; align-self: start; padding-right: 38px !important; font-size: 15px; font-weight: 600; line-height: 1.35; }
	body.woocommerce-cart .woocommerce-cart-form .product-name a { color: var(--mtc-navy) !important; text-decoration: none !important; font-family: inherit !important; font-size: 15px !important; font-weight: 600 !important; }
	body.woocommerce-cart .woocommerce-cart-form .product-price { grid-area: price; align-self: start; font-size: 14px !important; color: #5B6170; }
	body.woocommerce-cart .woocommerce-cart-form .product-quantity { grid-area: qty; align-self: end; }
	body.woocommerce-cart .woocommerce-cart-form .product-quantity .quantity { margin: 0 !important; }
	body.woocommerce-cart .woocommerce-cart-form .product-quantity input.qty { width: 72px !important; height: 40px !important; padding: 0 10px !important; border: 1px solid #D5D8DC !important; border-radius: 8px !important; font-size: 16px !important; text-align: center; background: #fff !important; }
	body.woocommerce-cart .woocommerce-cart-form .product-subtotal { grid-area: total; align-self: end; font-size: 17px !important; font-weight: 600 !important; color: var(--mtc-navy); text-align: right !important; }
	body.woocommerce-cart .woocommerce-cart-form .product-remove { position: absolute !important; top: 14px; right: 0; width: 28px !important; height: 28px; }
	body.woocommerce-cart .woocommerce-cart-form .product-remove a.remove { display: flex !important; align-items: center; justify-content: center; width: 28px !important; height: 28px !important; border-radius: 50% !important; background: #F1F3F5 !important; color: #5B6170 !important; font-size: 18px !important; line-height: 1 !important; text-decoration: none !important; }
	body.woocommerce-cart .woocommerce-cart-form .product-remove a.remove:hover { background: #D93025 !important; color: #fff !important; }
	/* the card sits on the page, not inside a boxed frame */
	body.woocommerce-cart .woocommerce-cart-form:has(table.shop_table_responsive) { border-radius: 12px; }
}
