/*
 Theme Name: Hello Biz Child
 Template: hello-biz
 Version: 1.0
*/


/* =========================================================
   REHAB CART / ACCESS PAGE THEME
   Covers:
   - Real WooCommerce cart pages: body.woocommerce-cart
   - Elementor Woo Cart widget
   - WooCommerce Cart block
   ========================================================= */

body.woocommerce-cart,
body.page-id-4556 {
  --rehab-black: #050505;
  --rehab-panel: #111111;
  --rehab-panel-2: #181818;
  --rehab-border: rgba(255, 45, 170, 0.38);
  --rehab-cream: #f7f1e8;
  --rehab-muted: #cfc3b4;
  --rehab-pink: #ff2daa;
  --rehab-purple: #8f4dff;
  --rehab-gold: #f5b84b;
  --rehab-blue: #20e0d0;

  background:
    radial-gradient(circle at top left, rgba(255, 45, 170, 0.2), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(143, 77, 255, 0.18), transparent 30rem),
    var(--rehab-black) !important;
  color: var(--rehab-cream) !important;
}

/* Main page spacing */
body.woocommerce-cart .elementor,
body.page-id-4556 .elementor {
  color: var(--rehab-cream) !important;
}

body.woocommerce-cart .elementor-widget-container > .woocommerce,
body.woocommerce-cart .elementor-widget-woocommerce-cart,
body.woocommerce-cart .wc-block-cart,
body .tml-login {
  width: min(1120px, calc(100% - 32px));
  margin: clamp(28px, 5vw, 80px) auto;
}

/* Main cards / panels */
body.woocommerce-cart .e-cart-section,
body.woocommerce-cart table.shop_table,
body.woocommerce-cart .cart_totals,
body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar,
body .tml-login {
  background:
    linear-gradient(145deg, rgba(24, 24, 24, 0.96), rgba(10, 10, 10, 0.96)) !important;
  border: 1px solid var(--rehab-border) !important;
  border-radius: 22px !important;
  box-shadow:
    0 0 0 1px rgba(143, 77, 255, 0.18),
    0 24px 70px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(255, 45, 170, 0.12);
  color: var(--rehab-cream) !important;
}

/* Elementor cart sections */
body.woocommerce-cart .e-cart__container {
  gap: 24px !important;
}

body.woocommerce-cart .e-cart-section {
  padding: clamp(18px, 3vw, 32px) !important;
}

/* Headings */
body.woocommerce-cart h1,
body.woocommerce-cart h2,
body.woocommerce-cart h3,
body.woocommerce-cart .cart_totals h2,
body.woocommerce-cart .wc-block-cart__totals-title,
body .tml-login::before {
  font-family: "Bebas Neue", Impact, sans-serif !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rehab-gold) !important;
  line-height: 1;
}

body .tml-login::before {
  content: "Account Access";
  display: block;
  margin-bottom: 22px;
  font-size: clamp(2rem, 5vw, 4rem);
  text-align: center;
}

/* Links */
body.woocommerce-cart a,
body.page-id-4556 a {
  color: var(--rehab-pink) !important;
}

body.woocommerce-cart a:hover,
body.page-id-4556 a:hover {
  color: var(--rehab-gold) !important;
}

/* Cart table */
body.woocommerce-cart table.shop_table {
  overflow: hidden;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

body.woocommerce-cart table.shop_table th {
  background: linear-gradient(90deg, rgba(255, 45, 170, 0.24), rgba(143, 77, 255, 0.22)) !important;
  color: var(--rehab-gold) !important;
  border: 0 !important;
  padding: 18px 16px !important;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.woocommerce-cart table.shop_table td {
  color: var(--rehab-cream) !important;
  border-color: rgba(247, 241, 232, 0.14) !important;
  padding: 18px 16px !important;
  vertical-align: middle;
}

body.woocommerce-cart .product-name a {
  color: #ffffff !important;
  font-weight: 800;
}

body.woocommerce-cart .product-price,
body.woocommerce-cart .product-subtotal,
body.woocommerce-cart .woocommerce-Price-amount {
  color: var(--rehab-cream) !important;
  font-weight: 800;
}

body.woocommerce-cart .product-thumbnail img {
  border-radius: 14px;
  border: 1px solid rgba(245, 184, 75, 0.35);
  background: #000;
}

/* Remove item button */
body.woocommerce-cart a.remove {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px !important;
  height: 32px !important;
  border-radius: 999px !important;
  background: rgba(255, 45, 170, 0.16) !important;
  color: var(--rehab-pink) !important;
  border: 1px solid rgba(255, 45, 170, 0.4);
  font-size: 22px !important;
  line-height: 1 !important;
}

body.woocommerce-cart a.remove:hover {
  background: var(--rehab-pink) !important;
  color: #050505 !important;
}

/* Quantity, coupon, form fields */
body.woocommerce-cart input.input-text,
body.woocommerce-cart input.qty,
body.woocommerce-cart select,
body.woocommerce-cart textarea,
body.page-id-4556 .tml-field,
body.page-id-4556 #jetpack_protect_answer {
  background: #050505 !important;
  color: var(--rehab-cream) !important;
  border: 1px solid rgba(247, 241, 232, 0.24) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  min-height: 46px;
  box-shadow: none !important;
}

body.woocommerce-cart input.input-text:focus,
body.woocommerce-cart input.qty:focus,
body.page-id-4556 .tml-field:focus,
body.page-id-4556 #jetpack_protect_answer:focus {
  outline: none !important;
  border-color: var(--rehab-pink) !important;
  box-shadow: 0 0 0 3px rgba(255, 45, 170, 0.22) !important;
}

body.woocommerce-cart .coupon {
  display: flex;
  gap: 12px;
  align-items: center;
}

body.woocommerce-cart .coupon input.input-text {
  min-width: 220px;
}

/* Cart totals */
body.woocommerce-cart .cart-collaterals .cart_totals {
  padding: clamp(18px, 3vw, 32px) !important;
}

body.woocommerce-cart .cart_totals table {
  background: transparent !important;
  border: 0 !important;
}

body.woocommerce-cart .cart_totals th,
body.woocommerce-cart .cart_totals td {
  background: transparent !important;
  color: var(--rehab-cream) !important;
  border-color: rgba(247, 241, 232, 0.14) !important;
}

body.woocommerce-cart .order-total th,
body.woocommerce-cart .order-total td,
body.woocommerce-cart .order-total .woocommerce-Price-amount {
  color: var(--rehab-gold) !important;
  font-size: 1.15rem;
}

/* Buttons */
body.woocommerce-cart a.button,
body.woocommerce-cart button.button,
body.woocommerce-cart input.button,
body.woocommerce-cart .checkout-button,
body.woocommerce-cart .wc-block-components-button,
body.page-id-4556 .tml-button {
  background: linear-gradient(135deg, var(--rehab-pink), var(--rehab-purple)) !important;
  color: #050505 !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 14px 24px !important;
  font-family: "Bebas Neue", Impact, sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1 !important;
  text-align: center;
  box-shadow: 0 10px 28px rgba(255, 45, 170, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

body.woocommerce-cart a.button:hover,
body.woocommerce-cart button.button:hover,
body.woocommerce-cart input.button:hover,
body.woocommerce-cart .checkout-button:hover,
body.woocommerce-cart .wc-block-components-button:hover,
body.page-id-4556 .tml-button:hover {
  color: #050505 !important;
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 14px 34px rgba(255, 45, 170, 0.34);
}

body.woocommerce-cart button.button:disabled,
body.woocommerce-cart button.button:disabled[disabled] {
  background: #2a2a2a !important;
  color: rgba(247, 241, 232, 0.55) !important;
  box-shadow: none !important;
}

/* Notices */
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-error,
body.woocommerce-cart .cart-empty {
  background: rgba(17, 17, 17, 0.96) !important;
  color: var(--rehab-cream) !important;
  border-top: 0 !important;
  border-left: 5px solid var(--rehab-blue) !important;
  border-radius: 16px !important;
  padding: 18px 22px !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

body.woocommerce-cart .woocommerce-error {
  border-left-color: var(--rehab-pink) !important;
}

body.woocommerce-cart .woocommerce-message::before,
body.woocommerce-cart .woocommerce-info::before {
  color: var(--rehab-blue) !important;
}

body.woocommerce-cart .woocommerce-error::before {
  color: var(--rehab-pink) !important;
}

/* Theme My Login / Access form */
body .tml-login {
  max-width: 560px;
  padding: clamp(22px, 4vw, 42px) !important;
}

body.page-id-4556 .tml-field-wrap {
  margin-bottom: 18px;
}

body.page-id-4556 .tml-label {
  display: block;
  margin-bottom: 8px;
  color: var(--rehab-gold) !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.page-id-4556 .tml-field {
  width: 100%;
}

body.page-id-4556 .tml-rememberme-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.page-id-4556 .tml-checkbox {
  accent-color: var(--rehab-pink);
}

body.page-id-4556 .tml-submit-wrap {
  margin-top: 22px;
}

body.page-id-4556 .tml-button {
  width: 100%;
}

body.page-id-4556 .tml-links {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  text-align: center;
}

/* WooCommerce Cart Block support */
body.woocommerce-cart .wc-block-cart {
  color: var(--rehab-cream) !important;
}

body.woocommerce-cart .wc-block-components-product-name,
body.woocommerce-cart .wc-block-components-product-name a {
  color: #ffffff !important;
  font-weight: 800;
}

body.woocommerce-cart .wc-block-cart-items th,
body.woocommerce-cart .wc-block-cart-items td,
body.woocommerce-cart .wc-block-components-totals-wrapper {
  border-color: rgba(247, 241, 232, 0.16) !important;
  color: var(--rehab-cream) !important;
}

body.woocommerce-cart .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-components-totals-item__value {
  color: var(--rehab-cream) !important;
}

body.woocommerce-cart .wc-block-components-order-summary-item__quantity {
  background: var(--rehab-pink) !important;
  color: #050505 !important;
  border: 0 !important;
}

/* Elementor mini-cart drawer, in case the cart icon popup is also white-on-white */
body .elementor-menu-cart__container,
body .elementor-menu-cart__main {
  background: #050505 !important;
  color: var(--rehab-cream, #f7f1e8) !important;
}

body .elementor-menu-cart__product-name a,
body .elementor-menu-cart__product-price,
body .elementor-menu-cart__subtotal,
body .elementor-menu-cart__subtotal strong {
  color: var(--rehab-cream, #f7f1e8) !important;
}

body .elementor-menu-cart__footer-buttons .elementor-button {
  background: linear-gradient(135deg, #ff2daa, #8f4dff) !important;
  color: #050505 !important;
  border-radius: 999px !important;
  font-family: "Bebas Neue", Impact, sans-serif !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Mobile cleanup */
@media (max-width: 768px) {
  body.woocommerce-cart .elementor-widget-container > .woocommerce,
  body.woocommerce-cart .elementor-widget-woocommerce-cart,
  body.woocommerce-cart .wc-block-cart,
  body.tml-login {
    width: min(100% - 20px, 1120px);
    margin: 24px auto;
  }

  body.woocommerce-cart .coupon {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.woocommerce-cart .coupon input.input-text,
  body.woocommerce-cart .coupon button.button,
  body.woocommerce-cart .actions button.button {
    width: 100% !important;
  }

  body.woocommerce-cart table.shop_table td {
    padding: 14px 12px !important;
  }

  body.woocommerce-cart .checkout-button {
    width: 100%;
  }
}

/* =========================================================
   CART HIGH-DEMAND / HASHBAR TIMER NOTICE
   No :has(), no RPAREN issues
   ========================================================= */

/* Main banner box */
body.woocommerce-cart .hashbar-announcement-bar-wrapper,
body.woocommerce-cart .hashbar-announcement-bar-wrapper > div,
body.woocommerce-cart .hashbar-announcement-bar,
body.woocommerce-cart .hthb-notification,
body.woocommerce-cart .hthb-countdown {
  background: #13081d !important;
  color: #f7f1e8 !important;
  border: 1px solid rgba(255, 45, 170, 0.65) !important;
  border-left: 6px solid #ff2daa !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45) !important;
}

/* Keep the banner inside the cart layout */
body.woocommerce-cart .hashbar-announcement-bar-wrapper {
  width: 100% !important;
  margin: 0 0 24px 0 !important;
  padding: 0 !important;
  position: relative !important;
  overflow: visible !important;
}

/* Content spacing — creates room for timer on the left */
body.woocommerce-cart .hashbar-announcement-bar,
body.woocommerce-cart .hashbar-announcement-bar-wrapper > div,
body.woocommerce-cart .hthb-notification-content,
body.woocommerce-cart .hthb-notification-content.ht-notification-text {
  position: relative !important;
  min-height: 78px !important;
  padding: 18px 24px 18px 170px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 2px !important;
  line-height: 1.15 !important;
  text-align: left !important;
}

/* Force all banner text readable */
body.woocommerce-cart .hashbar-announcement-bar-wrapper,
body.woocommerce-cart .hashbar-announcement-bar-wrapper *,
body.woocommerce-cart .hthb-notification,
body.woocommerce-cart .hthb-notification *,
body.woocommerce-cart .hthb-countdown,
body.woocommerce-cart .hthb-countdown * {
  color: #f7f1e8 !important;
  text-shadow: none !important;
}

/* Text styling */
body.woocommerce-cart .hashbar-announcement-content,
body.woocommerce-cart .hthb-notification-content p,
body.woocommerce-cart .hthb-countdown-before,
body.woocommerce-cart .hthb-countdown-after {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  margin: 0 !important;
}

/* Timer box: far left, separate from the text */
body.woocommerce-cart .hashbar-countdown-timer,
body.woocommerce-cart .hthb-countdown-wrap,
body.woocommerce-cart .hthb-single-countdown,
body.woocommerce-cart .hthb-single-countdown__time {
  position: absolute !important;
  left: 28px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 100px !important;
  min-height: 46px !important;
  padding: 10px 16px !important;
  background: #050505 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 45, 170, 0.85) !important;
  border-radius: 12px !important;
  box-shadow: 0 0 18px rgba(255, 45, 170, 0.25) !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  z-index: 5 !important;
}

/* Prevent old HashBar countdown boxes from stacking weirdly */
body.woocommerce-cart .hthb-countdown-section {
  display: block !important;
  position: static !important;
}

body.woocommerce-cart .hthb-countdown-wrap .hthb-single-countdown {
  margin: 0 !important;
}

/* If the timer uses the newer simple HashBar class */
body.woocommerce-cart .hashbar-countdown-timer.countdown-simple,
body.woocommerce-cart .hashbar-countdown-timer.countdown-digital {
  font-family: monospace !important;
  letter-spacing: 0.04em !important;
}

/* Mobile */
@media (max-width: 600px) {
  body.woocommerce-cart .hashbar-announcement-bar,
  body.woocommerce-cart .hashbar-announcement-bar-wrapper > div,
  body.woocommerce-cart .hthb-notification-content,
  body.woocommerce-cart .hthb-notification-content.ht-notification-text {
    padding: 82px 18px 18px 18px !important;
    align-items: center !important;
    text-align: center !important;
  }

  body.woocommerce-cart .hashbar-countdown-timer,
  body.woocommerce-cart .hthb-countdown-wrap,
  body.woocommerce-cart .hthb-single-countdown,
  body.woocommerce-cart .hthb-single-countdown__time {
    left: 50% !important;
    top: 18px !important;
    transform: translateX(-50%) !important;
  }
}