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

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

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

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

.dlh-static-value {
	background: #f7f7f7;
	color: #444;
}

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

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

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

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

/* ---- Artwork upload (matches Postcard / Flyer calculator v1.1) ---- */
.dlh-upload-heading { font-weight: 600; margin-bottom: 4px; color: #222; }
.dlh-upload-note { font-size: 13px; color: #555; margin-bottom: 10px; }
.dlh-slots { display: flex; gap: 12px; flex-wrap: wrap; }
.dlh-slot { flex: 1 1 200px; min-width: 0; border: 1px dashed #ccc; border-radius: 8px; padding: 10px 12px; background: #fafafa; box-sizing: border-box; }
.dlh-field .dlh-slot-label { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; margin-bottom: 6px; }
.dlh-file { width: 100%; padding: 8px; font-size: 13px; border: 1px solid #ccc; border-radius: 6px; background: #fff; box-sizing: border-box; }
.dlh-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; }
.dlh-file-name { font-size: 13px; color: #4f8f1f; font-weight: 600; overflow-wrap: anywhere; }
.dlh-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; }
.dlh-remove:hover, .dlh-remove:focus { background: #c0392b !important; color: #fff !important; border-color: #c0392b !important; }
.dlh-upload-hint { margin-top: 8px; font-size: 12px; color: #777; }
.dlh-upload-status { margin-top: 6px; font-size: 13px; color: #666; }
.dlh-upload-status:empty { display: none; }
.dlh-upload-status.is-ok { color: #4f8f1f; font-weight: 600; }
.dlh-upload-status.is-error { color: #c0392b; font-weight: 600; }

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

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

.dlh-add-to-cart-btn,
.dlh-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;
}

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

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

.dlh-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 DLH_Core. */
form.cart:has(#dlh-calculator-root) > .quantity,
form.cart:has(#dlh-calculator-root) > .single_add_to_cart_button {
	display: none !important;
}
