body#product #am-site .am-content-container {
  display: flow-root;
}

body#product #am-site #content-wrapper {
  float: none !important;
  width: 100% !important;
}

body#product #am-site #footer {
  position: relative;
  z-index: 0;
  clear: both;
}

#am-site .am-product-long-description iframe[src*="youtube"] {
  display: none;
}

#am-site .am-video-link {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 118px;
  margin: 0 0 34px;
  padding: 24px 26px;
  border: 1px solid #496f5d;
  background: #173f2f;
  color: #fff !important;
  text-decoration: none !important;
}

#am-site .am-video-link:hover {
  background: #0f3425;
}

#am-site .am-video-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  font-size: 22px;
}

#am-site .am-video-link-copy strong,
#am-site .am-video-link-copy small {
  display: block;
}

#am-site .am-video-link-copy strong {
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 400;
}

#am-site .am-video-link-copy small {
  margin-top: 6px;
  color: #d7e4dc;
  font-size: 13px;
}

#am-site .am-video-link-arrow {
  font-size: 24px;
}

/* Keep PrestaShop's TouchSpin control and the cart button on one clean baseline. */
#am-site .am-product-actions .qty .bootstrap-touchspin {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 30px;
  width: 100%;
  height: 54px;
  overflow: hidden;
  border: 1px solid var(--am-line);
  border-radius: 3px;
  background: #fff;
}

#am-site .am-product-actions #quantity_wanted {
  position: static !important;
  z-index: auto !important;
  float: none !important;
  grid-column: 1;
  width: 100% !important;
  height: 52px !important;
  margin: 0 !important;
  padding: 0 6px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  line-height: 52px !important;
  appearance: textfield;
}

#am-site .am-product-actions .qty .input-group-btn-vertical {
  position: static !important;
  z-index: auto !important;
  grid-column: 2;
  display: grid !important;
  grid-template-rows: 1fr 1fr;
  width: 30px !important;
  height: 52px !important;
}

#am-site .am-product-actions .qty .btn-touchspin {
  position: static !important;
  display: grid !important;
  width: 30px !important;
  height: 26px !important;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  place-items: center;
  border: 0 !important;
  border-left: 1px solid var(--am-line) !important;
  border-radius: 0 !important;
  background: #f4f7f3 !important;
  box-shadow: none !important;
  line-height: 1 !important;
}

#am-site .am-product-actions .qty .bootstrap-touchspin-up {
  border-bottom: 1px solid var(--am-line) !important;
}

#am-site .am-product-actions .qty .btn-touchspin .material-icons {
  position: static !important;
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 14px !important;
}

#am-site .am-product-actions .add-to-cart {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px !important;
  line-height: 1.2 !important;
}

#am-site .am-product-actions .add-to-cart .material-icons {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin: 0 !important;
  font-size: 20px !important;
  line-height: 20px !important;
}

/* PrestaShop wraps each thumbnail in <picture>; keep the mobile strip compact. */
@media(max-width:760px) {
  #am-site .am-product-gallery .images-container .js-qv-mask {
    width: 100%;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }

  #am-site .am-product-gallery .product-images {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0 0 6px;
  }

  #am-site .am-product-gallery .product-images > li.thumb-container {
    flex: 0 0 64px;
    width: 64px;
  }

  #am-site .am-product-gallery .thumb-container picture {
    display: block;
  }

  #am-site .am-product-gallery .thumb-container .thumb {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0;
    object-fit: contain;
    border: 1px solid var(--am-line);
  }

  #am-site .am-product-gallery .thumb.selected,
  #am-site .am-product-gallery .thumb:hover {
    border: 2px solid var(--am-green);
  }
}

@media(max-width:540px) {
  #am-site .am-video-link {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    padding: 20px;
  }

  #am-site .am-video-link-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  #am-site .am-video-link-copy strong {
    font-size: 20px;
  }

  #am-site .am-video-link-arrow {
    display: none;
  }
}
