/* =========================================================================
   Enquiry Cart — AllTrade Forklift
   Brand red: #b60e0a · Font: Roboto (inherits)
   ========================================================================= */

:root {
	--atf-eq-red: #b60e0a;
}

/* ---- Add to Enquiry button (single product / category) --------------- */
.atf-eq-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 26px;
	background: var(--atf-eq-red);
	border: 0;
	border-radius: 0;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background-color .15s ease, opacity .15s ease;
}

.atf-eq-add:hover {
	background: #9f0505;
	color: #fff;
}

.atf-eq-add.is-loading {
	opacity: .6;
	pointer-events: none;
}

.atf-eq-add.is-added::after {
	content: ' \2713';
}

/* ---- Cart button (icon + label + count) ------------------------------ */
.atf-eq-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	background: var(--atf-eq-red);
	color: #fff;
	border-radius: 4px;
	font-size: 0.875rem; /* 14px */
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: .01em;
	transition: background-color .15s ease;
}

.atf-eq-btn,
.atf-eq-btn:hover,
.atf-eq-btn:focus {
	text-decoration: none;
}

.atf-eq-btn:hover {
	background: #9f0505;
	color: #fff;
}

.atf-eq-btn .atf-eq-icon {
	flex: 0 0 auto;
}

.atf-eq-btn__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	background: #fff;
	color: var(--atf-eq-red);
	border-radius: 10px;
	font-size: 11px;
	font-weight: 700;
}

/* Header widget variant */
.atf-eq-widget {
	display: flex;
}

/* ---- Floating cart button (icon only) -------------------------------- */
.atf-eq-fab {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9999;
	padding: 0;
	width: 54px;
	height: 54px;
	justify-content: center;
	border-radius: 50%;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

/* Only visible when the cart has items. */
.atf-eq-fab--hidden {
	display: none !important;
}

.atf-eq-fab .atf-eq-icon {
	width: 24px;
	height: 24px;
}

.atf-eq-fab .atf-eq-btn__count {
	position: absolute;
	top: -4px;
	right: -4px;
	border: 2px solid var(--atf-eq-red);
}

/* Hide the count badge when empty. */
.atf-eq-btn__count:empty,
.atf-eq-count.is-zero {
	display: none;
}

/* ============================ Enquiry page ============================= */
.atf-eq-page {
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	color: #4a4a4a;
	font-size: 0.875rem;
	line-height: 1.6;
	padding-bottom: 80px;
}

.atf-eq-page * {
	box-sizing: border-box;
}

/* Full-bleed banner even inside a constrained content container. */
.atf-eq-page__banner {
	position: relative;
	left: 50%;
	right: 50%;
	width: 100vw;
	margin-left: -50vw;
	margin-right: -50vw;
	height: clamp(150px, 22vw, 240px);
}

/* Hide the theme/Elementor page title on the enquiry page (our own
   "Enquiry Cart" heading is used instead). */
.atf-eq-has-enquiry .entry-title,
.atf-eq-has-enquiry .page-header,
.atf-eq-has-enquiry .elementor-page-title,
.atf-eq-has-enquiry .elementor-widget-theme-page-title {
	display: none !important;
}

.atf-eq-page__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 24px);
}

.atf-eq-page__title {
	margin: 40px 0 30px;
	color: var(--atf-eq-red);
	font-size: 1.625rem; /* 26px */
	font-weight: 400;
}

/* ---- Items ------------------------------------------------------------ */
.atf-eq-items {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px clamp(24px, 5vw, 60px);
	margin: 0 0 30px;
}

.atf-eq-line {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding-bottom: 14px;
	border-bottom: 1px dashed #cfcfcf;
}

.atf-eq-line__thumb {
	flex: 0 0 auto;
}

.atf-eq-line__thumb img {
	display: block;
	width: 56px;
	height: 56px;
	object-fit: cover;
}

.atf-eq-line__info {
	flex: 1 1 auto;
}

.atf-eq-line__name {
	margin: 0 0 6px;
	font-size: 0.8125rem;
	color: #444;
}

.atf-eq-line__name span {
	font-weight: 700;
}

.atf-eq-line__qty {
	margin: 0;
	font-size: 0.8125rem;
}

.atf-eq-line__qty input {
	width: 110px;
	padding: 4px 8px;
	border: 1px solid #9f0505;
	border-radius: 0;
	font-size: 0.8125rem;
}

.atf-eq-remove {
	flex: 0 0 auto;
	margin-left: auto;
	background: none;
	border: 0;
	color: var(--atf-eq-red);
	font-size: 0.9375rem;
	font-weight: 700;
	cursor: pointer;
	line-height: 1;
	text-transform: uppercase;
}

/* ---- Continue button / note ------------------------------------------ */
.atf-eq-page .atf-eq-continue {
	display: inline-flex;
	align-items: center;
	padding: 13px 26px;
	background: var(--atf-eq-red);
	color: #fff !important;
	font-size: 1.125rem; /* 18px */
	font-weight: 400;
	border-radius: 4px !important;
	text-decoration: none !important;
	transition: background-color .15s ease;
}

.atf-eq-page .atf-eq-continue:hover,
.atf-eq-page .atf-eq-continue:focus {
	background: #9f0505;
	text-decoration: none !important;
}

.atf-eq-checkout-note {
	margin: 48px 0 18px;
	color: var(--atf-eq-red);
	font-size: 0.8125rem;
}

/* ---- Form ------------------------------------------------------------- */
.atf-eq-fields {
	border: 0;
	padding: 0;
	margin: 0;
	min-width: 0;
}

.atf-eq-fields legend {
	display: block;
	width: 100%;
	padding: 0;
    margin-bottom: -5px;
	font-size: 1.125rem; /* 18px */
	font-weight: 400;
	text-transform: uppercase;
	color: #333;
}

.atf-eq-fields__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	margin: 6px 0 14px;
}

.atf-eq-fields input[type="text"],
.atf-eq-fields input[type="email"],
.atf-eq-fields textarea {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #9f0505;
	border-radius: 0;
	font-size: 0.875rem;
	font-family: inherit;
	color: #333;
}

.atf-eq-fields textarea {
	display: block;
	width: 100%;
	resize: vertical;
}

.atf-eq-remember {
	display: block;
	margin: 14px 0;
	font-size: 0.8125rem;
	color: #555;
}

.atf-eq-submit {
	display: inline-flex;
	padding: 9px 28px;
	background: var(--atf-eq-red);
	border: 0;
	border-radius: 4px !important;
	color: #fff;
	font-size: 0.875rem; /* 14px */
	font-weight: 400;
	line-height: 1.5;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .15s ease;
}

.atf-eq-submit:hover {
	background: #9f0505;
}

/* Honeypot */
.atf-eq-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---- Notices / empty -------------------------------------------------- */
.atf-eq-notice {
	padding: 14px 16px;
	margin: 0 0 20px;
	border-radius: 4px;
	font-weight: 500;
}

.atf-eq-notice--success {
	background: #e7f6e7;
	border: 1px solid #b7e0b7;
	color: #1e6b1e;
}

.atf-eq-notice--error {
	background: #fbeaea;
	border: 1px solid #f0bcbc;
	color: #a11;
}

.atf-eq-empty {
	padding: 10px 0 24px;
	color: #777;
}

/* ---- Responsive ------------------------------------------------------- */
@media ( max-width: 600px ) {
	.atf-eq-items,
	.atf-eq-fields__grid {
		grid-template-columns: 1fr;
	}
}
