/* Zamco quote list. Uses the Zamco theme's colour tokens when present. */
.zq,
.zq-toast,
.zq-single,
.zq-row,
.zq-preview,
.zq-account-requests,
.zq-account-empty {
	--zq-ink: var(--z-ink, #141618);
	--zq-text: var(--z-text-strong, #3d4043);
	--zq-muted: var(--z-muted, #5f6264);
	--zq-faint: var(--z-faint, #8a8d8f);
	--zq-line: var(--z-line, #e4e1da);
	--zq-line-2: var(--z-line-2, #d8d4cb);
	--zq-stone: var(--z-stone, #f0efe9);
	--zq-tile: var(--z-tile, #f7f6f2);
	--zq-accent: var(--z-accent, #365b77);
	--zq-accent-hover: var(--z-accent-hover, #2a4960);
	--zq-danger: var(--z-danger, #a33a2c);
	--zq-in: var(--z-stock-in, #2f7a4a);
	--zq-in-dot: var(--z-stock-in-dot, #3d9a5f);
	--zq-order: var(--z-stock-order, #8a5a12);
	--zq-order-dot: var(--z-stock-order-dot, #d9a441);
	--zq-out: var(--z-stock-out, #a33a2c);
	--zq-out-dot: var(--z-stock-out-dot, #c8483a);
	--zq-low: var(--z-stock-low, #b5470b);
	--zq-low-dot: var(--z-stock-low-dot, #f07a1a);
	--zq-ease: var(--z-ease, cubic-bezier(.2, .7, .2, 1));
	--zq-head: var(--z-font-head, inherit);
}

.zq-live {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ── Add buttons ─────────────────────────────────────────────── */
.zq-add { position: relative; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.zq-add__count { display: none; font-size: 14px; font-weight: 600; line-height: 1; }
.zq-add.is-in-list { background: var(--z-accent, #365b77); border-color: var(--z-accent, #365b77); color: #fff; }
.zq-add.is-in-list:hover { background: var(--zq-accent-hover); border-color: var(--zq-accent-hover); }
.zq-add.is-in-list .zq-icon { display: none; }
.zq-add.is-in-list .zq-add__count { display: block; }
.zq-add.is-pulse { animation: zq-pulse .4s var(--z-ease, ease); }
@keyframes zq-pulse { 50% { transform: scale(1.12); } }

.zq-single { margin: 0 0 34px; }
.zq-single__label { display: block; margin: 0 0 8px; font-size: 14px; color: var(--zq-muted); }
.zq-single__row { display: flex; flex-wrap: wrap; gap: 12px; }
.zq-single__button { flex: 1 1 220px; min-height: 54px; font-size: 16px; }
.zq-single__status { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; color: var(--zq-in); }
.zq-single__status:empty { margin: 0; min-height: 0; }

/* Compact row for list views: quantity and button side by side */
.zq-row { display: flex; align-items: center; gap: 10px; margin: 0; }
.zq-row .zq-qty input.zq-qty__input { width: 46px; height: 40px; }
.zq-row .zq-qty__step { width: 34px; height: 40px; }
.zq-row__button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 42px;
	padding: 0 18px;
	border: 1px solid var(--z-ink, #141618);
	border-radius: 999px;
	background: var(--z-white, #fff);
	color: var(--z-ink, #141618);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s var(--z-ease, ease), color .2s var(--z-ease, ease);
}
.zq-row__button:hover { background: var(--zq-accent); border-color: var(--zq-accent); color: #fff; }

/* Quantity controls this plugin draws (match the theme's pill steppers) */
.zq-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--zq-line-2);
	border-radius: 999px;
	background: #fff;
}
.zq-qty input.zq-qty__input {
	width: 56px;
	min-height: 0;
	height: 44px;
	border: 0;
	padding: 0;
	background: transparent;
	text-align: center;
	font-size: 16px;
	color: var(--zq-ink);
	-moz-appearance: textfield;
	box-shadow: none;
}
.zq-qty input.zq-qty__input:focus { box-shadow: none; outline: none; }
.zq-qty:focus-within { border-color: var(--zq-accent); box-shadow: 0 0 0 3px rgba(54, 91, 119, .15); }
.zq-qty__input::-webkit-outer-spin-button,
.zq-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.zq-qty__step {
	width: 40px; height: 44px;
	border: 0;
	padding: 0;
	background: none;
	font-size: 19px;
	line-height: 1;
	color: var(--zq-ink);
	cursor: pointer;
}
.zq-qty__step:hover { color: var(--zq-accent); }
.zq-single .zq-qty input.zq-qty__input { height: 52px; }
.zq-single .zq-qty__step { width: 48px; height: 52px; }

/* ── Toast ───────────────────────────────────────────────────── */
.zq-toast {
	position: fixed;
	right: 24px; bottom: 24px;
	z-index: 1000;
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto;
	gap: 16px;
	align-items: start;
	width: min(420px, calc(100vw - 24px));
	padding: 16px;
	background: #fff;
	border: 1px solid var(--zq-line);
	box-shadow: 0 18px 50px rgba(20, 22, 24, .16);
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px);
	transition: opacity .25s var(--zq-ease), transform .25s var(--zq-ease), visibility 0s linear .25s;
}
.zq-toast.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.zq-toast--warn { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.zq-toast__media {
	display: flex; align-items: center; justify-content: center;
	width: 72px; height: 72px;
	background: var(--zq-tile);
	color: var(--zq-faint);
}
.zq-toast__media img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.zq-toast__body { min-width: 0; }
.zq-toast__title { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; font-size: 13px; font-weight: 600; color: var(--zq-in); }
.zq-toast--warn .zq-toast__title { color: var(--zq-text); font-weight: 500; font-size: 14px; }
.zq-toast__name {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.35;
	color: var(--zq-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.zq-toast__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.zq-toast__link { font-size: 14px; font-weight: 500; color: var(--zq-accent); border-bottom: 1px solid currentColor; white-space: nowrap; }
.zq-toast__close {
	display: flex; align-items: center; justify-content: center;
	width: 32px; height: 32px;
	margin: -6px -6px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--zq-muted);
	cursor: pointer;
}
.zq-toast__close:hover { color: var(--zq-ink); }
.zq-toast .zq-qty input.zq-qty__input { width: 48px; height: 38px; font-size: 16px; }
.zq-toast .zq-qty__step { width: 34px; height: 38px; }

@media (max-width: 599px) {
	.zq-toast { right: 12px; bottom: 12px; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; padding: 14px; }
	.zq-toast__media { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
	.zq-toast { transition: none; }
	.zq-add.is-pulse { animation: none; }
}

/* ── Quote list page ─────────────────────────────────────────── */
.zq { color: var(--zq-text); }
.zq [hidden] { display: none !important; }
.zq-intro { max-width: 760px; margin: -12px 0 44px; font-size: 17px; line-height: 1.65; color: var(--zq-text); }

.zq-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
	gap: 48px 64px;
	align-items: start;
}
.zq.is-empty .zq-layout { grid-template-columns: minmax(0, 1fr); }
.zq.is-empty .zq-details { display: none; }

.zq-heading {
	margin: 0;
	font-family: var(--zq-head);
	font-size: 26px;
	font-weight: 400;
	letter-spacing: -0.02em;
	color: var(--zq-ink);
}
.zq-list__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--zq-ink);
}
.zq-list__count { font-size: 14px; color: var(--zq-muted); }

.zq-items { list-style: none; margin: 0; padding: 0; }
.zq-item {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) auto;
	gap: 20px 24px;
	align-items: start;
	padding: 22px 0;
	border-bottom: 1px solid var(--zq-line);
}
.zq-item__media {
	display: flex; align-items: center; justify-content: center;
	width: 96px; height: 96px;
	background: var(--zq-tile);
	color: var(--zq-faint);
}
.zq-item__media img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; }
.zq-item__body { min-width: 0; }
.zq-item__name {
	display: block;
	margin: 2px 0 6px;
	font-family: var(--zq-head);
	font-size: 18px;
	line-height: 1.3;
	color: var(--zq-ink);
	text-decoration: none;
}
.zq-item__name:hover { color: var(--zq-accent); }
.zq-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 0 0 12px; font-size: 13px; color: var(--zq-muted); }
.zq-item__note {
	display: block;
	width: 100%;
	min-height: 42px;
	padding: 9px 12px;
	border: 1px solid var(--zq-line-2);
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	line-height: 1.45;
	resize: vertical;
}
.zq-item__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.zq-item__remove {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 0;
	border: 0;
	background: none;
	font-size: 13px;
	color: var(--zq-muted);
	cursor: pointer;
}
.zq-item__remove:hover { color: var(--zq-danger); }
.zq-item.is-gone .zq-item__media,
.zq-item.is-gone .zq-item__name { opacity: .5; }
.zq-item__gone { margin: 0; font-size: 14px; color: var(--zq-danger); }

.zq-stock { display: inline-flex; align-items: center; gap: 6px; }
.zq-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; }
.zq-stock--in { color: var(--zq-in); }
.zq-stock--in::before { background: var(--zq-in-dot); }
.zq-stock--order { color: var(--zq-order); }
.zq-stock--order::before { background: var(--zq-order-dot); }
.zq-stock--out { color: var(--zq-out); }
.zq-stock--out::before { background: var(--zq-out-dot); }
.zq-stock--low { color: var(--zq-low); }
.zq-stock--low::before { background: var(--zq-low-dot); }

.zq-empty { padding: 48px 0 8px; }
.zq-empty p { max-width: 560px; margin: 0 0 22px; font-size: 16px; }
.zq-list__more { margin: 20px 0 0; font-size: 15px; }
.zq-list__more a { color: var(--zq-accent); border-bottom: 1px solid currentColor; text-decoration: none; }
.zq.is-empty .zq-list__more { display: none; }

/* Details form */
.zq-details {
	padding: 32px;
	background: var(--zq-stone);
}
.zq-details .zq-heading { margin-bottom: 22px; }
.zq-form { display: grid; gap: 18px; }
.zq-grid { display: grid; gap: 18px; }
.zq-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.zq-field > label,
.zq-field legend { display: block; margin: 0 0 6px; padding: 0; font-size: 14px; font-weight: 500; color: var(--zq-ink); }
.zq-required { color: var(--zq-danger); }
.zq-optional { font-weight: 400; color: var(--zq-muted); }
.zq-field input[type="text"],
.zq-field input[type="email"],
.zq-field input[type="tel"],
.zq-field select,
.zq-field textarea {
	display: block;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--zq-line-2);
	border-radius: 8px;
	background: #fff;
	font-size: 16px;
	color: var(--zq-ink);
}
.zq-field textarea { resize: vertical; min-height: 86px; }
.zq-field select {
	appearance: none;
	padding-right: 40px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2355585b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
	cursor: pointer;
}
.zq-field.has-error input,
.zq-field.has-error select,
.zq-field.has-error textarea { border-color: var(--zq-danger); }
/* Google's "I'm not a robot" box: fixed 304 px wide; quote.js scales it to the column. */
.zq-robot { margin: 4px 0 18px; outline: none; }
.zq-field__error { margin: 6px 0 0; font-size: 13px; color: var(--zq-danger); }
.zq-field__error:empty { display: none; }

.zq-choice__options { display: flex; flex-wrap: wrap; gap: 8px; }
.zq-choice__option { position: relative; display: inline-flex; cursor: pointer; }
.zq-choice__option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.zq-choice__option span {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--zq-line-2);
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	color: var(--zq-ink);
	transition: background-color .2s var(--zq-ease), border-color .2s var(--zq-ease), color .2s var(--zq-ease);
}
.zq-choice__option input:checked + span { background: var(--zq-accent); border-color: var(--zq-accent); color: #fff; }
.zq-choice__option input:focus-visible + span { outline: 2px solid var(--zq-accent); outline-offset: 2px; }

.zq-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.zq-submit { width: 100%; min-height: 54px; font-size: 16px; }
.zq-submit[disabled] { opacity: .7; cursor: progress; }
.zq-privacy { margin: 0; font-size: 13px; color: var(--zq-muted); }
.zq-privacy a { color: var(--zq-accent); }

.zq-notice { margin: 0; padding: 14px 16px; border-left: 3px solid var(--zq-accent); background: #fff; font-size: 14px; }
.zq-notice--error { border-left-color: var(--zq-danger); color: var(--zq-danger); }
.zq-notice:focus { outline: none; }

/* Sent */
.zq-done { max-width: 720px; padding: 8px 0 20px; scroll-margin-top: 120px; }
.zq-done:focus { outline: none; }
.zq-done__icon {
	display: flex; align-items: center; justify-content: center;
	width: 60px; height: 60px;
	margin: 0 0 24px;
	border-radius: 50%;
	background: var(--zq-in);
	color: #fff;
}
.zq-done__title { margin: 0 0 14px; font-family: var(--zq-head); font-size: clamp(30px, 3vw, 40px); font-weight: 400; letter-spacing: -0.03em; color: var(--zq-ink); }
.zq-done__ref { margin: 0 0 18px; }
.zq-done__ref span {
	display: inline-block;
	padding: 8px 16px;
	background: var(--zq-stone);
	font-family: var(--zq-head);
	font-size: 22px;
	letter-spacing: .02em;
	color: var(--zq-ink);
}
.zq-done__text { margin: 0 0 10px; font-size: 16px; }
.zq-done__subtitle { margin: 34px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--zq-muted); }
.zq-done__items { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--zq-line); }
.zq-done__items li { display: flex; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--zq-line); font-size: 15px; }
.zq-done__qty { min-width: 70px; color: var(--zq-ink); font-weight: 600; }
.zq-done__name { color: var(--zq-ink); }
.zq-done__name small { display: block; font-size: 13px; color: var(--zq-muted); }

@media (max-width: 999px) {
	.zq-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
	.zq-intro { margin: -8px 0 32px; font-size: 16px; }
	.zq-item { grid-template-columns: 72px minmax(0, 1fr); gap: 14px 16px; }
	.zq-item__media { width: 72px; height: 72px; }
	.zq-item__actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
	/* 16px stops phones zooming in when a field gets focus. */
	.zq-item__note { min-height: 66px; font-size: 16px; }
	.zq-details { margin-inline: calc(var(--z-gutter, 16px) * -1); padding: 28px var(--z-gutter, 16px); }
}

/* ── Signed-in clients: locked details on the request form ─── */
.zq-account-note { margin: 0 0 18px; font-size: 14px; color: var(--zq-muted); }
.zq-account-note a { color: var(--zq-accent); text-decoration: underline; text-underline-offset: 3px; }
.zq-field input[readonly] { background: var(--zq-tile); color: var(--zq-text); border-color: var(--zq-line); cursor: default; }
.zq-field input[readonly]:focus { outline: 2px solid var(--zq-line-2); outline-offset: 0; }

/* ── Header preview (zamco_quote_preview_html) ─────────────── */
.zq-preview-host { position: relative; }
.zq-preview { display: none; }
@media (hover: hover) and (pointer: fine) {
	.zq-preview {
		display: block;
		position: absolute;
		top: 100%;
		right: -12px;
		z-index: 60;
		width: 360px;
		padding-top: 12px;
		text-align: left;
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity .18s var(--zq-ease), transform .18s var(--zq-ease), visibility 0s linear .18s;
	}
	.zq-preview-host:hover .zq-preview,
	.zq-preview-host:focus-within .zq-preview {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition-delay: 0s;
	}
}
.zq-preview__card { padding: 18px; background: #fff; border: 1px solid var(--zq-line); box-shadow: 0 18px 40px -18px rgba(20, 22, 24, .28); }
.zq-preview__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.zq-preview__title { font-family: var(--zq-head); font-size: 17px; color: var(--zq-ink); }
.zq-preview__count { font-size: 13px; color: var(--zq-muted); }
.zq-preview__empty { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--zq-muted); }
.zq-preview__items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--zq-line); }
.zq-preview__item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--zq-line); }
.zq-preview__media { display: grid; place-items: center; width: 44px; height: 44px; background: var(--zq-tile); color: var(--zq-faint); overflow: hidden; }
.zq-preview__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.zq-preview__name { font-size: 14px; line-height: 1.35; color: var(--zq-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
a.zq-preview__name:hover { color: var(--zq-accent); }
.zq-preview__qty { font-size: 13px; color: var(--zq-muted); white-space: nowrap; }
.zq-preview__more { margin: 10px 0 0; font-size: 13px; color: var(--zq-muted); }
.zq-preview__button { display: flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 14px; background: var(--zq-accent); color: #fff; font-size: 15px; text-decoration: none; transition: background .15s; }
.zq-preview__button:hover { background: var(--zq-accent-hover); color: #fff; }

/* ── My account > Quote requests ───────────────────────────── */
.zq-account-requests { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--zq-line); }
.zq-account-request { border-bottom: 1px solid var(--zq-line); }
.zq-account-request summary { display: grid; grid-template-columns: minmax(130px, auto) 1fr auto auto 12px; align-items: center; gap: 8px 20px; padding: 18px 0; cursor: pointer; list-style: none; }
.zq-account-request summary::-webkit-details-marker { display: none; }
.zq-account-request summary::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid var(--zq-muted); border-bottom: 1.5px solid var(--zq-muted); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .15s; }
.zq-account-request details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.zq-account-request__ref { font-family: var(--zq-head); font-size: 17px; color: var(--zq-ink); }
.zq-account-request__date,
.zq-account-request__count { font-size: 14px; color: var(--zq-muted); }
.zq-account-request__status { justify-self: end; padding: 4px 10px; font-size: 13px; background: var(--zq-stone); color: var(--zq-text); white-space: nowrap; }
.zq-account-request__status--zq_quoted { background: #e6f1ea; color: var(--zq-in); }
.zq-account-request__status--zq_closed { color: var(--zq-muted); }
.zq-account-request__body { padding: 0 0 20px; }
.zq-account-request__bc { margin: 0 0 12px; font-size: 14px; color: var(--zq-muted); }
.zq-account-request__bc strong { color: var(--zq-ink); }
.zq-account-request__items { list-style: none; margin: 0; padding: 0; }
.zq-account-request__items li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 8px 0; font-size: 15px; border-top: 1px dashed var(--zq-line); }
.zq-account-request__qty { color: var(--zq-muted); }
.zq-account-request__name small { display: block; font-size: 13px; color: var(--zq-muted); }
.zq-account-request__notes { margin: 12px 0 0; padding: 12px 14px; background: var(--zq-tile); font-size: 14px; }
.zq-account-empty p { margin: 0 0 18px; color: var(--zq-text); }
@media (max-width: 640px) {
	.zq-account-request summary { grid-template-columns: 1fr auto 12px; }
	.zq-account-request__date { grid-column: 1; }
	.zq-account-request__count { display: none; }
	.zq-account-request__status { grid-row: 1; grid-column: 2; }
	.zq-account-request summary::after { grid-row: 1; grid-column: 3; }
}
