/*
 * livrare.gratis p08b catalog: base look of the package blocks. The design package (p15) restyles these classes:
 *   .lg-series (+ __title / __list / __item / __item--current)   "Variante" on the product page
 *   .lg-cart2 (+ __btn)                                           second add-to-cart button, product page, phones
 *   .lg-float (+ __btn / __btn--whatsapp / __icon)                floating WhatsApp button, phones and tablets
 *   .lg-category-banner                                           category banner (desktop / mobile)
 */
.lg-series {
  margin: 0 0 15px;
}

.lg-series__title {
  margin-bottom: 6px;
  font-weight: 700;
  text-transform: uppercase;
}

.lg-series__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.lg-series__item a {
  display: block;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: border-color .15s ease;
}

.lg-series__item a:hover,
.lg-series__item a:focus-visible,
.lg-series__item--current a {
  border-color: var(--lg-accent, rgb(239, 40, 9));
}

.lg-series__item img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.lg-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
}

.lg-float__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lg-whatsapp, #25d366);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transition: transform .15s ease, box-shadow .15s ease;
}

.lg-float__btn:hover,
.lg-float__btn:focus-visible {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

.lg-float__icon {
  display: block;
}

.lg-category-banner {
  margin: 0 0 15px;
}

.lg-category-banner img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* old product_page_2nd_add2cart.xml: only below 770px */
.lg-cart2 {
  margin: 0 0 12px;
}

.lg-cart2__btn {
  width: 100%;
  font-size: 125%;
}

@media (min-width: 770px) {
  .lg-cart2 {
    display: none;
  }
}

/* old whatsapp_button.xml: phones and tablets only */
@media (min-width: 1024px) {
  .lg-float {
    display: none;
  }
}

@media (max-width: 600px) {
  .lg-float {
    right: 14px;
    bottom: 14px;
  }

  /* above the Journal sticky add-to-cart bar of the product page */
  html.route-product-product .lg-float {
    bottom: 80px;
  }
}
