/* ProductsPeruvian footer accordion
 * Elementor/Atom markup stays editable. Accordion behaviour is mobile-only.
 */

@media (max-width: 767px) {
  /* Elementor containers can keep min-height/flex growth even when their
     children are hidden. Reset only the containers used by this accordion. */
  .productsperuvian-footer-accordion-group {
    --min-height: 0px;
    min-height: 0;
    height: auto;
    justify-content: flex-start;
    align-items: stretch;
    align-content: flex-start;
    flex: 0 0 auto;
  }

  .productsperuvian-footer-section {
    --min-height: 0px;
    --width: 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    flex: 0 0 100%;
    flex-basis: 100%;
    align-self: stretch;
    margin: 0;
    box-sizing: border-box;
  }

  .productsperuvian-footer-trigger {
    --min-height: 0px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 56px;
    height: auto;
    flex: 0 0 auto;
    padding: 14px 42px 14px 0;
    margin: 0;
    cursor: pointer;
    font-family: var(--e-global-typography-text-font-family, inherit);
    font-weight: 600;
    text-transform: none;
    -webkit-tap-highlight-color: transparent;
  }

  .productsperuvian-footer-trigger::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 0;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    font-size: 26px;
    line-height: 1;
    font-weight: 300;
    color: #fff;
    pointer-events: none;
  }

  .productsperuvian-footer-section.is-open > .productsperuvian-footer-trigger::after {
    content: "−";
  }

  /* hidden is deliberately used instead of animated grid rows. Elementor
     flexbox min-heights can otherwise leave an empty gap after collapsing. */
  .productsperuvian-footer-content[hidden] {
    display: none;
  }

  .productsperuvian-footer-content {
    --min-height: 0px;
    width: 100%;
    min-height: 0;
    height: auto;
    flex: 0 0 auto;
    margin: 0;
  }

  .productsperuvian-footer-trigger:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
  }
}
