/* ===== HikaShop product page: Datasheet/Downloads fix =====
   Product descriptions with no video still end with an orphan
   <legend>Product Video</legend>, which floats left at full width and
   squeezes the Datasheet/Downloads box to 0px. */

/* Hide the "Product Video" heading when the description has no video */
#hikashop_product_description_main:not(:has(iframe, video)) > legend:last-child {
  display: none;
}

/* Always start the downloads block on its own full-width row */
#hikashop_product_files_main {
  clear: both;
  width: 100%;
  margin-top: 30px;
}
#hikashop_product_files_main fieldset {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
#hikashop_product_files_main legend {
  float: none;
  width: 100%;
  margin-bottom: 14px;
}

/* Datasheet link styled as a clean download button */
#hikashop_product_files_main a.hikashop_product_file_link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  max-width: 100%;
  padding: 12px 22px;
  margin: 0 12px 12px 0;
  background: #00479d;
  color: #fff !important;
  border: 1px solid #00479d;
  border-radius: 6px;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
  text-decoration: none;
  transition: background .2s, color .2s;
}
#hikashop_product_files_main a.hikashop_product_file_link::before {
  content: "\2913";
  font-size: 1.1em;
}
#hikashop_product_files_main a.hikashop_product_file_link:hover,
#hikashop_product_files_main a.hikashop_product_file_link:focus {
  background: #fff;
  color: #00479d !important;
}
