/* GH Product Action Line - product page action alignment */
/* When disabled for a device, JavaScript restores every action to its original location. */

body#product .gh-pal-line {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: var(--gh-pal-max-width, none) !important;
  margin: 18px auto 22px auto !important;
  padding: 0 !important;
  gap: var(--gh-pal-gap, 12px) !important;
  box-sizing: border-box !important;
  clear: both !important;
  float: none !important;
  text-align: center !important;
}

body#product .gh-pal-line > * {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
  flex: 0 0 auto !important;
}

body#product .gh-pal-line .social-sharing,
body#product .gh-pal-line .js-social-sharing {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: auto !important;
  margin: 0 !important;
  float: none !important;
}

body#product .gh-pal-line .social-sharing ul,
body#product .gh-pal-line .js-social-sharing ul {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 6px !important;
}

body#product .gh-pal-line .social-sharing li,
body#product .gh-pal-line .js-social-sharing li {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body#product .gh-pal-line a,
body#product .gh-pal-line button,
body#product .gh-pal-line span {
  white-space: nowrap !important;
}

body#product .gh-pal-line .btn,
body#product .gh-pal-line button,
body#product .gh-pal-line a.btn {
  margin: 0 !important;
}

@media (max-width: 767px) {
  body#product .gh-pal-line {
    justify-content: center !important;
    gap: max(8px, var(--gh-pal-gap, 12px)) !important;
    margin: 14px auto 18px auto !important;
  }
}

/* Optional, desktop-only price layout. No DOM relocation. */
@media (min-width: 1200px) {
  html.gh-pal-price-compact-enabled body#product .product-prices {
    display: flex;
    flex-flow: row wrap;
    align-items: baseline;
    column-gap: 12px;
    row-gap: 2px;
  }

  html.gh-pal-price-compact-enabled body#product .product-prices > .product-discount,
  html.gh-pal-price-compact-enabled body#product .product-prices > .product-price {
    display: inline-flex;
    align-items: baseline;
    width: auto;
    margin: 0;
    float: none;
  }

  html.gh-pal-price-compact-enabled body#product .product-prices .product-discount .regular-price,
  html.gh-pal-price-compact-enabled body#product .product-prices .regular-price {
    font-size: 16px;
    line-height: 1.25;
  }

  html.gh-pal-price-compact-enabled body#product .product-prices .current-price {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 2px;
    margin: 0;
  }

  html.gh-pal-price-compact-enabled body#product .product-prices .current-price > .price,
  html.gh-pal-price-compact-enabled body#product .product-prices .current-price > span.price {
    font-size: 32px;
    line-height: 1.15;
  }

  html.gh-pal-price-compact-enabled body#product .product-prices .current-price .discount,
  html.gh-pal-price-compact-enabled body#product .product-prices .current-price .discount-percentage,
  html.gh-pal-price-compact-enabled body#product .product-prices .current-price .discount-amount {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    padding: 3px 7px;
  }

  html.gh-pal-price-compact-enabled body#product .product-prices > .tax-shipping-delivery-label {
    flex: 0 0 100%;
    margin: 4px 0 0;
  }
}

/* v1.1.7: Optional single full-width information bar after the range panel.
   Only active when the explicit admin switch is on and the JS found both modules. */
@media (min-width: 1200px) {
  body#product .gh-pal-line.gh-pal-integrated {
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px 20px !important;
    padding: 12px 16px !important;
    border: 1px solid #dbe2df;
    border-radius: 14px;
    background: #fff;
    box-sizing: border-box;
  }
  body#product .gh-pal-integrated .gh-pal-logistics-group {
    flex: 1 1 660px;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
  }
  body#product .gh-pal-integrated .gh-product-info-badges,
  body#product .gh-pal-integrated .gh-product-info-shipping {
    display: flex !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    max-width: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  body#product .gh-pal-integrated .ghstocks-product-row {width:auto!important;min-width:0!important;margin:0!important;}
  body#product .gh-pal-integrated .ghstocks-badge:not(.ghstocks-compact) {min-width:165px!important;width:auto!important;max-width:none!important;margin:0!important;}
  body#product .gh-pal-integrated .ghstocks-shipping-info {
    display: flex !important;
    width: auto !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px 16px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body#product .gh-pal-integrated .ghstocks-shipping-row {
    display: inline-flex !important;
    gap: 5px;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
  }
  body#product .gh-pal-integrated .ghstocks-more-link {white-space:nowrap;}
}

/* v1.1.8 GH Product Combinaciones exact-anchor full-width area */
@media (min-width:1200px) {
 body#product .gh-pal-line.gh-pal-integrated {max-width:none!important;display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:12px 20px!important;margin-top:8px!important;margin-bottom:14px!important;}
 body#product .gh-pal-integrated .gh-pal-logistics-group {display:flex!important;flex:1 1 100%!important;align-items:center!important;gap:12px 20px!important;flex-wrap:wrap!important;}
 body#product .gh-pal-integrated .ghstocks-product-row {display:inline-flex!important;align-items:center!important;gap:12px!important;flex:0 0 auto!important;width:auto!important;max-width:100%!important;}
 body#product .gh-pal-integrated .ghstocks-shipping-info {display:flex!important;flex:1 1 650px!important;align-items:center!important;justify-content:flex-start!important;gap:8px 18px!important;flex-wrap:wrap!important;width:auto!important;max-width:100%!important;}
 body#product .gh-pal-integrated .ghstocks-shipping-row {margin:0!important;}
 body#product .gh-pal-integrated .gh-pal-extras {display:flex!important;flex:1 1 100%!important;align-items:flex-start!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:14px!important;}
 body#product .gh-pal-integrated .gh-pal-extras > * {max-width:100%;min-width:0;}
}

/* v1.1.10: allow JS to match the width of the range panel, even inside a right column. */
@media (min-width: 1200px) {
  body#product .gh-pal-line.gh-pal-integrated {
    box-sizing: border-box !important;
    min-width: 0 !important;
    clear: both;
  }
}

/* v1.1.12 - Place family after the complete image+purchase columns, never over thumbnails. */
@media (min-width: 1200px) {
  body#product .ghpc-wrap.gh-pal-family-wide {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    clear: both !important;
    float: none !important;
    box-sizing: border-box !important;
  }
  body#product .gh-pal-integrated > .gh-pal-moved:not(.gh-pal-logistics-group) {
    align-self: center !important;
  }
}
