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

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

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

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

.dgc-note {
	margin: 6px 0 0;
	font-size: 12px;
	color: #666;
	font-style: italic;
}

.dgc-upload-status {
	margin-top: 6px;
	font-size: 13px;
}

.dgc-upload-status.dgc-upload-ok {
	color: #2a7d2a;
}

.dgc-upload-status.dgc-upload-err {
	color: #c1272d;
}

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

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

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

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

.dgc-cart-msg {
	margin-bottom: 12px;
	font-size: 13px;
}

.dgc-cart-msg.dgc-cart-err {
	color: #c1272d;
}

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

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


/* Hide the native WooCommerce quantity input and Add to Cart button on this
   product's form.cart -- our calculator (#dgc-calculator-root) provides its own
   quantity control and its own AJAX-driven Add to Cart button. Without this,
   both the native and our controls render side by side inside the same form. */
form.cart:has(#dgc-calculator-root) > .quantity,
form.cart:has(#dgc-calculator-root) > .single_add_to_cart_button:not(.dgc-add-to-cart-btn) {
	display: none !important;
}
