.dqs-calculator {
	max-width: 460px;
	margin: 0 0 24px;
	font-size: 14px;
}

.dqs-field {
	margin-bottom: 16px;
}

.dqs-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	color: #222;
}

.dqs-select,
.dqs-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
	background: #fff;
	box-sizing: border-box;
}

.dqs-field-hint {
	margin-top: 6px;
	font-size: 12px;
	color: #777;
}

.dqs-field.has-error .dqs-input {
	border-color: #c1272d;
	box-shadow: 0 0 0 2px rgba(193, 39, 45, .15);
}

/* ---- QR code section ---- */
.dqs-qr-box {
	border: 1px solid #d6ebff;
	background: #f4faff;
	border-radius: 8px;
	padding: 14px 14px 2px;
	margin-bottom: 16px;
}

.dqs-qr-box > .dqs-field:first-child label {
	color: #0c5ab5;
}

.dqs-qr-box .dqs-qr-panel.dqs-field-hint {
	margin: -6px 0 14px;
}

.dqs-generator-link {
	margin-top: 8px;
	font-size: 12px;
	line-height: 1.45;
	color: #555;
}

.dqs-generator-link a {
	color: #0c5ab5;
	font-weight: 600;
	text-decoration: underline;
}

.dqs-qr-prefill {
	margin-top: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #2a7d2a;
}

.dqs-qr-check {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.dqs-qr-check:empty { display: none; }
.dqs-qr-check.is-ok { color: #2a7d2a; }
.dqs-qr-check.is-warn { color: #8a5a00; }
.dqs-qr-check a { color: #0c5ab5; text-decoration: underline; }
.dqs-qr-check-line { margin-top: 4px; }

.dqs-quote-notice {
	background: #fff3cd;
	border: 1px solid #ffe08a;
	color: #7a5b00;
	padding: 12px 14px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 13px;
}

.dqs-price-box {
	background: #f7f7f7;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 16px;
}

.dqs-price-line {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
	font-size: 14px;
}

.dqs-price-total {
	font-weight: 700;
	font-size: 18px;
	border-top: 1px solid #ddd;
	margin-top: 6px;
	padding-top: 10px;
}

/* ---- Artwork upload (matches Letterhead calculator v1.0.1) ---- */
.dqs-upload-heading { font-weight: 600; margin-bottom: 4px; color: #222; }
.dqs-upload-note { font-size: 13px; color: #555; margin-bottom: 10px; }
.dqs-slot { border: 1px dashed #ccc; border-radius: 8px; padding: 10px 12px; background: #fafafa; box-sizing: border-box; }
.dqs-field .dqs-slot-label { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; margin-bottom: 6px; }
.dqs-file { width: 100%; padding: 8px; font-size: 13px; border: 1px solid #ccc; border-radius: 6px; background: #fff; box-sizing: border-box; }
.dqs-file-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border: 1px solid #d9e8cc; border-radius: 6px; padding: 8px 10px; }
.dqs-file-name { font-size: 13px; color: #4f8f1f; font-weight: 600; overflow-wrap: anywhere; }
.dqs-remove { flex: 0 0 auto; width: 26px; height: 26px; line-height: 24px; padding: 0 !important; border-radius: 50% !important; border: 1px solid #ccc !important; background: #fff !important; color: #c0392b !important; font-size: 18px; font-weight: 700; text-align: center; cursor: pointer; }
.dqs-remove:hover, .dqs-remove:focus { background: #c0392b !important; color: #fff !important; border-color: #c0392b !important; }
.dqs-upload-hint { margin-top: 8px; font-size: 12px; color: #777; }
.dqs-upload-status { margin-top: 6px; font-size: 13px; color: #666; }
.dqs-upload-status:empty { display: none; }
.dqs-upload-status.is-ok { color: #4f8f1f; font-weight: 600; }
.dqs-upload-status.is-error { color: #c0392b; font-weight: 600; }

.dqs-cart-msg {
	margin-top: 10px;
	font-size: 13px;
	font-weight: 600;
}

.dqs-cart-msg.dqs-cart-err { color: #c1272d; }
.dqs-cart-msg.dqs-cart-ok { color: #2a7d2a; }

.dqs-add-to-cart-btn,
.dqs-quote-btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 14px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	box-sizing: border-box;
}

.dqs-add-to-cart-btn {
	background: #222529 !important;
	color: #fff !important;
	border: none !important;
}

.dqs-add-to-cart-btn[disabled] {
	opacity: .6;
	cursor: wait;
}

.dqs-quote-btn {
	background: #c1272d;
	color: #fff !important;
	text-decoration: none;
}

/* Hide the native WooCommerce quantity box and Add to Cart button on this
   product's form — the calculator has its own. JS fallback in DQS_Core. */
form.cart:has(#dqs-calculator-root) > .quantity,
form.cart:has(#dqs-calculator-root) > .single_add_to_cart_button {
	display: none !important;
}
