/* ==========================================================================
   Ouidoo Gym — FastCart drawer

   The drawer opens from any page, so this sheet is the only one loaded site
   wide. Keep it to things that belong to the drawer itself; page styling goes
   in shop.css, product.css or login.css.

   Tokens need their fallbacks spelled out: filter.css declares the --acc-*
   palette and loads only on shop pages.
   ========================================================================== */

:root {
  --ogs-c-black: var(--acc-black, #000000);
  --ogs-c-green: var(--acc-green, #0f6a37);
  --ogs-c-grey: var(--acc-grey, #6b6b6b);
  --ogs-c-line: var(--acc-line, #e7e7e7);
  --ogs-c-red: #b3261e;
  --ogs-c-heading: var(--font-heading, "Montserrat", Helvetica, Arial, sans-serif);
  --ogs-c-body: var(--font-body, "Poppins", Helvetica, Arial, sans-serif);
}

/* ==========================================================================
   Notices
   WooCommerce prints these as a <ul> of messages. Inside the drawer they
   inherit its light-on-light treatment and end up effectively unreadable, so
   colour, weight and list chrome are all set here rather than left to
   whatever the drawer applies.
   ========================================================================== */

.wc-fast-cart .woocommerce-error,
.wc-fast-cart .woocommerce-message,
.wc-fast-cart .woocommerce-info,
.wc-fast-cart ul.woocommerce-error,
.wc-fast-cart ul.woocommerce-message,
.wc-fast-cart ul.woocommerce-info {
  margin: 0 0 4px !important;
  padding: 14px 16px !important;
  font-family: var(--ogs-c-body) !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  list-style: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* WooCommerce hangs an icon off the notice with a left offset for it */
.wc-fast-cart .woocommerce-error::before,
.wc-fast-cart .woocommerce-message::before,
.wc-fast-cart .woocommerce-info::before {
  content: none !important;
}

.wc-fast-cart .woocommerce-error li,
.wc-fast-cart .woocommerce-message li,
.wc-fast-cart .woocommerce-info li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.wc-fast-cart .woocommerce-error li + li,
.wc-fast-cart .woocommerce-message li + li,
.wc-fast-cart .woocommerce-info li + li {
  margin-top: 6px !important;
}

/* ---------- error ---------- */

.wc-fast-cart .woocommerce-error,
.wc-fast-cart ul.woocommerce-error {
  color: var(--ogs-c-red) !important;
  background: rgba(179, 38, 30, 0.07) !important;
}

.wc-fast-cart .woocommerce-error li,
.wc-fast-cart .woocommerce-error a {
  color: var(--ogs-c-red) !important;
}

/* ---------- message / info ---------- */

.wc-fast-cart .woocommerce-message,
.wc-fast-cart .woocommerce-info,
.wc-fast-cart ul.woocommerce-message,
.wc-fast-cart ul.woocommerce-info {
  color: var(--ogs-c-green) !important;
  background: rgba(15, 106, 55, 0.08) !important;
}

.wc-fast-cart .woocommerce-message li,
.wc-fast-cart .woocommerce-info li,
.wc-fast-cart .woocommerce-message a,
.wc-fast-cart .woocommerce-info a {
  color: var(--ogs-c-green) !important;
}

/* the product link inside a notice stays legible against the tint */
.wc-fast-cart .woocommerce-error a,
.wc-fast-cart .woocommerce-message a,
.wc-fast-cart .woocommerce-info a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wc-fast-cart .woocommerce-error a:hover,
.wc-fast-cart .woocommerce-message a:hover,
.wc-fast-cart .woocommerce-info a:hover {
  color: var(--ogs-c-black) !important;
}

/* the "Continue shopping" button WooCommerce can append is redundant here */
.wc-fast-cart .woocommerce-error .button,
.wc-fast-cart .woocommerce-message .button,
.wc-fast-cart .woocommerce-info .button {
  display: none !important;
}

/* ==========================================================================
   "View cart"
   WooCommerce injects this after a successful add. shop.css styles the copy
   inside a product card; this covers it anywhere else — the pricing page, a
   widget, a shortcode — since that sheet only loads on shop and product pages.
   ========================================================================== */

a.added_to_cart.wc-forward {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--ogs-c-heading);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ogs-c-black);
  transition: color 0.15s ease;
}

a.added_to_cart.wc-forward:hover {
  color: var(--ogs-c-green);
}

/* ==========================================================================
   SKU cart links
   State classes cart.js puts on a ?ogs-add-sku= link while it works.
   ========================================================================== */

a.ogs-adding {
  opacity: 0.6;
  pointer-events: none;
  cursor: progress;
}

a.ogs-added {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .wc-fast-cart .woocommerce-error,
  .wc-fast-cart .woocommerce-message,
  .wc-fast-cart .woocommerce-info {
    transition-duration: 0.01ms !important;
  }
}
