/* ==========================================================================
   Add to Cart Sticky Bar
   Shared feature enqueued on all single product pages. Built dynamically by
   sticky-add-to-cart-bar.js, so this stylesheet only needs to style the bar
   shell, the (up to two) cloned variation selects, the mirrored price, and
   the add-to-cart button. De-scoped from the legacy .ign014 VWO wrapper so it
   works on any product template.
   ========================================================================== */

.sticky-add-to-cart-bar {
  position: fixed;
  bottom: -500px;
  left: 0;
  width: 100%;
  background: #00549e;
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 16px;
  transition: bottom 0.4s ease;
  z-index: 9999;
}

.sticky-add-to-cart-bar-inner {
  max-width: 1260px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sticky-add-to-cart-bar-left {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(50% - 7.5px);
}

.sticky-add-to-cart-bar-left .variation {
  width: calc(50% - 7.5px);
}

.sticky-add-to-cart-bar-left .variation .styled-select::before,
.sticky-add-to-cart-bar-left .variation .styled-select::after {
  background-color: #00549e;
}

@media screen and (max-width: 991px) {
  .sticky-add-to-cart-bar-left .variation {
    width: 100%;
  }
  .sticky-add-to-cart-bar-left .variation .styled-select::before,
  .sticky-add-to-cart-bar-left .variation .styled-select::after {
    top: 16px;
  }
}

.sticky-add-to-cart-bar-left .variation select {
  margin-bottom: 0;
  padding: 14px 12px;
}

@media screen and (max-width: 991px) {
  .sticky-add-to-cart-bar-left .variation select {
    padding: 6px 10px;
  }
  .sticky-add-to-cart-bar-left {
    flex-direction: column;
    gap: 10px;
  }
}

/* When a product has no variations the left column is omitted (the bar gets a
   --no-variations modifier from the JS), so let the price + button span the bar. */
.sticky-add-to-cart-bar--no-variations .sticky-add-to-cart-bar-right {
  width: 100%;
}

.sticky-add-to-cart-bar-right {
  width: calc(50% - 15px);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

/* Show the MSRP struck through to the left of the current price (the inline
   legacy version hid this; we now want it visible when current < MSRP).
   Templates render the regular price either as .woocommerce-original-price or,
   once campaign-pricing.js hydrates a cached page, as <del>…</del> <ins>…</ins>
   — style both so the struck MSRP looks the same either way. Force #fff here so
   it overrides per-template price colors (e.g. At Home's grey #828282) that
   would otherwise bleed into the mirrored markup against the blue bar. */
.sticky-add-to-cart-bar-right .woocommerce-original-price,
.sticky-add-to-cart-bar-right del {
  color: #fff;
  text-decoration: line-through;
  opacity: 0.85;
  font-size: 0.7em;
  margin-right: 8px;
  font-weight: 400;
  display: inline;
}

.sticky-add-to-cart-bar-right ins {
  text-decoration: none;
}

/* The canonical price renders the current price in a red .on-sale span; in the
   bar it sits on the blue background, so force it white like the rest of the
   bar price. */
.sticky-add-to-cart-bar-right .on-sale {
  color: #fff;
  font-size: 25px;
  font-weight: 700;
}

@media screen and (max-width: 991px) {
  .sticky-add-to-cart-bar-right {
    flex-direction: column;
    align-items: flex-start;
  }
}

.sticky-add-to-cart-bar-btn {
  max-width: 190px;
  width: 100%;
  font-family: Lato;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
  background: #f58220;
  border: 0;
  border-radius: 10px;
  padding: 14px;
  color: #fff;
  cursor: pointer;
}

.sticky-add-to-cart-bar-btn:hover,
.sticky-add-to-cart-bar-btn:focus {
  text-decoration: underline;
}

@media screen and (max-width: 991px) {
  .sticky-add-to-cart-bar-btn {
    max-width: 100%;
    padding: 9px;
  }
}

.sticky-add-to-cart-bar-price-container {
  margin: 0;
}

.sticky-add-to-cart-bar-price-container .price,
.sticky-add-to-cart-bar-price-container .woocommerce-Price-amount {
  font-family: Lato;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
  color: #fff;
  font-size: 25px !important;
}

@media screen and (max-width: 991px) {
  .sticky-add-to-cart-bar-price-container .price,
  .sticky-add-to-cart-bar-price-container .woocommerce-Price-amount {
    font-size: 20px;
  }
  .sticky-add-to-cart-bar-price-container {
    margin-bottom: 10px;
    line-height: 0;
    width: 100%;
    text-align: center;
  }
}

.sticky-add-to-cart-bar.visible {
  bottom: 0;
}
