2026-02-28 09:42:35 +01:00
|
|
|
/**
|
|
|
|
|
* WooCommerce Bootstrap - Bootstrap 5 Overrides
|
|
|
|
|
*
|
|
|
|
|
* Provides Bootstrap 5 styling for any plugin CSS classes
|
|
|
|
|
* that may be injected by the plugin's JavaScript or inline markup.
|
|
|
|
|
*
|
|
|
|
|
* CSS dependency chain (lowest to highest priority):
|
|
|
|
|
* 1. wp-bootstrap (parent theme)
|
|
|
|
|
* 2. woocommerce (plugin styles)
|
|
|
|
|
* 3. wc-bootstrap-style (child theme style.css)
|
|
|
|
|
* 4. wc-bootstrap-overrides (this file)
|
|
|
|
|
*
|
|
|
|
|
* @package WcBootstrap
|
|
|
|
|
* @since 0.1.0
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/* ==========================================================================
|
|
|
|
|
Button Overrides
|
|
|
|
|
Map plugin button classes to Bootstrap button styles.
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
/* Example: Map plugin .my-button to Bootstrap styling
|
|
|
|
|
.my-button {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
text-align: center;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
border: 1px solid transparent;
|
|
|
|
|
padding: 0.375rem 0.75rem;
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
border-radius: var(--bs-border-radius);
|
|
|
|
|
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/* ==========================================================================
|
2026-02-28 10:19:10 +01:00
|
|
|
WooCommerce Notice Overrides
|
|
|
|
|
Map WooCommerce notice classes to Bootstrap alert styles as fallback
|
|
|
|
|
when notices are rendered outside our Twig templates.
|
2026-02-28 09:42:35 +01:00
|
|
|
========================================================================== */
|
|
|
|
|
|
2026-02-28 22:13:31 +01:00
|
|
|
/* Override woocommerce.css which sets border-top: 3px solid, background-color:
|
|
|
|
|
#f6f5f8, and a WooCommerce icon font ::before on notice classes.
|
|
|
|
|
Two selector patterns at specificity 0,2,0:
|
|
|
|
|
- .woocommerce .woocommerce-* — notices inside a .woocommerce wrapper
|
|
|
|
|
- .alert.woocommerce-* — notices rendered by our Twig templates */
|
2026-02-28 19:24:55 +01:00
|
|
|
.woocommerce .woocommerce-info,
|
|
|
|
|
.woocommerce .woocommerce-message,
|
2026-02-28 22:13:31 +01:00
|
|
|
.woocommerce .woocommerce-error,
|
|
|
|
|
.alert.woocommerce-info,
|
|
|
|
|
.alert.woocommerce-message,
|
|
|
|
|
.alert.woocommerce-error {
|
2026-02-28 09:42:35 +01:00
|
|
|
position: relative;
|
2026-02-28 10:19:10 +01:00
|
|
|
padding: 1rem 3rem 1rem 1rem;
|
2026-02-28 19:24:55 +01:00
|
|
|
margin: 0 0 1rem;
|
|
|
|
|
border: var(--bs-border-width) solid transparent;
|
|
|
|
|
border-top: var(--bs-border-width) solid transparent;
|
2026-02-28 09:42:35 +01:00
|
|
|
border-radius: var(--bs-border-radius);
|
2026-02-28 19:24:55 +01:00
|
|
|
background-color: transparent;
|
|
|
|
|
background-image: none;
|
2026-02-28 09:42:35 +01:00
|
|
|
}
|
2026-02-28 10:19:10 +01:00
|
|
|
|
2026-02-28 22:13:31 +01:00
|
|
|
.woocommerce .woocommerce-info,
|
|
|
|
|
.alert.woocommerce-info {
|
2026-02-28 10:19:10 +01:00
|
|
|
color: var(--bs-info-text-emphasis);
|
|
|
|
|
background-color: var(--bs-info-bg-subtle);
|
|
|
|
|
border-color: var(--bs-info-border-subtle);
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-28 22:13:31 +01:00
|
|
|
.woocommerce .woocommerce-message,
|
|
|
|
|
.alert.woocommerce-message {
|
2026-02-28 10:19:10 +01:00
|
|
|
color: var(--bs-success-text-emphasis);
|
|
|
|
|
background-color: var(--bs-success-bg-subtle);
|
|
|
|
|
border-color: var(--bs-success-border-subtle);
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-28 22:13:31 +01:00
|
|
|
.woocommerce .woocommerce-error,
|
|
|
|
|
.alert.woocommerce-error {
|
2026-02-28 10:19:10 +01:00
|
|
|
color: var(--bs-danger-text-emphasis);
|
|
|
|
|
background-color: var(--bs-danger-bg-subtle);
|
|
|
|
|
border-color: var(--bs-danger-border-subtle);
|
|
|
|
|
list-style: none;
|
|
|
|
|
padding-left: 1rem;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-28 22:13:31 +01:00
|
|
|
/* WooCommerce JS (woocommerce.js:focus_populate_live_region) adds tabindex="-1"
|
|
|
|
|
and calls .focus() on notices for screen reader accessibility. The default
|
|
|
|
|
browser focus ring appears white in dark mode — suppress it since these are
|
|
|
|
|
non-interactive elements (the focus is only for screen reader announcement). */
|
|
|
|
|
.alert.woocommerce-info:focus,
|
|
|
|
|
.alert.woocommerce-message:focus,
|
|
|
|
|
.alert.woocommerce-error:focus {
|
|
|
|
|
outline: 0;
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-28 19:24:55 +01:00
|
|
|
/* Suppress WooCommerce icon font ::before — our templates use Bootstrap Icons */
|
|
|
|
|
.woocommerce .woocommerce-info::before,
|
|
|
|
|
.woocommerce .woocommerce-message::before,
|
2026-02-28 22:13:31 +01:00
|
|
|
.woocommerce .woocommerce-error::before,
|
|
|
|
|
.alert.woocommerce-info::before,
|
|
|
|
|
.alert.woocommerce-message::before,
|
|
|
|
|
.alert.woocommerce-error::before {
|
2026-02-28 19:24:55 +01:00
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-28 10:19:10 +01:00
|
|
|
/* ==========================================================================
|
|
|
|
|
Quantity Input
|
|
|
|
|
Sizing for the Bootstrap input-group quantity widget.
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
.quantity.input-group .form-control {
|
|
|
|
|
/* Remove number input spinners (browser default) */
|
|
|
|
|
-moz-appearance: textfield;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.quantity.input-group .form-control::-webkit-outer-spin-button,
|
|
|
|
|
.quantity.input-group .form-control::-webkit-inner-spin-button {
|
|
|
|
|
-webkit-appearance: none;
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
2026-02-28 09:42:35 +01:00
|
|
|
|
2026-02-28 10:23:09 +01:00
|
|
|
/* ==========================================================================
|
|
|
|
|
Product Cards
|
|
|
|
|
Hover effects and layout for product loop cards.
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
.product.card {
|
|
|
|
|
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.product.card:hover {
|
|
|
|
|
transform: translateY(-2px);
|
|
|
|
|
box-shadow: var(--bs-box-shadow) !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Product image in card */
|
|
|
|
|
.product.card img {
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
aspect-ratio: 1 / 1;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-28 15:06:33 +01:00
|
|
|
/* Product link wrapping card content — remove underline, inherit text color */
|
|
|
|
|
.product.card a.woocommerce-LoopProduct-link {
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
color: inherit;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Product title in card body */
|
|
|
|
|
.product.card .woocommerce-loop-product__title {
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Push price to bottom of card body for even card heights */
|
|
|
|
|
.product.card .card-body .price {
|
|
|
|
|
margin-top: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Add-to-cart button — Bootstrap btn-outline-primary style */
|
|
|
|
|
.product.card .button {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: 100%;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
text-align: center;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
padding: 0.375rem 0.75rem;
|
|
|
|
|
font-size: 0.875rem;
|
|
|
|
|
border-radius: var(--bs-border-radius);
|
|
|
|
|
color: var(--bs-primary);
|
|
|
|
|
border: var(--bs-border-width) solid var(--bs-primary);
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.product.card .button:hover {
|
|
|
|
|
color: #fff;
|
|
|
|
|
background-color: var(--bs-primary);
|
|
|
|
|
border-color: var(--bs-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* "View options" button for variable products */
|
|
|
|
|
.product.card .button.product_type_variable {
|
|
|
|
|
color: var(--bs-secondary);
|
|
|
|
|
border-color: var(--bs-secondary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.product.card .button.product_type_variable:hover {
|
|
|
|
|
color: #fff;
|
|
|
|
|
background-color: var(--bs-secondary);
|
|
|
|
|
border-color: var(--bs-secondary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* "Read more" button for external/non-purchasable products */
|
|
|
|
|
.product.card .button.product_type_external {
|
|
|
|
|
color: var(--bs-info);
|
|
|
|
|
border-color: var(--bs-info);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.product.card .button.product_type_external:hover {
|
|
|
|
|
color: #fff;
|
|
|
|
|
background-color: var(--bs-info);
|
|
|
|
|
border-color: var(--bs-info);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Added-to-cart visual feedback */
|
|
|
|
|
.product.card .added_to_cart {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: 100%;
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-size: 0.875rem;
|
|
|
|
|
margin-top: 0.5rem;
|
|
|
|
|
color: var(--bs-success);
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* WooCommerce result count and ordering bar */
|
|
|
|
|
.woocommerce-result-count {
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
line-height: 2.5;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woocommerce-ordering select {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
padding: 0.375rem 2.25rem 0.375rem 0.75rem;
|
|
|
|
|
font-size: 0.875rem;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
color: var(--bs-body-color);
|
|
|
|
|
background-color: var(--bs-body-bg);
|
|
|
|
|
border: var(--bs-border-width) solid var(--bs-border-color);
|
|
|
|
|
border-radius: var(--bs-border-radius);
|
|
|
|
|
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
|
|
|
|
appearance: auto;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-28 10:23:09 +01:00
|
|
|
/* ==========================================================================
|
|
|
|
|
Sale Badge
|
2026-02-28 18:25:01 +01:00
|
|
|
Position inside gallery area, not overlapping breadcrumb.
|
|
|
|
|
WooCommerce sets top: -.5em which bleeds above the containing block.
|
2026-02-28 10:23:09 +01:00
|
|
|
========================================================================== */
|
|
|
|
|
|
2026-02-28 18:25:01 +01:00
|
|
|
.woocommerce span.onsale {
|
|
|
|
|
top: 0.5em;
|
|
|
|
|
left: 0.5em;
|
2026-02-28 10:23:09 +01:00
|
|
|
z-index: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ==========================================================================
|
|
|
|
|
Star Rating
|
|
|
|
|
Consistent sizing for Bootstrap Icon star ratings.
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
.wc-star-rating .bi {
|
|
|
|
|
font-size: 0.875rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ==========================================================================
|
|
|
|
|
Price Styling
|
|
|
|
|
Override WooCommerce default price markup with Bootstrap-aligned styles.
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
.price del {
|
|
|
|
|
text-decoration: line-through;
|
|
|
|
|
color: var(--bs-secondary-color);
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.price ins {
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
color: var(--bs-danger);
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-28 10:28:13 +01:00
|
|
|
/* ==========================================================================
|
|
|
|
|
Product Gallery
|
|
|
|
|
Thumbnail grid and cursor for single product image gallery.
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
.wc-gallery-thumb {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
opacity: 0.7;
|
|
|
|
|
transition: opacity 0.15s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.wc-gallery-thumb:hover {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woocommerce-product-gallery__image img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: auto;
|
|
|
|
|
border-radius: var(--bs-border-radius);
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-28 18:25:01 +01:00
|
|
|
/* ==========================================================================
|
|
|
|
|
Single Product Layout
|
|
|
|
|
Reset WooCommerce's float-based two-column layout for single product pages.
|
|
|
|
|
Bootstrap's row/col-lg-6 grid handles the layout instead.
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
.woocommerce div.product div.images,
|
|
|
|
|
.woocommerce div.product div.summary {
|
|
|
|
|
float: none;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-28 10:28:13 +01:00
|
|
|
/* ==========================================================================
|
|
|
|
|
Variation Selectors
|
|
|
|
|
Spacing for variable product attribute dropdowns.
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
.variations_form .reset_variations {
|
|
|
|
|
font-size: 0.875rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.single_variation_wrap .woocommerce-variation {
|
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-28 10:23:09 +01:00
|
|
|
/* ==========================================================================
|
2026-02-28 15:06:33 +01:00
|
|
|
Shop / Archive Layout
|
|
|
|
|
Reset WooCommerce's default float grid to let Bootstrap handle layout.
|
|
|
|
|
Override woocommerce-layout.css float-based widths and clearfixes.
|
2026-02-28 10:23:09 +01:00
|
|
|
========================================================================== */
|
|
|
|
|
|
2026-02-28 15:06:33 +01:00
|
|
|
/* Reset float-based result count / ordering bar — use flexbox instead */
|
|
|
|
|
.post-type-archive-product .woocommerce-result-count,
|
|
|
|
|
.tax-product_cat .woocommerce-result-count,
|
|
|
|
|
.tax-product_tag .woocommerce-result-count,
|
|
|
|
|
.post-type-archive-product .woocommerce-ordering,
|
|
|
|
|
.tax-product_cat .woocommerce-ordering,
|
|
|
|
|
.tax-product_tag .woocommerce-ordering {
|
|
|
|
|
float: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Reset WooCommerce's product grid floats and widths */
|
|
|
|
|
.woocommerce ul.products,
|
|
|
|
|
.woocommerce .products {
|
|
|
|
|
list-style: none;
|
|
|
|
|
padding: 0;
|
|
|
|
|
margin: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
clear: both;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woocommerce ul.products li.product,
|
|
|
|
|
.woocommerce .products .product {
|
|
|
|
|
float: none;
|
|
|
|
|
width: auto;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
2026-02-28 10:23:09 +01:00
|
|
|
}
|
|
|
|
|
|
Implement Phase 4 & 5: cart and checkout templates (Bootstrap 5, HPOS)
Phase 4 - Cart (9 templates):
- cart: 8+4 column layout, table-responsive items, coupon input-group
- cart-empty: centered empty state with cart-x icon
- cart-item-data: inline dl for variation details
- cart-totals: card with list-group-flush rows, sticky sidebar
- cart-shipping: form-check radio per shipping method
- cross-sells: product loop grid section
- mini-cart: offcanvas-compatible item list with remove buttons
- proceed-to-checkout-button: btn-primary btn-lg w-100
- shipping-calculator: collapsible form with form-select/form-control
Phase 5 - Checkout (12 templates):
- form-checkout: 7+5 column layout, sticky order review sidebar
- form-billing: card with field wrapper, optional account creation
- form-shipping: card with ship-to-different-address collapse toggle
- form-coupon: collapsible input-group with alert-info toggle
- form-login: collapsible login reusing global/form-login.html.twig
- review-order: card with table-sm, tfoot subtotal/shipping/total
- payment: list-group of payment gateways with radio selection
- payment-method: form-check with description collapse
- terms: form-check checkbox with T&C link
- thankyou: HPOS compatible, alert-success + order details list-group
- order-received: confirmation message
- cart-errors: alert-danger with return-to-cart button
All order data accessed via WC_Order methods (HPOS compatible).
CSS additions: cart thumbnail sizing, checkout form field overrides,
payment box transitions, dark mode focus states.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 10:33:49 +01:00
|
|
|
/* ==========================================================================
|
|
|
|
|
Cart Table
|
|
|
|
|
Responsive cart item layout and thumbnail sizing.
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
.woocommerce-cart-form .product-thumbnail img {
|
|
|
|
|
width: 60px;
|
|
|
|
|
height: 60px;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
border-radius: var(--bs-border-radius);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ==========================================================================
|
|
|
|
|
Checkout
|
|
|
|
|
Sticky order review sidebar and payment method toggle.
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
.payment_box {
|
|
|
|
|
transition: all 0.2s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woocommerce-checkout .form-row label {
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Override WooCommerce form fields to use Bootstrap styles */
|
|
|
|
|
.woocommerce-checkout .form-row input.input-text,
|
|
|
|
|
.woocommerce-checkout .form-row textarea,
|
|
|
|
|
.woocommerce-checkout .form-row select {
|
|
|
|
|
display: block;
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding: 0.375rem 0.75rem;
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
color: var(--bs-body-color);
|
|
|
|
|
background-color: var(--bs-body-bg);
|
|
|
|
|
border: var(--bs-border-width) solid var(--bs-border-color);
|
|
|
|
|
border-radius: var(--bs-border-radius);
|
|
|
|
|
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woocommerce-checkout .form-row input.input-text:focus,
|
|
|
|
|
.woocommerce-checkout .form-row textarea:focus,
|
|
|
|
|
.woocommerce-checkout .form-row select:focus {
|
|
|
|
|
border-color: #86b7fe;
|
|
|
|
|
outline: 0;
|
|
|
|
|
box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-28 09:42:35 +01:00
|
|
|
/* ==========================================================================
|
|
|
|
|
Dark Mode Overrides
|
|
|
|
|
Fix any plugin elements that don't adapt to Bootstrap's dark mode.
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
/* Bootstrap 5 dark mode uses data-bs-theme="dark" attribute on <html> */
|
2026-02-28 19:24:55 +01:00
|
|
|
|
|
|
|
|
/* Native <select> elements — woocommerce.css sets:
|
|
|
|
|
select { background-color: var(--wc-form-color-background, #fff) }
|
|
|
|
|
The custom property is never defined for dark mode, so it falls back to #fff. */
|
|
|
|
|
[data-bs-theme="dark"] .woocommerce select,
|
|
|
|
|
[data-bs-theme="dark"] .wc-block-checkout select {
|
|
|
|
|
background-color: var(--bs-body-bg);
|
|
|
|
|
color: var(--bs-body-color);
|
|
|
|
|
border-color: var(--bs-border-color);
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-28 22:13:31 +01:00
|
|
|
/* Text inputs & textareas — same issue as <select>: woocommerce.css sets
|
|
|
|
|
.form-row .input-text { background-color: var(--wc-form-color-background, #fff) }
|
|
|
|
|
with higher specificity than the theme's checkout form rules. */
|
|
|
|
|
[data-bs-theme="dark"] .woocommerce .form-row .input-text,
|
|
|
|
|
[data-bs-theme="dark"] .woocommerce .form-row textarea {
|
|
|
|
|
background-color: var(--bs-body-bg);
|
|
|
|
|
color: var(--bs-body-color);
|
|
|
|
|
border-color: var(--bs-border-color);
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-28 19:24:55 +01:00
|
|
|
/* SelectWoo / Select2 — select2.css hardcodes #fff backgrounds on selection
|
|
|
|
|
containers and dropdowns. Override to use Bootstrap's dark mode variables. */
|
|
|
|
|
[data-bs-theme="dark"] .select2-container--default .select2-selection--single,
|
|
|
|
|
[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple {
|
|
|
|
|
background-color: var(--bs-body-bg);
|
|
|
|
|
color: var(--bs-body-color);
|
|
|
|
|
border-color: var(--bs-border-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
|
|
|
|
|
color: var(--bs-body-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__arrow b {
|
|
|
|
|
border-color: var(--bs-secondary-color) transparent transparent transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-bs-theme="dark"] .select2-dropdown {
|
|
|
|
|
background-color: var(--bs-body-bg);
|
|
|
|
|
color: var(--bs-body-color);
|
|
|
|
|
border-color: var(--bs-border-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-bs-theme="dark"] .select2-container--default .select2-search--dropdown .select2-search__field {
|
|
|
|
|
background-color: var(--bs-tertiary-bg);
|
|
|
|
|
color: var(--bs-body-color);
|
|
|
|
|
border-color: var(--bs-border-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-bs-theme="dark"] .select2-container--default .select2-results__option[aria-selected=true],
|
|
|
|
|
[data-bs-theme="dark"] .select2-container--default .select2-results__option[data-selected=true] {
|
|
|
|
|
background-color: var(--bs-tertiary-bg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-bs-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected],
|
|
|
|
|
[data-bs-theme="dark"] .select2-container--default .select2-results__option--highlighted[data-selected] {
|
|
|
|
|
background-color: var(--bs-primary);
|
|
|
|
|
color: #fff;
|
Implement Phase 4 & 5: cart and checkout templates (Bootstrap 5, HPOS)
Phase 4 - Cart (9 templates):
- cart: 8+4 column layout, table-responsive items, coupon input-group
- cart-empty: centered empty state with cart-x icon
- cart-item-data: inline dl for variation details
- cart-totals: card with list-group-flush rows, sticky sidebar
- cart-shipping: form-check radio per shipping method
- cross-sells: product loop grid section
- mini-cart: offcanvas-compatible item list with remove buttons
- proceed-to-checkout-button: btn-primary btn-lg w-100
- shipping-calculator: collapsible form with form-select/form-control
Phase 5 - Checkout (12 templates):
- form-checkout: 7+5 column layout, sticky order review sidebar
- form-billing: card with field wrapper, optional account creation
- form-shipping: card with ship-to-different-address collapse toggle
- form-coupon: collapsible input-group with alert-info toggle
- form-login: collapsible login reusing global/form-login.html.twig
- review-order: card with table-sm, tfoot subtotal/shipping/total
- payment: list-group of payment gateways with radio selection
- payment-method: form-check with description collapse
- terms: form-check checkbox with T&C link
- thankyou: HPOS compatible, alert-success + order details list-group
- order-received: confirmation message
- cart-errors: alert-danger with return-to-cart button
All order data accessed via WC_Order methods (HPOS compatible).
CSS additions: cart thumbnail sizing, checkout form field overrides,
payment box transitions, dark mode focus states.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 10:33:49 +01:00
|
|
|
}
|
|
|
|
|
|
2026-02-28 19:24:55 +01:00
|
|
|
/* Checkout form focus color for dark mode */
|
Implement Phase 4 & 5: cart and checkout templates (Bootstrap 5, HPOS)
Phase 4 - Cart (9 templates):
- cart: 8+4 column layout, table-responsive items, coupon input-group
- cart-empty: centered empty state with cart-x icon
- cart-item-data: inline dl for variation details
- cart-totals: card with list-group-flush rows, sticky sidebar
- cart-shipping: form-check radio per shipping method
- cross-sells: product loop grid section
- mini-cart: offcanvas-compatible item list with remove buttons
- proceed-to-checkout-button: btn-primary btn-lg w-100
- shipping-calculator: collapsible form with form-select/form-control
Phase 5 - Checkout (12 templates):
- form-checkout: 7+5 column layout, sticky order review sidebar
- form-billing: card with field wrapper, optional account creation
- form-shipping: card with ship-to-different-address collapse toggle
- form-coupon: collapsible input-group with alert-info toggle
- form-login: collapsible login reusing global/form-login.html.twig
- review-order: card with table-sm, tfoot subtotal/shipping/total
- payment: list-group of payment gateways with radio selection
- payment-method: form-check with description collapse
- terms: form-check checkbox with T&C link
- thankyou: HPOS compatible, alert-success + order details list-group
- order-received: confirmation message
- cart-errors: alert-danger with return-to-cart button
All order data accessed via WC_Order methods (HPOS compatible).
CSS additions: cart thumbnail sizing, checkout form field overrides,
payment box transitions, dark mode focus states.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 10:33:49 +01:00
|
|
|
[data-bs-theme="dark"] .woocommerce-checkout .form-row input.input-text:focus,
|
|
|
|
|
[data-bs-theme="dark"] .woocommerce-checkout .form-row textarea:focus,
|
|
|
|
|
[data-bs-theme="dark"] .woocommerce-checkout .form-row select:focus {
|
|
|
|
|
border-color: #6ea8fe;
|
|
|
|
|
box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
|
2026-02-28 09:42:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ==========================================================================
|
|
|
|
|
Sticky Header
|
|
|
|
|
Shadow effect when header is in stuck position.
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
header.sticky-top.is-stuck {
|
|
|
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
|
|
|
transition: box-shadow 0.2s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[data-bs-theme="dark"] header.sticky-top.is-stuck {
|
|
|
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ==========================================================================
|
|
|
|
|
Block Navigation Fix
|
|
|
|
|
Required for dropdown menus inside WordPress block navigation.
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
.wp-block-navigation__container {
|
|
|
|
|
overflow: visible !important;
|
|
|
|
|
}
|
Implement Phase 6 & 7: My Account and Order Details templates (Bootstrap 5, HPOS)
Phase 6 - My Account (15 templates):
- Account layout with sidebar navigation (list-group) and content area
- Orders table with status badges, pagination, and responsive design
- View order with order notes as list-group items
- Address cards with edit/add buttons
- Login/Register side-by-side card layout
- Account edit, password change, downloads, payment methods forms
- Lost/reset password forms and confirmation
Phase 7 - Order Details (5 templates):
- Order details table with items, totals, and customer note
- Line item rows with refund quantity display
- Customer billing/shipping address cards
- Order tracking form
- Order again button
All order templates use WC_Order object methods only (HPOS compatible).
Bootstrap 5 components: cards, tables, list-groups, badges, forms, alerts.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 10:43:30 +01:00
|
|
|
|
|
|
|
|
/* ==========================================================================
|
|
|
|
|
My Account
|
|
|
|
|
Navigation and layout for the My Account area.
|
2026-02-28 13:28:15 +01:00
|
|
|
Reset WooCommerce's float-based layout to let Bootstrap flex grid handle it.
|
Implement Phase 6 & 7: My Account and Order Details templates (Bootstrap 5, HPOS)
Phase 6 - My Account (15 templates):
- Account layout with sidebar navigation (list-group) and content area
- Orders table with status badges, pagination, and responsive design
- View order with order notes as list-group items
- Address cards with edit/add buttons
- Login/Register side-by-side card layout
- Account edit, password change, downloads, payment methods forms
- Lost/reset password forms and confirmation
Phase 7 - Order Details (5 templates):
- Order details table with items, totals, and customer note
- Line item rows with refund quantity display
- Customer billing/shipping address cards
- Order tracking form
- Order again button
All order templates use WC_Order object methods only (HPOS compatible).
Bootstrap 5 components: cards, tables, list-groups, badges, forms, alerts.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 10:43:30 +01:00
|
|
|
========================================================================== */
|
|
|
|
|
|
2026-02-28 13:28:15 +01:00
|
|
|
.woocommerce-account main .woocommerce,
|
|
|
|
|
.woocommerce-cart main .woocommerce,
|
2026-02-28 15:06:33 +01:00
|
|
|
.woocommerce-checkout main .woocommerce,
|
|
|
|
|
.post-type-archive-product main .woocommerce,
|
|
|
|
|
.tax-product_cat main .woocommerce,
|
|
|
|
|
.tax-product_tag main .woocommerce {
|
2026-02-28 13:28:15 +01:00
|
|
|
max-width: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woocommerce-account .woocommerce-MyAccount-navigation {
|
|
|
|
|
float: none;
|
|
|
|
|
width: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woocommerce-account .woocommerce-MyAccount-content {
|
|
|
|
|
float: none;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woocommerce-MyAccount-navigation .list-group-item {
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
Implement Phase 6 & 7: My Account and Order Details templates (Bootstrap 5, HPOS)
Phase 6 - My Account (15 templates):
- Account layout with sidebar navigation (list-group) and content area
- Orders table with status badges, pagination, and responsive design
- View order with order notes as list-group items
- Address cards with edit/add buttons
- Login/Register side-by-side card layout
- Account edit, password change, downloads, payment methods forms
- Lost/reset password forms and confirmation
Phase 7 - Order Details (5 templates):
- Order details table with items, totals, and customer note
- Line item rows with refund quantity display
- Customer billing/shipping address cards
- Order tracking form
- Order again button
All order templates use WC_Order object methods only (HPOS compatible).
Bootstrap 5 components: cards, tables, list-groups, badges, forms, alerts.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 10:43:30 +01:00
|
|
|
.woocommerce-MyAccount-navigation .list-group-item.active {
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-28 13:28:15 +01:00
|
|
|
/* Dashboard: avatar rounding */
|
|
|
|
|
.woocommerce-MyAccount-content .avatar {
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Dashboard: quick action card hover lift */
|
|
|
|
|
.woocommerce-MyAccount-content a.card {
|
|
|
|
|
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
|
|
|
|
color: inherit;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woocommerce-MyAccount-content a.card:hover {
|
|
|
|
|
transform: translateY(-2px);
|
|
|
|
|
box-shadow: var(--bs-box-shadow) !important;
|
Implement Phase 6 & 7: My Account and Order Details templates (Bootstrap 5, HPOS)
Phase 6 - My Account (15 templates):
- Account layout with sidebar navigation (list-group) and content area
- Orders table with status badges, pagination, and responsive design
- View order with order notes as list-group items
- Address cards with edit/add buttons
- Login/Register side-by-side card layout
- Account edit, password change, downloads, payment methods forms
- Lost/reset password forms and confirmation
Phase 7 - Order Details (5 templates):
- Order details table with items, totals, and customer note
- Line item rows with refund quantity display
- Customer billing/shipping address cards
- Order tracking form
- Order again button
All order templates use WC_Order object methods only (HPOS compatible).
Bootstrap 5 components: cards, tables, list-groups, badges, forms, alerts.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 10:43:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* View-order notes */
|
|
|
|
|
.woocommerce-OrderUpdate-description p:last-child {
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Address cards */
|
|
|
|
|
.woocommerce-Address address {
|
|
|
|
|
font-style: normal;
|
|
|
|
|
line-height: 1.6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* My Account forms — apply Bootstrap form-control styles */
|
|
|
|
|
.woocommerce-MyAccount-content .form-row input.input-text,
|
|
|
|
|
.woocommerce-MyAccount-content .form-row textarea,
|
|
|
|
|
.woocommerce-MyAccount-content .form-row select {
|
|
|
|
|
display: block;
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding: 0.375rem 0.75rem;
|
|
|
|
|
font-size: 1rem;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
line-height: 1.5;
|
|
|
|
|
color: var(--bs-body-color);
|
|
|
|
|
background-color: var(--bs-body-bg);
|
|
|
|
|
border: var(--bs-border-width) solid var(--bs-border-color);
|
|
|
|
|
border-radius: var(--bs-border-radius);
|
|
|
|
|
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woocommerce-MyAccount-content .form-row input.input-text:focus,
|
|
|
|
|
.woocommerce-MyAccount-content .form-row textarea:focus,
|
|
|
|
|
.woocommerce-MyAccount-content .form-row select:focus {
|
|
|
|
|
border-color: #86b7fe;
|
|
|
|
|
outline: 0;
|
|
|
|
|
box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ==========================================================================
|
|
|
|
|
Order Details
|
|
|
|
|
Styling for the order details and tracking pages.
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
.woocommerce-order-details .table tfoot th {
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woocommerce-order-details .table tfoot tr:last-child th,
|
|
|
|
|
.woocommerce-order-details .table tfoot tr:last-child td {
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.product-quantity {
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
2026-02-28 18:50:19 +01:00
|
|
|
|
|
|
|
|
/* ==========================================================================
|
|
|
|
|
Shop Table
|
|
|
|
|
Reset WooCommerce's border styles on .shop_table to let Bootstrap's
|
|
|
|
|
.table class handle borders via --bs-table-* custom properties.
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
.woocommerce table.shop_table {
|
|
|
|
|
border: 0;
|
|
|
|
|
border-collapse: collapse;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.woocommerce table.shop_table td,
|
|
|
|
|
.woocommerce table.shop_table th {
|
|
|
|
|
border-left: 0;
|
|
|
|
|
border-right: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ==========================================================================
|
|
|
|
|
Product Gallery
|
|
|
|
|
WooCommerce JS sets opacity: 1 after initialization. Ensure the gallery
|
|
|
|
|
is visible even if WC JS doesn't run (e.g., gallery features disabled).
|
|
|
|
|
========================================================================== */
|
|
|
|
|
|
|
|
|
|
.woocommerce-product-gallery--without-images {
|
|
|
|
|
opacity: 1 !important;
|
|
|
|
|
}
|