.wc-atq-button-wrap,
.wc-atq-view-quote-wrap {
	display: inline-block;
}

.wc-atq-button {
	margin-top: 5px;
	margin-bottom: 5px;
	margin-left: 8px;
}

.wc-atq-view-quote {
	margin-top: 5px;
	margin-bottom: 5px;
	margin-left: 8px;
}

.wc-atq-view-quote-below {
	display: table;
	margin-top: 10px;
	margin-left: 0;
}

.wc-atq-view-quote-wrap-below {
	display: table;
	margin-left: 0;
}

.wc-atq-hidden {
	display: none !important;
}

.wc-atq-preview {
	position: relative;
	display: inline-block;
	min-width: 220px;
}

.wc-atq-preview::before {
	display: none;
}

.wc-atq-preview::after {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 49;
	height: 18px;
	content: "";
}

.wc-atq-preview-toggle {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	min-width: 180px;
	padding: 11px 14px;
	border-radius: 8px;
	background: #111827;
	color: #fff;
	font-weight: 800;
	cursor: pointer;
	list-style: none;
	border: 0;
	box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}

.wc-atq-preview-toggle::-webkit-details-marker {
	display: none;
}

.wc-atq-preview-count {
	display: inline-grid;
	place-items: center;
	min-width: 26px;
	height: 26px;
	padding: 0 8px;
	border-radius: 999px;
	background: #2563eb;
	color: #fff;
	font-size: 13px;
}

.wc-atq-preview-panel {
	position: absolute;
	right: auto;
	left: var(--wc-atq-preview-panel-offset, 0);
	z-index: 50;
	width: min(360px, calc(100vw - 32px));
	margin-top: 12px;
	padding: 14px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 20px 42px rgba(15, 23, 42, 0.18);
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
	visibility: hidden;
	transition: opacity 160ms ease 180ms, transform 160ms ease 180ms, visibility 0s linear 180ms;
}

.wc-atq-preview-open-left .wc-atq-preview-panel {
	right: auto;
	left: var(--wc-atq-preview-panel-offset, 0);
}

.wc-atq-preview-open-right .wc-atq-preview-panel {
	right: auto;
	left: var(--wc-atq-preview-panel-offset, 0);
}

.wc-atq-preview-clamped .wc-atq-preview-panel {
	right: auto;
	left: var(--wc-atq-preview-panel-offset, 0);
}

.wc-atq-preview:hover .wc-atq-preview-panel,
.wc-atq-preview:focus-within .wc-atq-preview-panel {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
	visibility: visible;
	transition-delay: 0s;
}

.wc-atq-preview-empty {
	margin: 0;
	color: #6b7280;
}

.wc-atq-preview-items {
	display: grid;
	gap: 12px;
}

.wc-atq-preview-item {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr) 28px;
	gap: 10px;
	align-items: center;
}

.wc-atq-preview-thumb {
	overflow: hidden;
	border-radius: 8px;
	background: #f8fafc;
	aspect-ratio: 1;
}

.wc-atq-preview-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wc-atq-preview-main {
	min-width: 0;
}

.wc-atq-preview-name {
	display: block;
	overflow: hidden;
	color: #111827;
	font-weight: 800;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wc-atq-preview-qty {
	display: block;
	margin-top: 3px;
	color: #6b7280;
	font-size: 13px;
	font-weight: 700;
}

.wc-atq-preview-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 6px;
}

.wc-atq-preview-meta small {
	display: inline-flex;
	gap: 3px;
	padding: 3px 6px;
	border-radius: 999px;
	background: #f3f4f6;
	color: #374151;
	font-size: 11px;
}

.wc-atq-preview-remove {
	display: inline-grid;
	flex: 0 0 28px;
	place-items: center;
	width: 28px;
	min-width: 28px;
	max-width: 28px;
	height: 28px;
	min-height: 28px;
	max-height: 28px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #fee2e2;
	color: #991b1b;
	font-size: 18px;
	font-weight: 900;
	cursor: pointer;
}

.wc-atq-preview-more {
	margin: 12px 0 0;
	color: #6b7280;
	font-size: 13px;
	font-weight: 700;
}

.wc-atq-preview-actions {
	display: flex;
	gap: 10px;
	margin-top: 14px;
}

.wc-atq-preview-action {
	display: inline-flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 12px 14px;
	border: 0;
	border-radius: 8px;
	appearance: none;
	font-weight: 850;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.wc-atq-preview-action-view {
	background: linear-gradient(135deg, #111827, #2563eb);
	color: #fff;
	box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.wc-atq-preview-action-view:hover {
	background: linear-gradient(135deg, #020617, #1d4ed8);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 16px 30px rgba(37, 99, 235, 0.3);
}

.wc-atq-preview-action-clear {
	background: #fff1f2;
	color: #be123c;
	box-shadow: inset 0 0 0 1px rgba(190, 18, 60, 0.14);
	cursor: pointer;
}

.wc-atq-preview-action-clear:hover {
	background: #ffe4e6;
	color: #9f1239;
	transform: translateY(-1px);
	box-shadow: inset 0 0 0 1px rgba(190, 18, 60, 0.24), 0 12px 22px rgba(190, 18, 60, 0.12);
}

.wc-atq-preview-action-view:focus-visible,
.wc-atq-preview-action-clear:focus-visible,
.wc-atq-preview-toggle:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.28);
	outline-offset: 3px;
}

@media (max-width: 480px) {
	.wc-atq-preview {
		display: block;
	}

	.wc-atq-preview-toggle {
		width: 100%;
	}

	.wc-atq-preview::before {
		position: fixed;
		inset: 0;
		z-index: 99998;
		display: block;
		background: rgba(15, 23, 42, 0.48);
		content: "";
		opacity: 0;
		pointer-events: none;
		transition: opacity 160ms ease 180ms, visibility 0s linear 180ms;
		visibility: hidden;
	}

	.wc-atq-preview:hover::before,
	.wc-atq-preview:focus-within::before {
		opacity: 1;
		transition-delay: 0s;
		visibility: visible;
	}

	.wc-atq-preview-panel,
	.wc-atq-preview-open-left .wc-atq-preview-panel,
	.wc-atq-preview-open-right .wc-atq-preview-panel,
	.wc-atq-preview-clamped .wc-atq-preview-panel {
		box-sizing: border-box !important;
		position: fixed !important;
		top: 50%;
		right: auto !important;
		left: 50% !important;
		z-index: 99999;
		width: calc(100vw - 32px) !important;
		min-width: 0 !important;
		max-width: 360px !important;
		max-height: calc(100dvh - 64px);
		margin-top: 0;
		overflow: auto;
		transform: translate(-50%, calc(-50% + 8px));
	}

	.wc-atq-preview:hover .wc-atq-preview-panel,
	.wc-atq-preview:focus-within .wc-atq-preview-panel {
		transform: translate(-50%, -50%);
	}

	.wc-atq-preview-item {
		grid-template-columns: 54px minmax(0, 1fr) 28px;
	}

	.wc-atq-preview-remove {
		display: inline-grid !important;
		flex: 0 0 28px !important;
		place-items: center !important;
		width: 28px !important;
		min-width: 28px !important;
		max-width: 28px !important;
		height: 28px !important;
		min-height: 28px !important;
		max-height: 28px !important;
		padding: 0 !important;
		border-radius: 999px !important;
		aspect-ratio: 1 / 1;
		line-height: 1 !important;
	}

	body.wc-atq-preview-mobile-off .wc-atq-preview-panel,
	body.wc-atq-preview-mobile-off .wc-atq-preview::before,
	body.wc-atq-preview-mobile-off .wc-atq-preview::after {
		display: none;
	}
}

body.wc-atq-replace-cart form.cart .single_add_to_cart_button:not(.wc-atq-button),
body.wc-atq-replace-cart #addon-bundle-form .single_add_to_cart_button:not(.wc-atq-button) {
	display: none !important;
}

.wc-atq-message {
	display: inline-block;
	margin-left: 10px;
	font-size: 0.95em;
}

.wc-atq-quote-page {
	--wc-atq-border: #e5e7eb;
	--wc-atq-muted: #6b7280;
	--wc-atq-surface: #ffffff;
	--wc-atq-soft: #f8fafc;
	--wc-atq-text: #111827;
	color: var(--wc-atq-text);
}

.wc-atq-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
	gap: 28px;
	align-items: start;
}

.wc-atq-items-panel,
.wc-atq-submit-panel,
.wc-atq-empty {
	border: 1px solid var(--wc-atq-border);
	border-radius: 8px;
	background: var(--wc-atq-surface);
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.wc-atq-panel-head {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	padding: 22px 24px;
	border-bottom: 1px solid var(--wc-atq-border);
}

.wc-atq-panel-head h2,
.wc-atq-submit-panel h2,
.wc-atq-empty h2 {
	margin: 0;
	font-size: clamp(22px, 3vw, 30px);
	line-height: 1.2;
}

.wc-atq-panel-head p,
.wc-atq-empty p {
	margin: 6px 0 0;
	color: var(--wc-atq-muted);
}

.wc-atq-clear {
	white-space: nowrap;
}

.wc-atq-quote-page .wc-atq-clear,
.wc-atq-quote-page .wc-atq-remove,
.wc-atq-quote-page .wc-atq-submit-button {
	border: 0;
	border-radius: 8px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0;
	transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.wc-atq-quote-page .wc-atq-clear:hover,
.wc-atq-quote-page .wc-atq-remove:hover,
.wc-atq-quote-page .wc-atq-submit-button:hover {
	transform: translateY(-1px);
}

.wc-atq-quote-page .wc-atq-clear:focus-visible,
.wc-atq-quote-page .wc-atq-remove:focus-visible,
.wc-atq-quote-page .wc-atq-submit-button:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.28);
	outline-offset: 3px;
}

.wc-atq-quote-page .wc-atq-clear {
	padding: 11px 16px;
	background: #fff1f2;
	color: #be123c;
	box-shadow: inset 0 0 0 1px rgba(190, 18, 60, 0.16);
}

.wc-atq-quote-page .wc-atq-clear:hover {
	background: #ffe4e6;
	box-shadow: inset 0 0 0 1px rgba(190, 18, 60, 0.26), 0 10px 20px rgba(190, 18, 60, 0.12);
	color: #9f1239;
}

.wc-atq-items {
	display: grid;
	gap: 0;
}

.wc-atq-item {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid var(--wc-atq-border);
}

.wc-atq-item:last-child {
	border-bottom: 0;
}

.wc-atq-thumb {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	background: var(--wc-atq-soft);
	aspect-ratio: 1;
}

.wc-atq-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wc-atq-item-main {
	min-width: 0;
}

.wc-atq-item-title {
	display: inline-block;
	font-weight: 700;
	text-decoration: none;
	color: inherit;
	line-height: 1.35;
}

.wc-atq-item-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.wc-atq-item-meta small {
	display: inline-flex;
	gap: 4px;
	padding: 5px 8px;
	border-radius: 999px;
	background: var(--wc-atq-soft);
	color: #374151;
	font-size: 12px;
	line-height: 1.2;
}

.wc-atq-item-actions {
	display: grid;
	gap: 10px;
	justify-items: end;
}

.wc-atq-qty-control {
	display: inline-grid;
	grid-template-columns: auto 34px 58px 34px;
	gap: 6px;
	align-items: center;
	padding: 5px;
	border: 1px solid var(--wc-atq-border);
	border-radius: 999px;
	background: var(--wc-atq-soft);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
	transition: opacity 160ms ease;
}

.wc-atq-qty-control.is-updating {
	opacity: 0.62;
}

.wc-atq-qty-label {
	padding: 0 4px 0 8px;
	color: var(--wc-atq-muted);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.wc-atq-qty-button {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #ffffff;
	color: #111827;
	font-size: 18px;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
	box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08);
}

.wc-atq-qty-button:hover {
	background: #e5e7eb;
}

.wc-atq-qty-input {
	width: 58px;
	height: 34px;
	min-height: 34px;
	padding: 0 6px;
	border: 0;
	border-radius: 999px;
	background: #ffffff;
	color: #111827;
	font-weight: 800;
	text-align: center;
	box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08);
}

.wc-atq-qty-input::-webkit-inner-spin-button,
.wc-atq-qty-input::-webkit-outer-spin-button {
	margin: 0;
	appearance: none;
}

.wc-atq-quote-page .wc-atq-remove {
	padding: 10px 14px;
	background: #f3f4f6;
	color: #374151;
	box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.08);
}

.wc-atq-quote-page .wc-atq-remove:hover {
	background: #e5e7eb;
	color: #111827;
	box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.12), 0 10px 20px rgba(15, 23, 42, 0.08);
}

.wc-atq-submit-panel {
	position: sticky;
	top: 24px;
	padding: 24px;
}

.wc-atq-form {
	display: grid;
	gap: 16px;
	margin-top: 18px;
}

.wc-atq-form p {
	margin: 0;
}

.wc-atq-form label {
	display: block;
	font-weight: 700;
}

.wc-atq-form input:not([type="checkbox"], [type="hidden"]),
.wc-atq-form textarea {
	display: block;
	width: 100%;
	min-height: 46px;
	margin-top: 7px;
	border: 1px solid var(--wc-atq-border);
	border-radius: 8px;
	padding: 10px 12px;
	background: #fff;
}

.wc-atq-form .wc-atq-checkbox-field label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-weight: 600;
	line-height: 1.4;
}

.wc-atq-form .wc-atq-checkbox-field input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: #2563eb;
}

.wc-atq-form textarea {
	min-height: 130px;
	resize: vertical;
}

.wc-atq-submit-button {
	width: 100%;
	min-height: 48px;
	padding: 15px 18px;
	background: linear-gradient(135deg, #111827, #2563eb);
	color: #ffffff;
	box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.wc-atq-submit-button:hover {
	background: linear-gradient(135deg, #020617, #1d4ed8);
	color: #ffffff;
	box-shadow: 0 18px 34px rgba(37, 99, 235, 0.3);
}

.wc-atq-submit-button:active,
.wc-atq-quote-page .wc-atq-clear:active,
.wc-atq-quote-page .wc-atq-remove:active {
	transform: translateY(0);
}

.wc-atq-form .required {
	color: #b32d2e;
}

.wc-atq-empty {
	padding: 42px 28px;
	text-align: center;
}

.cf-turnstile,
.g-recaptcha {
	margin: 4px 0;
}

@media (max-width: 900px) {
	.wc-atq-layout {
		grid-template-columns: 1fr;
	}

	.wc-atq-submit-panel {
		position: static;
	}
}

@media (max-width: 620px) {
	.wc-atq-panel-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.wc-atq-clear {
		width: 100%;
	}

	.wc-atq-item {
		grid-template-columns: 76px minmax(0, 1fr);
		gap: 14px;
		padding: 18px;
	}

	.wc-atq-item-actions {
		grid-column: 1 / -1;
		display: flex;
		flex-wrap: wrap;
		gap: 12px;
		align-items: center;
		justify-content: space-between;
	}

	.wc-atq-remove {
		min-width: 120px;
	}
}
