/**
 * Folies Secretes - Mobile header/footer refinements.
 * Scope: child theme only, preproduction rollout.
 */

@media (max-width: 991.98px) {
  body:not(#checkout):not(#order-confirmation) #st_header #mobile_bar .mobile_logo .logo {
    width: 140px;
    max-width: 140px;
    max-height: 38px;
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 767px) {
  .fs-footer-content.fs-mobile-footer-accordion-ready .fs-footer-col[data-fs-footer-accordion="1"] {
    border-top: 1px solid rgba(253, 252, 250, 0.16);
    padding-top: 0.85rem;
  }

  .fs-footer-content.fs-mobile-footer-accordion-ready .fs-footer-col[data-fs-footer-accordion="1"] h3 {
    margin: 0;
  }

  .fs-footer-accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: 0;
    text-align: left;
    cursor: pointer;
  }

  .fs-footer-accordion-trigger:focus-visible {
    outline: 2px solid rgba(184, 149, 107, 0.85);
    outline-offset: 4px;
  }

  .fs-footer-accordion-icon {
    position: relative;
    flex: 0 0 auto;
    width: 1.35rem;
    height: 1.35rem;
    border: 1px solid rgba(253, 252, 250, 0.24);
    border-radius: 50%;
  }

  .fs-footer-accordion-icon::before,
  .fs-footer-accordion-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.62rem;
    height: 1px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform 0.22s ease;
  }

  .fs-footer-accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .fs-footer-accordion-trigger[aria-expanded="true"] .fs-footer-accordion-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  .fs-footer-accordion-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.22s ease, opacity 0.18s ease;
  }

  .fs-footer-col.fs-footer-accordion-open .fs-footer-accordion-panel {
    max-height: 28rem;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fs-footer-accordion-icon::before,
  .fs-footer-accordion-icon::after,
  .fs-footer-accordion-panel {
    transition: none;
  }
}
