/* ============================================================
   WMS MALAYSIA 2026 — WooCommerce Cart/Checkout dark skin
   Match the new wmsmalaysia.com design (dark + electric blue).

   CARA PASANG (sekali sahaja, bukan edit content):
   WP Admin → Appearance → Customize → Additional CSS → paste semua ini → Publish.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ---------- page base ---------- */
body.woocommerce-cart,
body.woocommerce-checkout,
body.woocommerce-cart .site-content,
body.woocommerce-checkout .site-content,
body.woocommerce-cart #pxl-content-main,
body.woocommerce-checkout #pxl-content-main {
  background: #04070f !important;
  color: #eaf0fb !important;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif !important;
}

body.woocommerce-cart h1, body.woocommerce-checkout h1,
body.woocommerce-cart h2, body.woocommerce-checkout h2,
body.woocommerce-cart h3, body.woocommerce-checkout h3,
.wc-block-components-title,
.wc-block-components-checkout-step__title {
  color: #eaf0fb !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
}

body.woocommerce-cart a, body.woocommerce-checkout a {
  color: #3ed6ff;
}

/* ---------- text & labels ---------- */
.wc-block-components-checkout-step__description,
.wc-block-components-text-input label,
.wc-block-components-checkbox__label,
.wc-block-components-radio-control__label,
.wc-block-cart-item__product-metadata,
.wc-block-components-product-details,
.wc-block-components-order-summary-item__description,
.wc-block-components-totals-item__description {
  color: #8fa0bf !important;
}

.wc-block-cart-item__product-name,
.wc-block-components-order-summary-item__individual-prices,
.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value,
.wc-block-components-order-summary-item__total-price,
.wc-block-components-formatted-money-amount {
  color: #eaf0fb !important;
}

/* ---------- input fields ---------- */
.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-block-components-combobox .components-combobox-control__input,
.wc-block-components-select .components-custom-select-control__button,
.wc-block-components-form .wc-block-components-text-input input,
.wc-blocks-components-select .wc-blocks-components-select__container,
.wc-block-components-totals-coupon__input input {
  background: #0e1526 !important;
  border: 1px solid rgba(120, 160, 255, 0.2) !important;
  border-radius: 12px !important;
  color: #eaf0fb !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-text-input textarea:focus,
.wc-block-components-totals-coupon__input input:focus {
  border-color: #3ed6ff !important;
  box-shadow: 0 0 0 2px rgba(62, 214, 255, 0.25) !important;
}

.wc-blocks-components-select__label,
.wc-block-components-text-input.is-active label {
  color: #8fa0bf !important;
}

/* ---------- panels & cards ---------- */
.wc-block-components-sidebar .wc-block-components-panel,
.wc-block-components-order-summary,
.wc-block-components-totals-wrapper,
.wc-block-cart-items,
.wc-block-components-main .wc-block-components-checkout-step,
.wc-block-components-radio-control-accordion-option,
.wc-block-components-payment-method-label {
  background: transparent !important;
  color: #eaf0fb !important;
}

.wc-block-components-sidebar,
.wc-block-cart__sidebar {
  background: linear-gradient(165deg, rgba(20, 30, 55, 0.85), rgba(8, 12, 24, 0.92)) !important;
  border: 1px solid rgba(120, 160, 255, 0.14) !important;
  border-radius: 20px !important;
  padding: 24px !important;
}

.wc-block-cart-items th,
.wc-block-cart-items td,
.wc-block-components-totals-wrapper,
.wc-block-components-checkout-step {
  border-color: rgba(120, 160, 255, 0.14) !important;
}

/* ---------- buttons ---------- */
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
button[name="add-to-cart"],
.single_add_to_cart_button {
  background: linear-gradient(96deg, #2f7dff, #21b6f0) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 999px !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 32px rgba(47, 125, 255, 0.35) !important;
  transition: filter 0.3s ease, transform 0.3s ease !important;
}

.wc-block-components-button:not(.is-link):hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  filter: brightness(1.12) !important;
  transform: translateY(-2px) !important;
}

.wc-block-components-totals-coupon__button,
.wc-block-components-button.is-link {
  color: #3ed6ff !important;
  background: transparent !important;
}

/* ---------- quantity, radio, checkbox ---------- */
.wc-block-components-quantity-selector {
  background: #0e1526 !important;
  border: 1px solid rgba(120, 160, 255, 0.2) !important;
  border-radius: 10px !important;
}

.wc-block-components-quantity-selector input,
.wc-block-components-quantity-selector button {
  background: transparent !important;
  color: #eaf0fb !important;
}

.wc-block-components-radio-control__input,
.wc-block-components-checkbox__input[type="checkbox"] {
  accent-color: #2f7dff !important;
  background: #0e1526 !important;
  border-color: rgba(120, 160, 255, 0.35) !important;
}

.wc-block-components-checkbox__input[type="checkbox"]:checked {
  background: #2f7dff !important;
}

/* ---------- payment methods accordion ---------- */
.wc-block-components-radio-control-accordion-option,
.wc-block-components-payment-method-label__container {
  background: #0e1526 !important;
  border-color: rgba(120, 160, 255, 0.14) !important;
  border-radius: 12px !important;
}

.wc-block-components-radio-control-accordion-content {
  background: rgba(14, 21, 38, 0.6) !important;
  color: #8fa0bf !important;
}

/* ---------- notices ---------- */
.wc-block-components-notice-banner {
  border-radius: 14px !important;
}

.wc-block-components-notice-banner.is-info {
  background: rgba(47, 125, 255, 0.12) !important;
  border-color: rgba(62, 214, 255, 0.4) !important;
  color: #eaf0fb !important;
}

/* ---------- theme header/footer on shop pages ---------- */
body.woocommerce-cart header .pxl-header-main,
body.woocommerce-checkout header .pxl-header-main,
body.woocommerce-cart .pxl-page-title-wrap,
body.woocommerce-checkout .pxl-page-title-wrap {
  background: #0a101e !important;
}

body.woocommerce-cart .pxl-page-title-wrap *,
body.woocommerce-checkout .pxl-page-title-wrap * {
  color: #eaf0fb !important;
}

/* express payment separator text */
.wc-block-components-express-payment-continue-rule {
  color: #8fa0bf !important;
}
.wc-block-components-express-payment-continue-rule::before,
.wc-block-components-express-payment-continue-rule::after {
  border-color: rgba(120, 160, 255, 0.2) !important;
}

/* ---------- empty cart: hide "New in store" product suggestions ----------
   Legacy full-price products (RM2,700 / RM3,500 without the early-bird sale)
   were surfacing here and contradicting the advertised pricing. */
.wp-block-woocommerce-empty-cart-block .wp-block-heading:not(.wc-block-cart__empty-cart__title),
.wp-block-woocommerce-empty-cart-block .wc-block-grid,
.wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-product-new {
  display: none !important;
}
