.mdo-configurator { margin: 1.2em 0; max-width: 560px; }
.mdo-configurator .mdo-section { margin-bottom: 1.1em; }
.mdo-configurator .mdo-label { font-weight: 600; font-size: .95em; margin-bottom: .5em; }
.mdo-configurator .mdo-mini-label { font-size: .78em; opacity: .7; margin-bottom: .25em; }

/* Swatches */
.mdo-swatches { display: flex; flex-wrap: wrap; gap: 7px; }
.mdo-swatch {
	width: 30px; height: 30px; border-radius: 50%; padding: 0; cursor: pointer;
	border: 2px solid rgba(0,0,0,.18); background-size: cover; background-position: center;
	position: relative; background-color: #ccc; transition: transform .08s ease;
}
.mdo-swatch:hover { transform: scale(1.08); }
.mdo-swatch.is-selected { border-color: #111; box-shadow: 0 0 0 2px #fff inset; }
.mdo-swatch-check { display: none; }

/* Sizes */
.mdo-size-buttons { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: .55em; }
.mdo-size-btn {
	min-width: 48px; padding: 8px 12px; cursor: pointer; font-size: .95em;
	border: 1px solid rgba(0,0,0,.25); background: #fff; border-radius: 6px; line-height: 1;
}
.mdo-size-btn:hover { border-color: #111; }
.mdo-size-btn.is-selected { background: #111; color: #fff; border-color: #111; }
.mdo-size-btn.is-out { opacity: .55; }
.mdo-stockline { font-size: .9em; min-height: 1.2em; }
.mdo-stockline.mdo-instock { color: #1a7f37; font-weight: 600; }
.mdo-stockline.mdo-onreq { color: #9a6700; }

/* Qty + unit price */
.mdo-qtyrow { display: flex; gap: 18px; align-items: flex-end; }
.mdo-qty { width: 100px; text-align: center; padding: 8px; }
.mdo-unit-price { font-size: 1.15em; font-weight: 600; }

/* Add printing */
.mdo-add-print {
	display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
	border: 1px solid rgba(0,0,0,.3); background: #fff; border-radius: 6px;
	padding: 9px 14px; font-size: .95em;
}
.mdo-add-print:hover:not(:disabled) { border-color: #111; }
.mdo-add-print:disabled { opacity: .5; cursor: not-allowed; }
.mdo-add-print-ico { font-size: .8em; }
.mdo-print-summary {
	margin-top: 10px; border: 1px solid rgba(0,0,0,.12); border-radius: 6px;
	padding: 10px 12px; background: rgba(0,0,0,.02);
}
.mdo-ps-head { display: flex; justify-content: space-between; font-weight: 600; font-size: .95em; }
.mdo-ps-line { font-size: .85em; opacity: .75; margin-top: 4px; }

/* Totals */
.mdo-totals { border-top: 1px solid rgba(0,0,0,.1); padding-top: .8em; }
.mdo-total-row { display: flex; justify-content: space-between; font-size: .95em; padding: 3px 0; }
.mdo-total-row.mdo-grand { font-size: 1.15em; font-weight: 700; border-top: 1px solid rgba(0,0,0,.1); margin-top: .4em; padding-top: .5em; }
.mdo-total-row.mdo-perpiece { opacity: .7; font-size: .85em; }

/* Actions */
.mdo-actions { margin-top: 1em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mdo-add-to-cart { cursor: pointer; }
.mdo-add-to-cart:disabled { opacity: .5; cursor: not-allowed; }
.mdo-msg { font-size: .9em; }
.mdo-msg.mdo-err { color: #c0392b; }
.mdo-msg.mdo-ok { color: #1a7f37; }

/* Modal */
body.mdo-modal-open { overflow: hidden; }
.mdo-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.mdo-modal[hidden] { display: none; }
.mdo-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.mdo-modal-card {
	position: relative; background: #fff; border-radius: 10px; width: 100%; max-width: 560px;
	max-height: 90vh; overflow: auto; box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.mdo-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgba(0,0,0,.1); }
.mdo-modal-title { font-size: 1.1em; font-weight: 600; }
.mdo-modal-close { border: 0; background: none; font-size: 1.6em; line-height: 1; cursor: pointer; padding: 0 4px; }
.mdo-modal-body { padding: 14px 18px; }
.mdo-modal-hint { font-size: .85em; opacity: .7; margin-bottom: 12px; }
.mdo-modal-positions { display: flex; flex-direction: column; gap: 12px; }
.mdo-mpos { border: 1px solid rgba(0,0,0,.12); border-radius: 8px; padding: 10px 12px; }
.mdo-mpos-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mdo-mpos-head label { font-weight: 600; cursor: pointer; }
.mdo-mpos-ctrls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mdo-mpos-ctrls select { max-width: 220px; padding: 6px; }
.mdo-modal-manip-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.mdo-modal-manip-label { font-size: .9em; opacity: .8; min-width: 90px; }
.mdo-modal-manip { flex: 1; max-width: 280px; padding: 6px; }
.mdo-modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid rgba(0,0,0,.1); background: rgba(0,0,0,.02); }
.mdo-modal-total { font-size: 1.25em; font-weight: 700; }
.mdo-modal-foot-actions { display: flex; gap: 8px; }
.mdo-modal-clear { border: 1px solid rgba(0,0,0,.3); background: #fff; border-radius: 6px; padding: 9px 14px; cursor: pointer; }
.mdo-modal-apply { cursor: pointer; }

/* Defensive: hide any native variations form / quote button that the theme
   renders alongside the configurator on midocean product pages. */
.mdo-single-configurator form.cart.variations_form,
.mdo-single-configurator .single_variation_wrap,
.mdo-single-configurator .woocommerce-variation-add-to-cart {
	display: none !important;
}

/* Printing add-on (native form + printing button) */
.mdo-print-addon { margin: 12px 0; }
.mdo-print-addon .mdo-print-summary { max-width: 360px; }
