/* =============================================================================
 * ibisfab - footer
 *
 * Mined from assets/css/styles-bk.css (the untouched Ecomus sheet) and cut down
 * to the default footer only. The Ecomus footer colour skins
 * (.background-black, .bg_green-*, .has-border, .has-all-border,
 * .border-container) were left in styles-bk.css - pull one across from there if
 * the design ever calls for it.
 *
 * Shared utilities and the social / icon-button styles live in header.css,
 * which is enqueued first. All @media rules are collected in the last section,
 * the way the original sheet does it.
 *
 * Markup: template-parts/footer/*.php
 * ========================================================================== */

/* ==========================================================================
 * 01. Footer shell
 * ========================================================================== */

/*------------ footer ---------------- */
.footer .footer-infor .footer-logo a>img {
  width: 100%;
  max-width: 136px;
  object-fit: cover;
  object-position: center center;
}

.footer .footer-wrap .footer-body {
  padding-top: 50px;
  padding-bottom: 30px;
  position: relative;
}

.footer .footer-wrap .footer-body::before {
  position: absolute;
  content: "";
  top: 0;
  left: 50%;
  background-color: var(--line);
  height: 1px;
  width: 100%;
  max-width: 1440px;
  transform: translateX(-50%);
}

.footer .footer-wrap .footer-bottom .footer-bottom-wrap {
  padding-top: 21px;
  border-top: 1px solid var(--line);
  padding-bottom: 20px;
}

.footer .footer-wrap .footer-bottom .footer-bottom-wrap .footer-menu_item {
  color: rgb(84, 84, 84);
}

.footer p.legal-ctn {
    margin-bottom: 16px;
	margin-top: -15px;
}

/* ==========================================================================
 * 02. Logo, address and contact block
 * ========================================================================== */

.footer .footer-logo {
  margin-bottom: 30px;
}

.footer .footer-infor ul {
  margin-bottom: 15px;
}

.footer .footer-infor ul li p {
  line-height: 30px;
}

.footer .footer-infor ul li p a {
  color: rgb(84, 84, 84);
  font-weight: 700;
}

.footer .footer-infor>a {
  margin-bottom: 28px;
}

/* ==========================================================================
 * 03. Column headings (mobile accordion)
 * ========================================================================== */

.footer .footer-heading {
  margin-bottom: 25px;
}

.footer .footer-heading h6 {
  font-size: 18px;
  font-weight: 500;
  line-height: 18px;
}

.footer .footer-heading-moblie {
  display: none;
}

/* ==========================================================================
 * 04. Column link lists
 * ========================================================================== */

.footer .footer-menu_item {
  line-height: 30px;
}

.footer ul.footer-menu-list li a:hover {
  color: var(--primary);
}

/* ==========================================================================
 * 05. Newsletter form
 * ========================================================================== */

.footer .footer-newsletter form {
  margin-top: 27px;
  margin-bottom: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: end;
}

.footer .footer-newsletter form input {
  height: 55px;
  padding-right: 143px;
}

.footer .footer-newsletter form .button-submit {
  position: absolute;
  top: 7px;
  right: 8px;
}

.footer .footer-newsletter form .button-submit button {
  height: 41px;
  padding-top: 0;
  padding-bottom: 0;
}

/* --------------------------------------------------------------------------
 * Gravity Forms signup, restyled to the Ecomus footer form.
 *
 * The form is whatever Gravity Form is set in Customizer > Header & Footer >
 * Newsletter, so the theme cannot control its markup - it is reshaped here
 * instead. Ecomus puts the button inside the field, which is why the form is
 * a positioning context and .gform_footer is pulled into the input's padding.
 *
 * Label and required legend are hidden rather than removed: screen readers
 * still get them, the placeholder carries the visible prompt.
 * -------------------------------------------------------------------------- */

/*
 * Gravity Forms 2.9 (the "orbital" theme) paints its controls from CSS custom
 * properties inside a cascade layer, so a plain declaration here - however
 * specific - loses to it. Retargeting the variables is the supported way in
 * and works whatever the layer order. The declarations further down stay as
 * the fallback for the older gravity-theme markup.
 */
.footer-newsletter .gform_wrapper {
  margin: 0;

  /* Button */
  --gf-ctrl-btn-bg-color-primary: var(--main);
  --gf-ctrl-btn-bg-color-hover-primary: var(--main);
  --gf-ctrl-btn-bg-color-focus-primary: var(--main);
  --gf-ctrl-btn-border-color-primary: var(--main);
  --gf-ctrl-btn-border-color-hover-primary: var(--main);
  --gf-ctrl-btn-color-primary: var(--white);
  --gf-ctrl-btn-size-height-primary-md: 40px;
  --gf-ctrl-btn-radius: 8px;
  --gf-color-primary: var(--main);
  --gf-color-primary-rgb: 0, 0, 0;
  --gf-color-primary-darker: var(--main);
  --gf-color-primary-lighter: var(--main);

  /* Field */
  --gf-ctrl-border-color: var(--line);
  --gf-ctrl-border-color-focus: var(--main);
  --gf-ctrl-radius: 3px;
  --gf-ctrl-size-height-md: 50px;
  --gf-ctrl-bg-color: transparent;
  --gf-ctrl-color: var(--main);
  --gf-form-gap-y: 0px;
}

.footer-newsletter .gform_wrapper form {
  position: relative;
}

.footer-newsletter .gform_wrapper .gform_fields {
  grid-row-gap: 0;
}

.footer-newsletter .gfield_label,
.footer-newsletter .gform_required_legend,
.footer-newsletter .gfield_required {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.footer-newsletter .gform_wrapper.gform-theme.gform-theme--framework input[type="email"],
.footer-newsletter .gform_wrapper.gform-theme.gform-theme--framework input[type="text"],
.footer-newsletter .gform_wrapper input[type="email"],
.footer-newsletter .gform_wrapper input[type="text"] {
  width: 100%;
  height: 50px;
  padding: 0 128px 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: transparent;
  font-size: 14px;
  color: var(--main);
}

.footer-newsletter .gform_wrapper.gform-theme.gform-theme--framework input[type="email"]:focus,
.footer-newsletter .gform_wrapper input[type="email"]:focus {
  border-color: var(--main);
  outline: none;
}

/* Centred on the field rather than pinned to a fixed offset, so the button
   stays centred whatever height Gravity Forms gives it. */
.footer-newsletter .gform_wrapper .gform_footer {
  position: absolute;
  top: auto;
  bottom: 6px;
  /* transform: translateY(-50%); */
  right: 6px;
  width: auto;
  margin: 0;
  padding: 0;
}

.tf-collapse-content .gform-body {
  width: 100%;
}

/*
 * Gravity Forms 2.9 ships the "orbital" theme, whose button rule is
 * .gform-theme.gform-theme--framework.gform_wrapper .button:where(...) - four
 * classes, so a three-class selector here loses. The theme classes are
 * repeated below to outrank it rather than resorting to !important.
 */
.footer-newsletter .gform_wrapper.gform-theme.gform-theme--framework .gform_button,
.footer-newsletter .gform_wrapper.gform-theme.gform-theme--framework .gform_footer input[type="submit"],
.footer-newsletter .gform_wrapper .gform_button {
  height: 40px;
  min-height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 3px;
  background-color: var(--main);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  line-height: 40px;
  cursor: pointer;
  transition: opacity 0.3s ease-in-out;
}

.footer .footer-body .footer-newsletter button[type="submit"] {
  background-color: var(--bg-5) !important;
  border: none !important;
}

.footer .footer-body .footer-newsletter button[type="submit"]:hover {
  background-color: var(--main) !important;
}

.footer-newsletter .gform_wrapper .gform_footer:not(:has(.gform-has-spinner)) {
  /* transform: unset; */
}

.footer-newsletter .gform_wrapper.gform-theme.gform-theme--framework .gform_button:hover,
.footer-newsletter .gform_wrapper .gform_button:hover {
  background-color: var(--main);
  opacity: 0.85;
}

/* Validation and confirmation, kept inside the column rather than GF's full-width red bar. */
.footer-newsletter .gform_wrapper .gform_validation_errors {
  margin: 0 0 12px;
  padding: 8px 12px;
  font-size: 13px;
}

.footer-newsletter .gform_wrapper .validation_message {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
}

.footer-newsletter .gform_confirmation_message {
  font-size: 14px;
}

/*
 * Wordmark fallback, matching the header's, for when no logo image is set.
 */
.footer-logo .logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--main);
}

/* ==========================================================================
 * 06. Footer bottom - copyright and payment icons
 * ========================================================================== */

.tf-payment {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
 * 07. Back to top button
 * ========================================================================== */

#goTop {
  position: fixed;
  padding: 0;
  bottom: 90px;
  right: 40px;
  width: 38px;
  height: 38px;
  background-color: var(--bg-5);
  color: black;
  font-size: 20px;
  text-align: center;
  line-height: 50px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 3px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#goTop .icon-arrow-up:before {
  color: var(--white);
}

#goTop .border-progress {
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  border-radius: 3px;
  border: 1px solid #000000;
  mask-image: conic-gradient(#000000 var(--progress-angle, 0deg), transparent 0);
  -webkit-mask-image: conic-gradient(#000000 var(--progress-angle, 0deg), transparent 0);
  content: "";
  z-index: 1;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

#goTop.show {
  opacity: 1;
  visibility: visible;
}

#goTop .icon {
  font-size: 8px;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

/* ==========================================================================
 * 08. Mobile bottom toolbar
 * ========================================================================== */

.tf-toolbar-bottom {
  display: none;
  padding: 0 5px;
  overflow-x: auto;
  overflow-y: hidden;
  position: fixed;
  z-index: 200;
  bottom: 0;
  right: 0;
  left: 0;
  background-color: var(--white);
  box-shadow: 0 -4px 10px 0 rgba(0, 0, 0, 0.08);
}

.tf-toolbar-bottom .toolbar-item {
  flex: 1 0 20%;
  position: relative;
}

.tf-toolbar-bottom .toolbar-item a {
  width: 100%;
  padding-right: 10px;
  padding-left: 10px;
  height: 67px;
  gap: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.tf-toolbar-bottom .toolbar-item a .toolbar-icon {
  width: 18px;
  height: 18px;
  position: relative;
}

.ibf-sticky-atc-active .footer {
  padding-bottom: 106px;
}

.tf-toolbar-bottom .toolbar-item a .toolbar-icon i {
  font-size: 18px;
  color: var(--main);
}

.tf-toolbar-bottom .toolbar-item a .toolbar-icon .toolbar-count {
  position: absolute;
  top: -6px;
  right: -12px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 500;
  line-height: 18px;
  color: var(--white);
}

.tf-toolbar-bottom .toolbar-item a .toolbar-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 12px;
}

.tf-toolbar-bottom .toolbar-item.active::before {
  position: absolute;
  content: "";
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
}

.tf-toolbar-bottom .toolbar-item.active .toolbar-icon i {
  color: var(--primary);
}

/* ==========================================================================
 * 09. Responsive
 * ========================================================================== */

@media only screen and (max-width: 1470px) {
  .footer .footer-wrap .footer-body::before {
    left: 15px;
    right: 15px;
    transform: unset;
    width: unset;
  }
}

@media only screen and (max-width: 1200px) {

  .footer .footer-logo,
  .footer .footer-heading {
    /* margin-top: 40px; */
    margin-bottom: 22px;
  }
}

@media only screen and (max-width: 1149px) {
  .ibf-sticky-atc-active .footer {
    padding-bottom: 170px;
  }
.tf-payment img {
    height: auto;
    max-width: 100%;
    width: 11%;
}
	  .footer {
    padding-bottom: calc(67px + env(safe-area-inset-bottom, 0px));
  }
  /*
   * 
   * The compare button (inc/compare.php) is fixed to the bottom-left corner,
   * which is exactly where the toolbar appears at this width - lift it clear.
   */
  .ibf-compare-fab {
    bottom: 86px;
  }

  .tf-toolbar-bottom.type-1150 {
    display: flex;
  }
}

@media only screen and (max-width: 1024px) {
  .tf-toolbar-bottom.type-1024 {
    display: flex;
  }
}

@media only screen and (max-width: 991.5px) {
  .ibf-sticky-atc-active .footer {
    padding-bottom: 156px;
  }
}

@media only screen and (max-width: 767px) {
  .footer .footer-wrap .footer-body {
    padding-bottom: 0;
  }

  /* Keeps the last footer row clear of the fixed mobile toolbar. */
  .single-product .footer {
    padding-bottom: 126px;
  }

  .footer .footer-heading-desktop,
  #goTop {
    display: none;
  }

  .footer .footer-col-block .footer-heading-moblie {
    margin-top: 18px;
    margin-bottom: 15px;
    display: block;
    position: relative;
  }

  .footer .footer-col-block .footer-heading-moblie::after {
    position: absolute;
    content: "";
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 1px;
    background-color: var(--main);
    transition: 0.25s ease-in-out;
  }

  .footer .footer-col-block .footer-heading-moblie::before {
    position: absolute;
    content: "";
    right: 15px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 12px;
    background-color: var(--main);
    transition: 0.25s ease-in-out;
  }

  .footer .footer-col-block.open .footer-heading-moblie::before {
    opacity: 0;
  }

  .footer .footer-col-block.open .footer-heading-moblie::after {
    transform: translate(0%, -50%) rotate(180deg);
  }

  .footer .tf-collapse-content {
    display: none;
  }

  .footer .footer-bottom .footer-bottom-wrap {
    flex-wrap: wrap;
  }

  .footer .footer-bottom .footer-bottom-wrap>div {
    width: 100%;
    text-align: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .single-product .tf-toolbar-bottom {
    box-shadow: none;
  }
}
@media only screen and (max-width: 360px) {
    .tf-toolbar-bottom .toolbar-item a{
        padding-right: 4px;
        padding-left: 4px;
    }
}