/* WooCommerce surfaces — match Wake & Bake, hide default shop chrome */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--foreground);
}

/* Empty notice shells create fake “extra divs” on checkout */
.woocommerce-notices-wrapper:empty,
.woocommerce-error:empty,
.woocommerce-info:empty,
.woocommerce-message:empty,
.woocommerce-NoticeGroup:empty,
.woocommerce-NoticeGroup-checkout:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  min-height: 0 !important;
}

.woocommerce-notices-wrapper {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.wb-wc-page .quantity input,
.woocommerce .quantity input,
.wb-input,
.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce-account input.input-text,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce form .form-row .select2-selection {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: rgba(5, 5, 5, 0.7) !important;
  color: #f4f7f2 !important;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  outline: none;
  color-scheme: dark;
}

.woocommerce-checkout select,
.woocommerce form .form-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23aeb8b2' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.9rem center !important;
  padding-right: 2.5rem !important;
}

.woocommerce form .form-row input.input-text::placeholder,
.woocommerce-checkout input.input-text::placeholder,
.woocommerce-checkout textarea::placeholder {
  color: #aeb8b2;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce form .form-row select:focus {
  border-color: rgba(122, 236, 192, 0.7);
}

/* Select2 (Country / State) — dark theme */
.select2-container--default .select2-selection--single {
  background-color: rgba(5, 5, 5, 0.7) !important;
  border: 1px solid rgba(244, 247, 242, 0.16) !important;
  border-radius: 0.9rem !important;
  height: auto !important;
  min-height: 2.85rem;
  padding: 0.35rem 0;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #f4f7f2 !important;
  line-height: 2.15rem;
  padding-left: 1rem;
  padding-right: 2rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  top: 0;
  right: 0.5rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #aeb8b2 transparent transparent transparent !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #aeb8b2 transparent !important;
}

.select2-dropdown {
  background-color: #121614 !important;
  border: 1px solid rgba(244, 247, 242, 0.16) !important;
  border-radius: 0.9rem !important;
  color: #f4f7f2 !important;
  overflow: hidden;
  z-index: 100060 !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  background: #050505 !important;
  border: 1px solid rgba(244, 247, 242, 0.16) !important;
  border-radius: 0.6rem !important;
  color: #f4f7f2 !important;
  outline: none;
}

.select2-container--default .select2-results__option {
  color: #f4f7f2 !important;
  padding: 0.6rem 1rem;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
  background-color: #1c211e !important;
  color: #7aecc0 !important;
}

.select2-container--default .select2-results__option--selected,
.select2-container--default .select2-results__option[aria-selected="true"] {
  background-color: rgba(122, 236, 192, 0.12) !important;
  color: #7aecc0 !important;
}

.woocommerce #place_order,
.woocommerce button.button,
.woocommerce a.button.alt,
.woocommerce .button.alt,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 9999px;
  padding: 1rem 1.5rem;
  font-weight: 700;
  color: var(--primary-foreground);
  background-image: var(--gradient-brand);
  background-size: 200% 200%;
  box-shadow: var(--shadow-glow);
  border: 0;
  cursor: pointer;
}

.woocommerce button.button:not(.alt),
.woocommerce a.button:not(.checkout-button):not(.alt) {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
  box-shadow: none;
}

.woocommerce-checkout #payment {
  background: transparent;
  border: 0;
}

.woocommerce-checkout #payment ul.payment_methods {
  padding: 0;
  border: 0;
}

.woocommerce-checkout #payment div.payment_box {
  background: rgba(5, 5, 5, 0.55);
  border: 1px solid var(--border);
  border-radius: 1rem;
  color: #aeb8b2;
}

.woocommerce table.shop_table {
  width: 100%;
  border: 0;
  background: transparent;
  color: #f4f7f2;
  border-collapse: collapse;
  table-layout: auto;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: rgba(244, 247, 242, 0.12);
  border-top: 1px solid rgba(244, 247, 242, 0.12);
  padding: 0.85rem 0;
  color: #f4f7f2;
  vertical-align: middle;
  text-align: left;
}

.woocommerce table.shop_table thead th {
  border-top: 0;
  font-weight: 600;
}

.woocommerce table.shop_table .product-total,
.woocommerce table.shop_table td.product-total,
.woocommerce table.shop_table tfoot td {
  text-align: right !important;
}

.woocommerce table.shop_table tfoot th {
  text-align: left !important;
  font-weight: 500;
}

/* Checkout order review — clean 2-column layout */
.woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce-checkout-review-order-table thead th.product-name {
  width: 65%;
  text-align: left !important;
}

.woocommerce-checkout-review-order-table thead th.product-total {
  width: 35%;
  text-align: right !important;
}

.woocommerce-checkout-review-order-table tbody th,
.woocommerce-checkout-review-order-table tbody td.product-name,
.woocommerce-checkout-review-order-table tfoot th {
  text-align: left !important;
}

.woocommerce-checkout-review-order-table tbody td.product-total,
.woocommerce-checkout-review-order-table tfoot td {
  text-align: right !important;
  white-space: nowrap;
}

.woocommerce-checkout-review-order-table .cart-subtotal th,
.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .cart-discount th,
.woocommerce-checkout-review-order-table .shipping th {
  text-align: left !important;
  padding-right: 1rem;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
  font-weight: 700;
  font-size: 1.05rem;
}

.woocommerce-checkout-review-order-table tbody tr:first-child th,
.woocommerce-checkout-review-order-table tbody tr:first-child td {
  border-top: 1px solid rgba(244, 247, 242, 0.12);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: inline-flex;
  border-radius: 9999px;
  border: 1px solid var(--border);
  padding: 0.55rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.woocommerce-account .is-active a {
  background: var(--brand-green);
  color: var(--accent-foreground);
  border-color: transparent;
}

.wb-pagination .page-numbers {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.wb-pagination a,
.wb-pagination span {
  border: 1px solid var(--border);
  border-radius: 9999px;
  min-width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
}

.wb-pagination .current {
  background: var(--brand-green);
  color: var(--accent-foreground);
  border-color: transparent;
}

.wb-search-results {
  list-style: none;
}

.wb-search-results a {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
}

.wb-search-results img {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 0.75rem;
}

.woocommerce-checkout .form-row {
  margin-bottom: 1rem;
}

.woocommerce-checkout .form-row label {
  color: #f4f7f2;
  margin-bottom: 0.4rem;
  display: inline-block;
}

.cart_totals h2,
#order_review_heading {
  font-family: var(--font-display);
}

.woocommerce-checkout-review-order-table,
.cart_totals table {
  width: 100%;
}

.wb-cart-count.hidden {
  display: none !important;
}

.woocommerce ul.products {
  display: contents;
}

.single-product .related,
.single-product .upsells {
  display: none;
}

.woocommerce-form-coupon-toggle .woocommerce-info,
.woocommerce-form-login-toggle .woocommerce-info {
  background: rgba(18, 22, 20, 0.85);
}

form.checkout_coupon,
form.woocommerce-form-login {
  border: 1px solid var(--border);
  background: rgba(18, 22, 20, 0.85);
  border-radius: 1.25rem;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

form.checkout_coupon[style*="display:none"],
form.checkout_coupon[style*="display: none"],
form.woocommerce-form-login[style*="display:none"],
form.woocommerce-form-login[style*="display: none"] {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
