/* Product audit, 2026-11-06. Load after orchidable-pages.css.
   Native Woo/PW forms and product assets are retained. Browser QA pending. */

/* The reference uses flat product tiles. The live row-box-shadow-1 and
   row-box-shadow-1-hover classes reintroduce Flatsome's raised cards. */
.archive.woocommerce .products > .product-small > .col-inner,
.or-gift-products > .product-small > .col-inner,
.archive.woocommerce .products > .product-small:hover > .col-inner,
.or-gift-products > .product-small:hover > .col-inner {
  box-shadow: none;
}

/* Global restyle buttons are >=48px, while the native numeric input remains
   2.507em. Give all three actual quantity controls a shared box height. */
.single-product .product-info form.cart .ux-quantity input.qty,
.single-product .product-info form.cart .ux-quantity input.ux-quantity__button {
  box-sizing: border-box;
  height: 48px;
  min-height: 48px;
  margin-bottom: 0;
  padding-block: 0;
}

/* PW's actual recipient/date/message fields currently inherit the generic
   inset-shadow inputs. Match the approved flat form treatment without
   touching hidden fields, field state, validation or plugin visibility. */
.single-product .product-type-pw-gift-card #pwgc-purchase-container input.pwgc-input-text,
.single-product .product-type-pw-gift-card #pwgc-custom-amount,
.single-product .product-type-pw-gift-card #pwgc-message,
.single-product .product-type-pw-gift-card .variations select {
  border: 1px solid var(--or-line);
  border-radius: 0;
  box-shadow: none;
  background-color: #fff;
  color: var(--or-green);
  font-size: 13px;
}
.single-product .product-type-pw-gift-card #pwgc-purchase-container input.pwgc-input-text,
.single-product .product-type-pw-gift-card #pwgc-custom-amount,
.single-product .product-type-pw-gift-card .variations select {
  min-height: 48px;
}
.single-product .product-type-pw-gift-card #pwgc-message {
  min-height: 120px;
}

/* Catalog filters: native WooCommerce widgets and SelectWoo, no new controls. */
#shop-sidebar {
  background: #eeefe6;
  border: 1px solid #d6ddcf;
  border-radius: 12px;
  padding: 24px 20px;
  color: var(--or-green);
}
#shop-sidebar .widget {
  margin: 0 0 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid #d6ddcf;
}
#shop-sidebar .widget:last-child {margin-bottom: 0; padding-bottom: 0; border-bottom: 0;}
#shop-sidebar .widget-title {
  display: block;
  margin: 0 0 9px;
  color: var(--or-green);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}
#shop-sidebar .is-divider {display: none;}
#shop-sidebar form {margin: 0;}
#shop-sidebar .select2-container {width: 100% !important;}
#shop-sidebar .select2-selection--single,
#shop-sidebar select:not(.select2-hidden-accessible) {
  height: 46px;
  min-height: 46px;
  border: 1px solid #b8c4b3;
  border-radius: 7px;
  background: #fffef9;
  box-shadow: none;
  font-size: 16px;
}
#shop-sidebar .select2-selection--single .select2-selection__rendered {
  padding: 0 32px 0 12px;
  color: var(--or-green);
  font-size: 16px;
  line-height: 44px;
}
#shop-sidebar .select2-selection__placeholder {color: #5b685e;}
#shop-sidebar .select2-selection--single .select2-selection__arrow {height: 44px; right: 10px;}
#shop-sidebar .select2-selection--single .select2-selection__arrow b {border-top-color: var(--or-green);}
#shop-sidebar .select2-container--open .select2-selection--single,
#shop-sidebar .select2-selection--single:focus-visible,
#shop-sidebar select:focus-visible {
  border-color: var(--or-green);
  outline: 2px solid var(--or-green);
  outline-offset: 2px;
}
body.woocommerce.archive .select2-dropdown {
  border-color: #b8c4b3;
  border-radius: 7px;
  background: #fffef9;
  color: var(--or-green);
  box-shadow: 0 10px 24px #183c3014;
  font-size: 16px;
}
body.woocommerce.archive .select2-results__option {padding: 11px 12px; min-height: 44px;}
body.woocommerce.archive .select2-container--default .select2-results__option--highlighted[aria-selected],
body.woocommerce.archive .select2-container--default .select2-results__option--highlighted[data-selected] {background: var(--or-green); color: #fffef9;}
body.woocommerce.archive .select2-search--dropdown .select2-search__field {font-size: 16px; border: 1px solid #b8c4b3; border-radius: 4px; box-shadow: none;}
#shop-sidebar .price_slider_wrapper {padding-top: 12px;}
#shop-sidebar .price_slider {height: 4px; margin: 10px 9px 24px; background: #cbd4c4; border: 0;}
#shop-sidebar .price_slider .ui-slider-range {background: var(--or-green);}
#shop-sidebar .price_slider .ui-slider-handle {width: 20px; height: 20px; top: -8px; margin-left: -10px; border: 3px solid #fffef9; background: var(--or-green); box-shadow: 0 0 0 1px var(--or-green);}
#shop-sidebar .price_slider .ui-slider-handle:focus-visible {outline: 2px solid var(--or-green); outline-offset: 4px;}
#shop-sidebar .price_slider_amount {display: flex; flex-wrap: wrap; align-items: center; gap: 12px; text-align: left; line-height: 1.5;}
#shop-sidebar .price_slider_amount .price_label {order: -1; flex: 1 0 100%; font-size: 14px;}
#shop-sidebar .price_slider_amount .button {margin: 0; min-height: 44px; padding: 0 22px; border-radius: 6px; background: var(--or-green); color: #fffef9; font-size: 13px; line-height: 44px;}
#shop-sidebar .price_slider_amount .clear {display: none;}
#shop-sidebar .widget_layered_nav_filters ul {display: flex; flex-wrap: wrap; gap: 8px;}
#shop-sidebar .widget_layered_nav_filters li {margin: 0;}
#shop-sidebar .widget_layered_nav_filters a {display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid #b8c4b3; border-radius: 6px; background: #fffef9; color: var(--or-green); font-size: 14px;}
.woocommerce.archive .filter-button {padding: 11px 18px; border: 1px solid #b8c4b3; border-radius: 6px; background: #eeefe6; color: var(--or-green); font-size: 14px;}
.woocommerce.archive .woocommerce-ordering select {height: 46px; padding-left: 12px; border: 1px solid #b8c4b3; border-radius: 6px; box-shadow: none; background-color: #fffef9; color: var(--or-green); font-size: 16px;}
/* Opaque mobile drawer prevents product text bleeding through the filters. */
.mfp-content:has(> #shop-sidebar) {width: min(360px, calc(100vw - 48px)) !important; background: #eeefe6 !important;}
.mfp-content > #shop-sidebar {border: 0; border-radius: 0; padding: 28px 22px; min-height: 100svh;}
html:has(.mfp-content > #shop-sidebar) #ocb-launcher,
html:has(.mfp-content > #shop-sidebar) .joinchat {display: none !important;}
/* Keep the dropdown cue explicit despite the theme's arrow reset. */
#shop-sidebar .select2-selection__arrow b {
  display: block !important;
  width: 7px;
  height: 7px;
  margin: -5px 0 0 -4px;
  border: solid var(--or-green);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
#shop-sidebar .select2-container--open .select2-selection__arrow b {margin-top: -2px; transform: rotate(225deg);}
.woocommerce.archive .widget_layered_nav_filters ul {display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0;}
.woocommerce.archive .widget_layered_nav_filters li {margin: 0;}
.woocommerce.archive .widget_layered_nav_filters a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #b8c4b3;
  border-radius: 6px;
  background: #eeefe6;
  color: var(--or-green);
  font-size: 14px;
}
.woocommerce.archive .widget_layered_nav_filters a:before {color: var(--or-green); opacity: 1;}
.mfp-wrap:has(#shop-sidebar) > .mfp-close {top: 8px; right: 4px; width: 44px; height: 44px; border-radius: 6px; background: var(--or-green); color: #fffef9; opacity: 1;}
#shop-sidebar .select2-selection__arrow b {
  border-color: transparent var(--or-green) var(--or-green) transparent !important;
}
