/* Attribute Swatches for WooCommerce - Request a quote page ([wcas_quote_checkout]) */

.wcas-qc {
	--qc-ink: #0f2a3a;
	--qc-brand: var(--brand-blue, #0A3D5A);
	--qc-muted: #64748b;
	--qc-line: #e3ebf1;
	--qc-soft: #f4f8fb;

	box-sizing: border-box;
	/* Elementor / flex wrappers can shrink a block to its content, collapsing the two-column layout.
	   Use explicit page-width sizing and reset parent-driven shrink constraints so the layout stays stable. */
	display: block;
	flex: 0 0 auto !important;
	align-self: stretch;
	position: relative;
	width: min(1560px, calc(100vw - 48px)) !important;
	min-width: min(720px, calc(100vw - 32px)) !important;
	max-width: 100% !important;
	margin: 0 auto;
	padding: clamp(16px, 3vw, 40px) clamp(14px, 3vw, 24px) 56px;
	color: var(--qc-ink);
	font-family: inherit;
}

/* Some themes wrap the shortcode inside flex/grid containers and override width with their own rules.
   These resets keep the quote page at the full page width instead of collapsing to a narrow content width. */
.elementor .wcas-qc,
.entry-content .wcas-qc,
.page-content .wcas-qc,
.site-content .wcas-qc,
.main-content .wcas-qc {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	flex: 0 0 auto !important;
}

.wcas-qc-grid {
	width: 100%;
}

.wcas-qc,
.wcas-qc-grid,
.wcas-qc-form,
.wcas-qc-aside,
.wcas-qc-aside__inner {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	flex: 0 0 auto !important;
}

.wcas-qc *,
.wcas-qc *::before,
.wcas-qc *::after {
	box-sizing: border-box;
}

.wcas-qc [hidden] {
	display: none !important;
}

.wcas-qc-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
	gap: clamp(20px, 3vw, 40px);
	align-items: start;
}

/* ---------- Left: form ---------- */

.wcas-qc-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

.wcas-qc .wcas-qc-title {
	margin: 0 0 6px;
	font-size: clamp(26px, 3.2vw, 36px) !important;
	line-height: 1.15 !important;
	color: var(--qc-ink);
}

.wcas-qc .wcas-qc-lead {
	font-size: 15px !important;
	line-height: 1.55 !important;
}

.wcas-qc-lead {
	margin: 0;
	max-width: 56ch;
	font-size: 15px;
	line-height: 1.55;
	color: var(--qc-muted);
}

.wcas-qc-card {
	padding: clamp(18px, 2.4vw, 26px);
	border: 1px solid var(--qc-line);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 14px 34px -26px rgba(10, 61, 90, 0.35);
}

.wcas-qc-h {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--qc-ink);
}

.wcas-qc-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex: 0 0 26px;
	border-radius: 50%;
	background: var(--qc-brand);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

.wcas-qc-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.wcas-qc-row--3 {
	grid-template-columns: 1.4fr 1fr 1fr;
}

.wcas-qc-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 14px;
	min-width: 0;
}

.wcas-qc-row .wcas-qc-field,
.wcas-qc-field:last-child {
	margin-bottom: 0;
}

.wcas-qc-row + .wcas-qc-row {
	margin-top: 14px;
}

.wcas-qc-field > span {
	font-size: 13px;
	font-weight: 600;
	color: var(--qc-ink);
}

.wcas-qc .wcas-qc-field input,
.wcas-qc .wcas-qc-field select,
.wcas-qc .wcas-qc-field textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 1.5px solid var(--qc-line);
	border-radius: 14px;
	background: #fff;
	color: var(--qc-ink);
	font: inherit;
	font-size: 15px;
	line-height: 1.3;
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wcas-qc .wcas-qc-field textarea {
	min-height: 96px;
	resize: vertical;
}

.wcas-qc .wcas-qc-field input:focus,
.wcas-qc .wcas-qc-field select:focus,
.wcas-qc .wcas-qc-field textarea:focus {
	outline: none;
	border-color: var(--qc-brand);
	box-shadow: 0 0 0 4px rgba(10, 61, 90, 0.12);
}

.wcas-qc .wcas-qc-field .has-error {
	border-color: #dc2626;
	box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

/* Pickup / delivery cards */
.wcas-qc-choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}

.wcas-qc-choice {
	position: relative;
	display: block;
	cursor: pointer;
}

.wcas-qc-choice input {
	position: absolute;
	opacity: 0;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

.wcas-qc-choice__box {
	display: flex;
	flex-direction: column;
	gap: 3px;
	height: 100%;
	padding: 14px 16px 14px 46px;
	border: 1.5px solid var(--qc-line);
	border-radius: 16px;
	background: #fff;
	position: relative;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.wcas-qc-choice__box::before {
	content: "";
	position: absolute;
	left: 16px;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	border: 2px solid #b8c7d3;
	border-radius: 50%;
	background: #fff;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.wcas-qc-choice__box strong {
	font-size: 15px;
	color: var(--qc-ink);
}

.wcas-qc-choice__box small {
	font-size: 12.5px;
	line-height: 1.35;
	color: var(--qc-muted);
}

.wcas-qc-choice:hover .wcas-qc-choice__box {
	border-color: #b8c7d3;
}

.wcas-qc-choice input:checked + .wcas-qc-choice__box {
	border-color: var(--qc-brand);
	background: var(--qc-soft);
	box-shadow: 0 0 0 3px rgba(10, 61, 90, 0.1);
}

.wcas-qc-choice input:checked + .wcas-qc-choice__box::before {
	border-color: var(--qc-brand);
	background: radial-gradient(circle, var(--qc-brand) 0 4px, #fff 5px);
}

.wcas-qc-choice input:focus-visible + .wcas-qc-choice__box {
	outline: 2px solid var(--qc-brand);
	outline-offset: 2px;
}

.wcas-qc-panel {
	animation: wcas-qc-fade 0.3s ease both;
}

@keyframes wcas-qc-fade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

.wcas-qc-static {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--qc-soft);
}

.wcas-qc-static span {
	font-size: 12.5px;
	color: var(--qc-muted);
}

.wcas-qc-hint {
	margin: 0;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--qc-soft);
	font-size: 14px;
	color: var(--qc-muted);
}

.wcas-qc-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.wcas-qc-error {
	margin: 0;
	padding: 12px 16px;
	border-radius: 12px;
	background: #fdecec;
	color: #a31616;
	font-size: 14px;
	line-height: 1.45;
}

.wcas-qc button.wcas-qc-submit {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 54px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--qc-brand);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.wcas-qc button.wcas-qc-submit:hover:not(:disabled) {
	background: var(--hover-black, #111);
	transform: translateY(-1px);
	box-shadow: 0 14px 26px -16px rgba(10, 61, 90, 0.7);
}

.wcas-qc button.wcas-qc-submit:disabled {
	cursor: progress;
	opacity: 0.85;
}

.wcas-qc-submit__spin {
	display: none;
	width: 18px;
	height: 18px;
	margin-left: 10px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: wcas-qc-spin 0.7s linear infinite;
}

.wcas-qc-submit.is-loading .wcas-qc-submit__spin {
	display: inline-block;
}

@keyframes wcas-qc-spin {
	to { transform: rotate(360deg); }
}

.wcas-qc-fine {
	margin: -6px 0 0;
	text-align: center;
	font-size: 12.5px;
	color: var(--qc-muted);
}

/* ---------- Right: items ---------- */

.wcas-qc-aside {
	position: sticky;
	top: 100px;
	min-width: 0;
}

.wcas-qc-aside__inner {
	padding: clamp(18px, 2.4vw, 26px);
	border: 1px solid var(--qc-line);
	border-radius: 20px;
	background: var(--qc-soft);
}

.wcas-qc-aside__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.wcas-qc-aside__head .wcas-qc-h {
	margin: 0;
}

.wcas-qc-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--qc-brand);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.wcas-qc button.wcas-qc-edit {
	padding: 0;
	border: 0;
	background: none;
	color: var(--qc-brand);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.wcas-qc-items {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: 460px;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
	overscroll-behavior: contain;
}

.wcas-qc-item {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 10px 0;
	border-bottom: 1px solid var(--qc-line);
	animation: wcas-qc-fade 0.35s ease both;
}

.wcas-qc-item:last-child {
	border-bottom: 0;
}

.wcas-qc-item__thumb {
	position: relative;
	display: block;
	width: 64px;
	height: 64px;
	flex: 0 0 64px;
	border-radius: 14px;
	background: linear-gradient(90deg, #e8eef3 25%, #f5f7fa 50%, #e8eef3 75%);
	background-size: 200% 100%;
	animation: wcas-qc-skeleton 1.2s ease-in-out infinite;
	overflow: hidden;
}

.wcas-qc-item__thumb::before {
	content: "";
	position: absolute;
	inset: 10px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.78);
	box-shadow: inset 0 0 0 1px rgba(15, 42, 58, 0.06);
}

.wcas-qc-item__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 14px;
	object-fit: cover;
	position: relative;
	z-index: 1;
}

@keyframes wcas-qc-skeleton {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.wcas-qc-item__qty {
	display: none;
}

.wcas-qc-item__info {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.wcas-qc-item__info strong {
	font-size: 14px;
	line-height: 1.3;
	color: var(--qc-ink);
}

.wcas-qc-item__info small {
	font-size: 12.5px;
	color: var(--qc-muted);
}

.wcas-qc-item__x {
	flex: 0 0 auto;
	padding: 5px 11px;
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	font-weight: 700;
	color: var(--qc-ink);
}

.wcas-qc-note {
	margin: 14px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--qc-muted);
}

.wcas-qc-empty {
	padding: 10px 0;
	text-align: center;
}

.wcas-qc-empty p {
	margin: 0 0 14px;
	color: var(--qc-muted);
}

/* ---------- Thank you ---------- */

.wcas-qc-done {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 560px;
	margin: clamp(10px, 4vw, 50px) auto 0;
	padding: clamp(28px, 5vw, 52px) clamp(20px, 4vw, 44px);
	border: 1px solid var(--qc-line);
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 30px 60px -40px rgba(10, 61, 90, 0.45);
	text-align: center;
	outline: none;
	animation: wcas-qc-pop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes wcas-qc-pop {
	from { opacity: 0; transform: translateY(14px) scale(0.97); }
	to { opacity: 1; transform: none; }
}

.wcas-qc-done__tick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	margin-bottom: 20px;
	border-radius: 50%;
	background: #e6f6ec;
	color: #16803c;
}

.wcas-qc-done__tick svg {
	width: 34px;
	height: 34px;
}

.wcas-qc-done__title {
	margin: 0 0 10px;
	font-size: clamp(22px, 3vw, 28px);
	line-height: 1.2;
	color: var(--qc-ink);
}

.wcas-qc-done__text {
	margin: 0 0 6px;
	font-size: 16px;
	line-height: 1.55;
	color: var(--qc-muted);
}

.wcas-qc-done__ref {
	margin: 6px 0 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--qc-ink);
}

.wcas-qc a.wcas-qc-done__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-top: 24px;
	padding: 0 28px;
	border-radius: 999px;
	background: var(--qc-brand);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.wcas-qc a.wcas-qc-done__btn:hover {
	background: var(--hover-black, #111);
	color: #fff;
	transform: translateY(-1px);
}

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

@media (max-width: 900px) {
	.wcas-qc-grid {
		grid-template-columns: 1fr;
	}

	/* Items first on small screens, so the shopper sees what they are requesting */
	.wcas-qc-aside {
		position: static;
		order: -1;
	}

	.wcas-qc-items {
		max-height: 280px;
	}
}

@media (max-width: 760px) {
	.wcas-qc {
		min-width: 0;
	}
}

@media (max-width: 560px) {
	.wcas-qc-row,
	.wcas-qc-row--3,
	.wcas-qc-choices {
		grid-template-columns: 1fr;
	}

	.wcas-qc-row .wcas-qc-field {
		margin-bottom: 0;
	}

	.wcas-qc-row {
		gap: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wcas-qc-panel,
	.wcas-qc-item,
	.wcas-qc-done {
		animation: none;
	}
}

/* ---------- Pickup locations and delivery extras ---------- */

.wcas-qc-sub {
	margin: 0 0 12px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--qc-ink);
}

.wcas-qc-sub--gap {
	margin-top: 18px;
}

.wcas-qc .wcas-qc-req {
	font-weight: 600;
}

.wcas-qc-locs {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.wcas-qc-loc {
	position: relative;
	display: block;
	cursor: pointer;
}

.wcas-qc-loc > input {
	position: absolute;
	opacity: 0;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

.wcas-qc-loc__box {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 5px;
	height: 100%;
	padding: 16px 16px 16px 48px;
	border: 1.5px solid var(--qc-line);
	border-radius: 16px;
	background: #fff;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.wcas-qc-loc__box::before {
	content: "";
	position: absolute;
	left: 16px;
	top: 18px;
	width: 18px;
	height: 18px;
	border: 2px solid #b8c7d3;
	border-radius: 50%;
	background: #fff;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.wcas-qc-loc__box strong {
	font-size: 16px;
	color: var(--qc-ink);
}

/* Links sit above the invisible radio so they stay clickable */
.wcas-qc .wcas-qc-loc__line {
	position: relative;
	z-index: 2;
	align-self: flex-start;
	font-size: 13.5px;
	line-height: 1.4;
	color: var(--qc-muted);
	text-decoration: none;
	word-break: break-word;
}

.wcas-qc a.wcas-qc-loc__line:hover {
	color: var(--qc-brand);
	text-decoration: underline;
}

.wcas-qc-loc:hover .wcas-qc-loc__box {
	border-color: #b8c7d3;
}

.wcas-qc-loc input:checked + .wcas-qc-loc__box {
	border-color: var(--qc-brand);
	background: var(--qc-soft);
	box-shadow: 0 0 0 3px rgba(10, 61, 90, 0.1);
}

.wcas-qc-loc input:checked + .wcas-qc-loc__box::before {
	border-color: var(--qc-brand);
	background: radial-gradient(circle, var(--qc-brand) 0 4px, #fff 5px);
}

.wcas-qc-loc input:focus-visible + .wcas-qc-loc__box {
	outline: 2px solid var(--qc-brand);
	outline-offset: 2px;
}

.wcas-qc-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.wcas-qc-pill {
	position: relative;
	cursor: pointer;
}

.wcas-qc-pill input {
	position: absolute;
	opacity: 0;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

.wcas-qc-pill span {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 20px;
	border: 1.5px solid var(--qc-line);
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	color: var(--qc-ink);
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.wcas-qc-pill input:checked + span {
	border-color: var(--qc-brand);
	background: var(--qc-brand);
	color: #fff;
}

.wcas-qc-pill input:focus-visible + span {
	outline: 2px solid var(--qc-brand);
	outline-offset: 2px;
}

.wcas-qc-field--gap {
	margin-top: 18px;
}

.wcas-qc-panel .wcas-qc-hint {
	margin-top: 14px;
}

@media (max-width: 760px) {
	.wcas-qc-locs {
		grid-template-columns: 1fr;
	}
}


/* ---------- Selected options (swatch + name) in "Your items" ---------- */

.wcas-qc-item__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 4px 0 0;
}

.wcas-qc-item__chips .wcas-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding: 3px 10px 3px 4px;
	border: 1px solid var(--qc-line, rgba(15, 42, 58, 0.12));
	border-radius: 999px;
	background: #fff;
	font-size: 12.5px;
	line-height: 1.3;
	color: var(--qc-ink, #0f2a3a);
}

.wcas-qc-item__chips .wcas-chip:not(.has-swatch) {
	padding-left: 10px;
}

.wcas-qc-item__chips .wcas-chip__swatch {
	display: block;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--wcas-chip-color, #e2e8f0);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}

.wcas-qc-item__chips .wcas-chip__swatch img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wcas-qc-item__chips .wcas-chip__label {
	font-weight: 600;
	color: var(--qc-muted, #64748b);
}

.wcas-qc-item__chips .wcas-chip__text {
	min-width: 0;
	font-weight: 500;
}

/* Returning customers: a short follow-up block. */
.wcas-qc-returning {
	margin-top: 16px;
	padding: 16px 18px;
	border-radius: 12px;
	background: var(--qc-soft);
	border: 1px solid #d5e3ee;
}

.wcas-qc-returning__lead {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	color: var(--qc-brand);
}

/* Logo: dropzone, file card, errors. */
.wcas-qc .wcas-qc-logo {
	margin-top: 4px;
}

.wcas-qc .wcas-qc-logo__drop {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 26px 20px;
	border: 2px dashed #b8c7d3;
	border-radius: 12px;
	background: #fbfdff;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.wcas-qc .wcas-qc-logo__drop:hover,
.wcas-qc .wcas-qc-logo__drop.is-dragover {
	border-color: var(--qc-brand);
	background: var(--qc-soft);
}

.wcas-qc .wcas-qc-logo__drop:focus-within {
	outline: 2px solid var(--qc-brand);
	outline-offset: 2px;
}

/* The real input stays in the tab order and screen readers, but is visually hidden. */
.wcas-qc .wcas-qc-logo__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
	opacity: 0;
}

.wcas-qc .wcas-qc-logo__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fff;
	color: var(--qc-brand);
	box-shadow: 0 1px 3px rgba(10, 61, 90, 0.12);
}

.wcas-qc .wcas-qc-logo__title {
	font-size: 16px;
	font-weight: 600;
	color: #1f2d3a;
}

.wcas-qc .wcas-qc-logo__or {
	font-size: 13px;
	color: #6b7a86;
}

.wcas-qc .wcas-qc-logo__browse {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: 8px;
	background: var(--qc-brand);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
}

.wcas-qc .wcas-qc-logo__help {
	font-size: 12.5px;
	color: #6b7a86;
}

.wcas-qc .wcas-qc-logo__file {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border: 1px solid #d5e3ee;
	border-radius: 12px;
	background: #fff;
}

.wcas-qc .wcas-qc-logo__thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	display: grid;
	place-items: center;
	border-radius: 8px;
	background:
		repeating-conic-gradient(#eef2f5 0 25%, #fff 0 50%) 0 0 / 12px 12px;
	overflow: hidden;
}

.wcas-qc .wcas-qc-logo__thumb img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.wcas-qc .wcas-qc-logo__ext {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--qc-brand);
}

.wcas-qc .wcas-qc-logo__meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
}

.wcas-qc .wcas-qc-logo__name {
	font-size: 14px;
	color: #1f2d3a;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wcas-qc .wcas-qc-logo__size {
	font-size: 12.5px;
	color: #6b7a86;
}

.wcas-qc .wcas-qc-logo__remove {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 10px;
	border: 1px solid #d5e3ee;
	border-radius: 8px;
	background: #fff;
	color: #9b2c2c;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.wcas-qc .wcas-qc-logo__remove:hover {
	background: #fdf2f2;
	border-color: #e7b9b9;
}

.wcas-qc .wcas-qc-logo__error {
	margin: 8px 0 0;
	font-size: 13.5px;
	color: #9b2c2c;
}

.wcas-qc .wcas-qc-logo.has-error .wcas-qc-logo__drop {
	border-color: #c53030;
}

/* Customer type: a segmented switch that reads like account buttons (New / Existing). */
.wcas-qc .wcas-qc-switch {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	padding: 6px;
	border-radius: 14px;
	background: #eef3f7;
}

.wcas-qc .wcas-qc-switch__btn {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 12px 14px;
	border-radius: 10px;
	cursor: pointer;
	color: #3d4f5c;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.wcas-qc .wcas-qc-switch__btn:hover {
	background: rgba(255, 255, 255, 0.7);
}

.wcas-qc .wcas-qc-switch__btn input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.wcas-qc .wcas-qc-switch__btn:focus-within {
	outline: 2px solid var(--qc-brand);
	outline-offset: 2px;
}

.wcas-qc .wcas-qc-switch__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff;
	color: var(--qc-brand);
	box-shadow: 0 1px 2px rgba(10, 61, 90, 0.1);
}

.wcas-qc .wcas-qc-switch__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.wcas-qc .wcas-qc-switch__text strong {
	font-size: 15px;
	font-weight: 600;
}

.wcas-qc .wcas-qc-switch__text small {
	font-size: 12.5px;
	opacity: 0.8;
}

.wcas-qc .wcas-qc-switch__btn.is-on,
.wcas-qc .wcas-qc-switch__btn:has(input:checked) {
	background: var(--qc-brand);
	color: #fff;
	box-shadow: 0 2px 10px rgba(10, 61, 90, 0.28);
}

.wcas-qc .wcas-qc-switch__btn.is-on .wcas-qc-switch__icon,
.wcas-qc .wcas-qc-switch__btn:has(input:checked) .wcas-qc-switch__icon {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	box-shadow: none;
}

@media (max-width: 520px) {
	.wcas-qc .wcas-qc-switch {
		grid-template-columns: 1fr;
	}
}

/* Signed-in customer and login prompt. */
.wcas-qc .wcas-qc-account {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	padding: 10px 14px;
	border-radius: 10px;
	background: #f1f8f3;
	border: 1px solid #cfe7d6;
	font-size: 14px;
	color: #1f2d3a;
}

.wcas-qc .wcas-qc-account__out {
	color: var(--qc-brand);
	font-weight: 600;
	white-space: nowrap;
}

.wcas-qc .wcas-qc-login {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.wcas-qc .wcas-qc-login p {
	margin: 0;
	font-size: 14px;
	color: #3d4f5c;
}

.wcas-qc .wcas-qc-login__btn {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	border-radius: 8px;
	background: var(--qc-brand);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.wcas-qc .wcas-qc-login__btn:hover {
	filter: brightness(1.1);
}

/* Signed-in history on the checkout. */
.wcas-qc .wcas-qc-history {
	margin-top: 12px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #f7f9fb;
	border: 1px solid #e1e8ef;
	font-size: 14px;
	color: #1f2d3a;
}

.wcas-qc .wcas-qc-history__title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
	color: var(--qc-brand);
}

.wcas-qc .wcas-qc-history__group {
	margin: 12px 0 4px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #6b7a86;
}

.wcas-qc .wcas-qc-history__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wcas-qc .wcas-qc-history__list li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 12px;
	padding: 8px 0;
	border-top: 1px solid #e6ecf1;
}

.wcas-qc .wcas-qc-history__list li:first-child {
	border-top: 0;
}

.wcas-qc .wcas-qc-history__main small {
	color: #6b7a86;
}

.wcas-qc .wcas-qc-history__meta {
	color: #3d4f5c;
}

.wcas-qc .wcas-qc-history__empty {
	margin: 0;
	color: #3d4f5c;
}

.wcas-qc .wcas-qc-history__links {
	margin: 12px 0 0;
	font-size: 13.5px;
}

.wcas-qc .wcas-qc-history__links a {
	color: var(--qc-brand);
	font-weight: 600;
}

/* Recent history tables and the full-list popups. */
.wcas-qc-table-wrap {
	overflow-x: auto;
	margin: 6px 0 4px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #e1e8ef;
}

.wcas-qc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}

.wcas-qc-table th,
.wcas-qc-table td {
	padding: 9px 12px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid #eef2f6;
}

.wcas-qc-table th {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #6b7a86;
	background: #f7f9fb;
	white-space: nowrap;
}

.wcas-qc-table tr:last-child td {
	border-bottom: 0;
}

.wcas-qc-history__more {
	padding: 0;
	border: 0;
	background: none;
	color: var(--qc-brand);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.wcas-qc-history__more:focus-visible {
	outline: 2px solid var(--qc-brand);
	outline-offset: 2px;
}

.wcas-qc-modal {
	--qc-brand: var(--brand-blue, #0A3D5A);
	--qc-soft: #f4f8fb;
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.wcas-qc-modal[hidden] {
	display: none;
}

.wcas-qc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 32, 0.55);
}

.wcas-qc-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 760px;
	max-height: 82vh;
	display: flex;
	flex-direction: column;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
	color: #1f2d3a;
	font-family: inherit;
}

.wcas-qc-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid #e6ecf1;
}

.wcas-qc-modal__head h3 {
	margin: 0;
	font-size: 17px;
	color: var(--qc-brand);
}

.wcas-qc-modal__close {
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 8px;
	background: #f1f5f8;
	color: #1f2d3a;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.wcas-qc-modal__close:focus-visible {
	outline: 2px solid var(--qc-brand);
	outline-offset: 2px;
}

.wcas-qc-modal__body {
	padding: 6px 20px 20px;
	overflow: auto;
}

.wcas-qc-modal__body .wcas-qc-table-wrap {
	border: 0;
	margin: 8px 0 0;
}

html.wcas-qc-lock {
	overflow: hidden;
}

/* Quote request status badges (customer side). */
.wcas-qc-status {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	background: #eef2f6;
	color: #3d4f5c;
}

.wcas-qc-status--new { background: #e6f0fb; color: #1d4f91; }
.wcas-qc-status--quoted { background: #f0ebfb; color: #5b3aa3; }
.wcas-qc-status--processing { background: #fff4e0; color: #8a5a00; }
.wcas-qc-status--completed { background: #e7f6ec; color: #1f7a3a; }
.wcas-qc-status--pending_client { background: #fff1e6; color: #9a4a10; }
.wcas-qc-status--client_rejected { background: #fdeaea; color: #9b2c2c; }
.wcas-qc-status--manual_follow_up { background: #fff4e0; color: #8a5a00; }
.wcas-qc-status--cancelled { background: #eceff2; color: #56636e; }

/* Branding placement picker (stacked): preview card centred on top, fields full width below. */
.wcas-qc .wcas-qc-placement {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 16px;
	border: 1px solid #dfe8ef;
	border-radius: 14px;
	background: linear-gradient(135deg, #f8fbfd, #fff);
	box-sizing: border-box;
	min-width: 0;
}

.wcas-qc .wcas-qc-panel[data-wcas-show-when="decoration=yes"]:not([hidden]) {
	animation: wcas-qc-decoration-open 360ms cubic-bezier(.22, .75, .25, 1) both;
	transform-origin: top center;
}

@keyframes wcas-qc-decoration-open {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.wcas-qc .wcas-qc-placement [hidden] {
	display: none !important;
}

.wcas-qc .wcas-qc-placement__preview {
	position: relative;
	width: 100%;
	max-width: 380px;
	margin: 0 auto;
	padding: 14px 16px 16px;
	border: 1px solid #d8e2e8;
	border-radius: 12px;
	background: #edf3f6;
	color: #66808d;
	text-align: center;
	box-sizing: border-box;
	min-width: 0;
}

.wcas-qc .wcas-qc-placement__product {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #244255;
}

.wcas-qc .wcas-qc-placement__stage {
	position: relative;
	/* The stage is the size container: the logo text scales (cqw) with the drawing, not the card. */
	container-type: inline-size;
	width: 100%;
	max-width: 300px;
	margin: 12px auto 0;
	aspect-ratio: 200 / 220;
}

.wcas-qc .wcas-qc-placement__shape {
	position: absolute;
	inset: 0;
}

.wcas-qc .wcas-qc-placement__svg {
	display: block;
	width: 100%;
	height: 100%;
}

.wcas-qc .wcas-qc-placement__nopreview {
	margin: 14px auto 0;
	max-width: 300px;
	padding: 46px 18px;
	border: 2px dashed #b8c9d4;
	border-radius: 10px;
	background: rgba(255, 255, 255, .6);
	font-size: 14px;
	line-height: 1.5;
	color: #4f6b7a;
}

.wcas-qc .wcas-qc-placement__hint {
	display: block;
	margin-top: 10px;
	font-size: 12px;
}

.wcas-qc .wcas-qc-placement__controls {
	display: grid;
	gap: 12px;
	width: 100%;
	min-width: 0;
}

.wcas-qc .wcas-qc-placement__options {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 8px;
}

.wcas-qc .wcas-qc-placement__option {
	padding: 8px 11px;
	border: 1px solid #cbd9e3;
	border-radius: 999px;
	background: #fff;
	color: #244255;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
}

.wcas-qc .wcas-qc-placement__option.is-selected,
.wcas-qc .wcas-qc-placement__option:hover {
	border-color: var(--qc-brand);
	background: #eaf3f8;
	color: var(--qc-brand);
}

.wcas-qc .wcas-qc-placement__numbers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.wcas-qc .wcas-qc-placement__numbers .wcas-qc-field {
	min-width: 0;
}

.wcas-qc-brandings {
	display: grid;
	gap: 10px;
	margin: 16px 0 0;
}

.wcas-qc-branding {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	width: 100%;
	overflow: hidden;
	border: 1px solid #cbd9e3;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 7px rgba(10, 61, 90, .04);
	transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.wcas-qc-branding__header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 2px 10px;
	align-items: center;
	min-height: 0;
	padding: 12px 14px;
	color: var(--qc-ink);
	text-align: left;
	cursor: pointer;
	font: inherit;
	line-height: 1.3;
}

.wcas-qc-branding__header:focus-visible {
	outline: 2px solid var(--qc-brand);
	outline-offset: -3px;
}

.wcas-qc-branding.is-active {
	border-color: var(--qc-brand);
	box-shadow: 0 0 0 2px rgba(10, 61, 90, .08);
}

.wcas-qc-branding.is-open .wcas-qc-branding__header {
	background: #f1f7fa;
}

.wcas-qc-branding__header strong,
.wcas-qc-branding__header span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wcas-qc-branding__header strong,
.wcas-qc-branding__header span {
	grid-column: 1;
	padding-left: 0;
}

.wcas-qc-branding__header strong {
	grid-row: 1;
}

.wcas-qc-branding__header span {
	grid-row: 2;
}

.wcas-qc-branding__body {
	grid-column: 1;
	max-height: 0;
	padding: 0 14px;
	overflow: hidden;
	border-top: 1px solid #dfe8ed;
	background: #fff;
	opacity: 0;
	transition: max-height .35s ease, padding .35s ease, opacity .25s ease;
}

.wcas-qc-branding.is-open .wcas-qc-branding__body {
	padding: 0 14px 14px;
	opacity: 1;
}

.wcas-qc-branding__body .wcas-qc-sub {
	margin: 14px 0 8px;
}

.wcas-qc-branding__body .wcas-qc-logo {
	margin-top: 0;
}

.wcas-qc-item-picker {
	display: grid;
	gap: 8px;
	margin-top: 8px;
}

.wcas-qc-item-picker__option {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #dfe8ed;
	border-radius: 12px;
	background: #fff;
	color: var(--qc-ink);
	text-align: left;
	cursor: pointer;
}

.wcas-qc-item-picker__option:hover,
.wcas-qc-item-picker__option.is-selected {
	border-color: var(--qc-brand);
	background: #f1f7fa;
}

.wcas-qc-item-picker__option img {
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	border: 1px solid #e1ebf0;
	border-radius: 6px;
	background: #fff;
	object-fit: contain;
}

.wcas-qc-item-picker__details {
	display: grid;
	min-width: 0;
	gap: 4px;
}

.wcas-qc-item-picker__details strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
}

.wcas-qc-item-picker__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.wcas-qc-item-picker__chips .wcas-chip {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 1px 5px;
	border: 1px solid #dfe8ed;
	border-radius: 999px;
	background: #f8fafb;
	font-size: 10px;
	line-height: 15px;
}

.wcas-qc-item-picker__chips .wcas-chip__swatch {
	width: 13px;
	height: 13px;
	flex: 0 0 13px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--wcas-chip-color, #e2e8f0);
}

.wcas-qc-item-picker__chips .wcas-chip__swatch img {
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	object-fit: cover;
}

.wcas-qc-field select[data-wcas-placement-item] {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.wcas-qc-branding__header span {
	grid-column: 1;
	font-size: 12px;
	color: var(--qc-muted);
}

.wcas-qc-branding i {
	grid-column: 2;
	grid-row: 1 / span 2;
	width: 28px;
	height: 28px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	font-size: 18px;
	font-style: normal;
	color: var(--qc-muted);
	transition: background-color .2s ease, color .2s ease;
}

.wcas-qc-branding i:hover {
	background: #fcebea;
	color: #b42318;
}

.wcas-qc .wcas-qc-add-branding {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	min-height: 42px !important;
	margin-top: 12px;
	padding: 9px 14px;
	border: 1px dashed var(--qc-brand);
	border-radius: 12px;
	background: #fff;
	color: var(--qc-brand);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.3;
	transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.wcas-qc .wcas-qc-add-branding::before {
	content: "+";
	display: inline-grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
}

.wcas-qc .wcas-qc-add-branding:hover {
	background: #f1f7fa;
	border-color: var(--qc-brand);
	transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
	.wcas-qc .wcas-qc-panel[data-wcas-show-when="decoration=yes"]:not([hidden]) {
		animation: none;
	}

	.wcas-qc .wcas-qc-add-branding {
		transition: none;
	}
}

.wcas-qc .wcas-qc-placement__numbers input {
	box-sizing: border-box;
	min-width: 0;
	width: 100%;
	padding-right: 8px;
	padding-left: 8px;
}

/* The logo: a block that scales with the stage. Its font scales with it through cqw. */
.wcas-qc .wcas-qc-placement__art {
	position: absolute;
	z-index: 2;
	display: block;
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	color: #174b68;
	font-size: var(--wcas-logo-font, 6cqw);
	font-weight: 800;
	letter-spacing: .04em;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
}

.wcas-qc .wcas-qc-placement__art.is-placeholder {
	display: grid;
	place-items: center;
	border: 2px dashed rgba(23, 75, 104, .55);
	border-radius: 8px;
	background: rgba(255, 255, 255, .45);
}

@media (max-width: 900px) {
	.wcas-qc .wcas-qc-placement__preview {
		max-width: 300px;
	}

	.wcas-qc .wcas-qc-placement__stage {
		max-width: 220px;
	}

	.wcas-qc .wcas-qc-placement__option {
		min-height: 40px;
	}
}

@media (max-width: 560px) {
	.wcas-qc .wcas-qc-placement__preview {
		max-width: none;
		padding: 10px 12px 12px;
	}

	.wcas-qc .wcas-qc-placement__stage {
		max-width: 210px;
		margin-top: 8px;
	}

	/* Suggestions become one swipeable row, so the fields stay short under the fixed preview. */
	.wcas-qc .wcas-qc-placement__options {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin: 6px -2px 0;
		padding: 4px 2px;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.wcas-qc .wcas-qc-placement__options::-webkit-scrollbar {
		display: none;
	}

	.wcas-qc .wcas-qc-placement__option {
		flex: 0 0 auto;
		scroll-snap-align: center;
		white-space: nowrap;
	}
}

@media (max-width: 420px) {
	.wcas-qc .wcas-qc-placement {
		padding: 12px;
	}

	.wcas-qc .wcas-qc-placement__numbers {
		grid-template-columns: 1fr;
		gap: 8px;
	}
}

/* "View all quote requests": a plain text link. Overrides the theme's button styles. */
.wcas-qc .wcas-qc-history__links button.wcas-qc-history__more {
	-webkit-appearance: none;
	appearance: none;
	display: inline;
	width: auto;
	min-height: 0;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: var(--qc-brand) !important;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.wcas-qc .wcas-qc-history__links button.wcas-qc-history__more:hover {
	color: #072a40 !important;
	background: none !important;
}

.wcas-qc .wcas-qc-history__links button.wcas-qc-history__more:focus-visible {
	outline: 2px solid var(--qc-brand);
	outline-offset: 3px;
	border-radius: 4px;
}
