/**
 * HalalEco - shared shell for the cart and checkout pages.
 * Tokens, full-width layout, step indicator and reassurance strip.
 */

body.hpp-shell {
	--hpp-green: #5da22b;
	--hpp-green-dark: #4c8a22;
	--hpp-green-soft: #f1f7ea;
	--hpp-green-line: #dceccd;
	--hpp-ink: #14170f;
	--hpp-body: #5b6055;
	--hpp-muted: #8c9188;
	--hpp-line: #e9e9e4;
	--hpp-surface: #faf9f6;
}

/* ------------------------------------------------------------------ *
 * Drop the blog sidebar, go full width
 * ------------------------------------------------------------------ */

body.hpp-shell #sidebar,
body.hpp-shell .sidebar,
body.hpp-shell #sidebar-alt {
	display: none !important;
}

body.hpp-shell #content,
body.hpp-shell .content {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

body.hpp-shell .page-content,
body.hpp-shell .entry-content {
	margin-top: 0;
}

body.hpp-shell .type-page > time,
body.hpp-shell .post-date {
	display: none !important;
}

/* ------------------------------------------------------------------ *
 * Page header + step indicator
 * ------------------------------------------------------------------ */

body.hpp-shell h1.page-title {
	margin: 0 0 22px;
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.1;
	color: var(--hpp-ink);
	text-align: left;
}

body.hpp-shell .hpp-cart-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0 0 26px;
}

body.hpp-shell .hpp-steps {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.hpp-shell .hpp-step {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	padding: 9px 16px 9px 9px;
	border: 1px solid var(--hpp-line);
	border-radius: 999px;
	background: #fff;
	list-style: none;
}

body.hpp-shell .hpp-step-n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--hpp-surface);
	color: var(--hpp-muted);
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1;
}

body.hpp-shell .hpp-step-t {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--hpp-muted);
	line-height: 1;
}

body.hpp-shell .hpp-step.is-active {
	border-color: var(--hpp-green-line);
	background: var(--hpp-green-soft);
}

body.hpp-shell .hpp-step.is-active .hpp-step-n {
	background: var(--hpp-green);
	color: #fff;
}

body.hpp-shell .hpp-step.is-active .hpp-step-t {
	color: var(--hpp-green-dark);
}

body.hpp-shell .hpp-step.is-done {
	border-color: var(--hpp-green-line);
}

body.hpp-shell .hpp-step.is-done .hpp-step-n {
	background: var(--hpp-green-soft);
	color: transparent;
	position: relative;
}

body.hpp-shell .hpp-step.is-done .hpp-step-n::after {
	content: "";
	position: absolute;
	left: 8px;
	top: 7px;
	width: 9px;
	height: 5px;
	border-left: 2px solid var(--hpp-green-dark);
	border-bottom: 2px solid var(--hpp-green-dark);
	transform: rotate(-45deg);
}

body.hpp-shell .hpp-step.is-done .hpp-step-t {
	color: var(--hpp-green-dark);
}

body.hpp-shell .hpp-back {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 800;
	color: var(--hpp-muted);
	text-decoration: none;
	transition: color .15s ease;
}

body.hpp-shell .hpp-back::before {
	content: "";
	width: 7px;
	height: 7px;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

body.hpp-shell .hpp-back:hover {
	color: var(--hpp-green-dark);
}

/* ------------------------------------------------------------------ *
 * Reassurance strip
 * ------------------------------------------------------------------ */

body.hpp-shell .hpp-cart-badges {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	margin: 40px 0 8px;
	padding: 0;
	list-style: none;
	background: var(--hpp-green-line);
	border: 1px solid var(--hpp-green-line);
	border-radius: 16px;
	overflow: hidden;
}

body.hpp-shell .hpp-badge {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 18px 16px;
	background: var(--hpp-green-soft);
	list-style: none;
}

body.hpp-shell .hpp-badge-ico {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: #fff;
	color: var(--hpp-green-dark);
	box-shadow: 0 2px 6px rgba(20, 23, 15, .06);
}

body.hpp-shell .hpp-ico svg {
	width: 20px;
	height: 20px;
	display: block;
}

body.hpp-shell .hpp-badge-txt {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

body.hpp-shell .hpp-badge-txt strong {
	font-size: 14px;
	font-weight: 800;
	color: var(--hpp-ink);
	line-height: 1.3;
}

body.hpp-shell .hpp-badge-txt em {
	font-size: 12px;
	font-style: normal;
	color: var(--hpp-body);
	line-height: 1.4;
}

/* ------------------------------------------------------------------ *
 * Notices
 * ------------------------------------------------------------------ */

body.hpp-shell .wc-block-components-notice-banner {
	border-radius: 12px;
}

/* ------------------------------------------------------------------ *
 * Responsive
 * ------------------------------------------------------------------ */

@media (max-width: 900px) {
	body.hpp-shell h1.page-title {
		font-size: 30px;
	}

	body.hpp-shell .hpp-cart-badges {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	body.hpp-shell .hpp-steps {
		gap: 6px;
	}

	body.hpp-shell .hpp-step {
		padding: 7px 12px 7px 7px;
	}

	body.hpp-shell .hpp-step-t {
		font-size: 11px;
	}

	body.hpp-shell .hpp-cart-badges {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.hpp-shell * {
		animation: none !important;
		transition: none !important;
	}
}
