/* Products built for WP Configurator Pro carry WPBakery "Custom CSS" that hides the theme's product
   summary (title, price, add-to-cart). While the new configurator is enabled, show it again. */
body.moc-configurable div.product div.summary.entry-summary { display: block !important; }

/* Same proportions as the WP Configurator Pro page on desktop: picture area 73% (product image
   centred at 80% of it, i.e. 750px in a 938px area at 1400px), options column 27%. */
@media (min-width: 992px) {
	body.moc-configurable div.product .moc-preview-wrap { width: 73% !important; float: left; margin: 0 !important; }
	body.moc-configurable div.product .moc-preview { width: 80%; margin: 0 auto; }
	body.moc-configurable div.product div.summary.entry-summary { width: 27% !important; float: right; margin: 0 !important; padding-left: 0; }
	body.moc-configurable div.product .woocommerce-tabs,
	body.moc-configurable div.product .upsells,
	body.moc-configurable div.product .related { clear: both; }
}

.moc-preview-wrap { position: relative; }
.moc-preview { position: relative; width: 100%; background: #fff; }
.moc-preview .moc-layer { position: absolute; inset: 0; width: 100%; height: auto; display: block; }
.moc-preview .moc-layer-base { position: relative; }

/* ---------- Accordion, styled like WP Configurator Pro "accordion" ---------- */
.moc-configurator { margin: 0 0 18px; font-family: Roboto, inherit; }
.moc-configurator button { font-family: inherit; }
.moc-acc-group { background: #fff; border: 1px solid #e3e3e3; margin: 0 0 10px; }
.moc-acc-head { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 62px; padding: 10px 20px; margin: 0; border: 0; border-radius: 0; background: #eee; color: #414042; font-size: 12px; font-weight: 400; line-height: 25px; text-transform: uppercase; text-align: left; cursor: pointer; letter-spacing: normal; }
.moc-acc-head:hover { background: #e4e4e4; color: #414042; }
.moc-acc-group.is-open > .moc-acc-head { background: #d2d2d2; }
.moc-acc-arrow { flex: 0 0 auto; width: 7px; height: 7px; margin-left: 10px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.moc-acc-group.is-open > .moc-acc-head .moc-acc-arrow,
.moc-tier.is-open > .moc-tier-head .moc-acc-arrow { transform: rotate(45deg); }
.moc-acc-body { padding: 12px 12px 6px; }

/* Text rows (dimensions, side-unit sizes, left/right, extras) */
.moc-row { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 34px; padding: 5px 8px; margin: 0 0 4px; border: 2px solid transparent; border-radius: 0; background: #fff; color: #707070; font-size: 12px; font-weight: 500; line-height: 20px; text-transform: uppercase; text-align: left; cursor: pointer; }
.moc-row:hover { background: #f6f6f6; color: #333; }
.moc-row.is-active { border-color: #999; color: #222; }
.moc-row-extra { font-weight: 700; color: #28303d; white-space: nowrap; margin-left: 8px; }

/* Price tiers: BASIC ─────── ■ › */
.moc-tier { margin: 0 0 6px; }
.moc-tier-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 0; margin: 0; border: 0; background: transparent; color: #28303d; font-size: 14px; font-weight: 700; line-height: 20px; text-transform: uppercase; text-align: left; cursor: pointer; }
.moc-tier-head:hover { background: transparent; color: #000; }
.moc-tier-name { flex: 0 0 auto; }
.moc-tier-line { flex: 1 1 auto; height: 1px; background: #e3e3e3; }
.moc-tier-chosen { flex: 0 0 auto; display: inline-flex; font-size: 11px; font-weight: 400; }
.moc-tier-chosen img { width: 12px; height: 12px; object-fit: cover; display: block; outline: 1px solid #bbb; }

/* Swatches: 34px boxes with a 30px image, like the old configurator */
.moc-swatches { display: flex; flex-wrap: wrap; padding: 6px 0 2px; }
.moc-swatch { width: 34px; height: 34px; padding: 0; margin: 0 6px 10px 0; border: 2px solid transparent; border-radius: 0; background: #fff; cursor: pointer; line-height: 0; }
.moc-swatch img { width: 30px; height: 30px; object-fit: cover; display: block; outline: 1px solid #e0e0e0; outline-offset: -1px; }
.moc-swatch:hover { border-color: #ccc; }
.moc-swatch.is-active { border-color: #999; }
.moc-swatch-text { font-size: 9px; line-height: 1.1; color: #333; display: block; padding: 2px; }
.moc-acc-chosen { font-size: 12px; color: #707070; min-height: 16px; margin: 2px 0 6px; }

/* Total, like "ΤΕΛΙΚΗ ΤΙΜΗ" */
.moc-total { margin: 18px 0 8px; color: #202020; }
.moc-total-label { font-size: 12px; font-weight: 600; text-transform: uppercase; line-height: 26px; }
.moc-total-value { font-size: 54px; font-weight: 300; line-height: 1.2; font-family: Roboto, inherit; }
.moc-total-note { font-size: 11px; color: #707070; }
.moc-configurator .moc-message { display: none; background: #fff4e5; border-left: 4px solid #f0a000; padding: 10px 12px; margin: 8px 0; font-size: 13px; }
.single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }
.moc-preview.is-loading { cursor: progress; }
