/* Additions to the captured WordPress theme styles, for markup the WooCommerce scripts used to manage. */

/* Product gallery without the flexslider script: main photo plus a row of thumbnails. */
.woocommerce div.product div.images .flex-control-thumbs { margin-top: 10px; padding: 0; list-style: none; overflow: hidden; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 25%; float: left; padding: 0 4px 4px 0; box-sizing: border-box; }
.woocommerce div.product div.images .flex-control-thumbs li img { cursor: pointer; opacity: .5; display: block; width: 100%; height: auto; }
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs li img:hover { opacity: 1; }
.woocommerce div.product div.images img { display: block; width: 100%; height: auto; }

/* Cart remove button (WooCommerce styles a link; this is a button so it can post the form). */
.woocommerce table.cart td.product-remove .rmp-remove {
    display: block; width: 1em; height: 1em; font-size: 1.5em; line-height: 1; border-radius: 100%; border: 0;
    background: transparent; color: #e2401c; font-weight: 700; text-align: center; cursor: pointer; padding: 0;
}
.woocommerce table.cart td.product-remove .rmp-remove:hover { background: #e2401c; color: #fff; }

/* Card form error under Square's fields. */
.rmp-card-error { color: #b81c23; margin-top: 8px; font-size: 14px; }
#payment .payment_box [data-square-card] { margin-top: 10px; }

/* Checkout state select and order notes, matching the theme's inputs. */
.woocommerce form .form-row select.state_select { width: 100%; padding: 12px; border: none; background: #eee; color: #999; border-radius: 0; }
.woocommerce-checkout #order_comments { min-height: 90px; }

/* Search box on the not-found page. */
.rmp-search { display: flex; gap: 8px; max-width: 520px; margin-top: 16px; }
.rmp-search input { flex: 1; padding: 10px; border: 1px solid #bbb; }
