/* Product facts are rendered once by WooCommerce, never through CSS content. */
.m3c-list-delivery,
.m3c-list-stock {
    display: block;
    margin: .5rem 0;
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 700;
    text-align: left;
}
.m3c-list-delivery.m3c-delivery-in-stock,
.m3c-list-stock.in-stock { color: #16853b; }
.m3c-list-delivery.m3c-delivery-out-of-stock,
.m3c-list-stock.available-on-backorder { color: #626b73; }
.m3c-list-stock.out-of-stock,
.single-product .stock.out-of-stock { color: #b42318 !important; }
:is(li.product, .wc-block-product, .wc-block-grid__product) :is(.m3c-list-delivery, .m3c-list-stock) {
    text-align: center;
}
.m3c-price-on-request { color: #626b73; font-weight: 700; }
:is(li.product, .wc-block-product, .wc-block-grid__product) :is(.price, .wp-block-woocommerce-product-price) {
    display: block;
    margin: .65rem 0;
    text-align: center;
}
.m3c-list-stock.available-on-backorder, .m3c-price-on-request { color: #626b73 !important; }

.m3c-quote-button { display: inline-block !important; margin: .75rem 0 0; white-space: normal; }
.m3c-quote-form-wrap { max-width: 900px; margin: 2rem auto; }
.m3c-quote-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.m3c-quote-form label { display: grid; gap: .4rem; font-weight: 600; }
.m3c-quote-form :is(input, select, textarea) { width: 100%; box-sizing: border-box; font: inherit; padding: .8rem; border: 1px solid #8d9eae; border-radius: 6px; background: white; color: #172b3d; }
.m3c-quote-form :is(input, select, textarea):focus-visible { outline: 3px solid #1261a6; outline-offset: 2px; }
.m3c-quote-wide { grid-column: 1 / -1; }
.m3c-quote-errors { padding: 1rem; border-left: 4px solid #b42318; background: #fff1ef; margin-bottom: 1rem; }
.m3c-quote-success { padding: 1.5rem; border-left: 4px solid #16853b; background: #f0faf3; }
.m3c-quote-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .m3c-quote-form { grid-template-columns: 1fr; } }

/* Explicit colours avoid inherited theme variables making the submit button invisible. */
.m3c-quote-form .m3c-quote-actions { display: block; margin-top: .5rem; }
.m3c-quote-form button.m3c-quote-submit { display: inline-flex !important; align-items: center; justify-content: center; visibility: visible !important; opacity: 1 !important; min-width: 200px; min-height: 52px; padding: 14px 28px !important; background: #1261a6 !important; color: #fff !important; border: 2px solid #1261a6 !important; border-radius: 8px !important; font: 700 1.05rem/1.4 system-ui, sans-serif; cursor: pointer; }
.m3c-quote-form button.m3c-quote-submit:hover { background: #0b467b !important; border-color: #0b467b !important; }
.m3c-quote-form button.m3c-quote-submit:focus-visible { outline: 3px solid #1261a6; outline-offset: 4px; }
.m3c-quote-form input[type="file"] { font-size: .95rem; }
.m3c-quote-form small { font-weight: 400; line-height: 1.5; color: #465364; }
@media (max-width: 600px) { .m3c-quote-form button.m3c-quote-submit { width: 100%; min-width: 0; } }

.single-product .m3c-single-quote-action { order: 8; align-self: flex-start; clear: both; margin: 1.5rem 0 0; text-align: left; }
.single-product .m3c-single-quote-action .m3c-quote-button { margin: 0; text-decoration: none; }

/* Keep complete photos inside proportional catalogue and related-product cards. */
body .wc-block-product .wc-block-components-product-image {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1;
}
body .wc-block-product .wc-block-components-product-image > a {
    display: block;
    width: 100%;
    height: 100%;
}
body .wc-block-product .wc-block-components-product-image img,
body.woocommerce ul.products li.product a img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: contain !important;
    object-position: center !important;
    box-sizing: border-box;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    padding: 6px;
    box-sizing: border-box;
    background: #fff;
}