/**
 * SB Footer Studio - footer builder for PrestaShop 8 / 9
 *
 * @author    Sotiris Betsos
 * @copyright 2024 Sotiris Betsos
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 *
 * Framework independent (works with Classic, Hummingbird and custom themes).
 * Override the variables below from your theme to restyle the footer.
 */
.sbfs-footer {
  --sbfs-gap: 2rem;
  --sbfs-line: rgba(127, 127, 127, .25);
  --sbfs-title-size: 1rem;
  box-sizing: border-box;
  /* the theme usually puts displayFooter inside a flex .row: take the whole line */
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 2rem var(--sbfs-side-padding, 15px) 1rem;
  clear: both;
  color: inherit;
}
.sbfs-footer *, .sbfs-footer *::before, .sbfs-footer *::after { box-sizing: inherit; }

.sbfs-preview-note {
  margin-bottom: 1rem; padding: .5rem 1rem; border-radius: 6px;
  background: #fef3c7; color: #78350f; font-weight: 600; text-align: center;
}

.sbfs-columns { display: grid; gap: var(--sbfs-gap); grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .sbfs-columns--2 { grid-template-columns: repeat(2, 1fr); }
  .sbfs-columns--3 { grid-template-columns: repeat(3, 1fr); }
  .sbfs-columns--4, .sbfs-columns--5, .sbfs-columns--6 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .sbfs-columns--4 { grid-template-columns: repeat(4, 1fr); }
  .sbfs-columns--5 { grid-template-columns: repeat(5, 1fr); }
  .sbfs-columns--6 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .sbfs-columns--6 { grid-template-columns: repeat(6, 1fr); }
}

.sbfs-title { margin: 0 0 .75rem; font-size: var(--sbfs-title-size); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.sbfs-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-transform: inherit; letter-spacing: inherit; cursor: default;
}
.sbfs-chevron { display: none; }
.sbfs-list { margin: 0 0 1rem; padding: 0; list-style: none; }
.sbfs-entry { margin: 0 0 .4rem; }
.sbfs-entry a { color: inherit; text-decoration: none; opacity: .85; }
.sbfs-entry a:hover, .sbfs-entry a:focus { opacity: 1; text-decoration: underline; }
.sbfs-rich img { max-width: 100%; height: auto; }
.sbfs-rich p { margin: 0 0 .5rem; }

.sbfs-free { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--sbfs-line); text-align: center; }
.sbfs-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem;
  margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--sbfs-line);
}
.sbfs-copyright { margin: 0; }
.sbfs-copyright a, .sbfs-more a { color: inherit; }
.sbfs-more p { margin: 0; }
@media (max-width: 767px) {
  .sbfs-bottom { flex-direction: column; text-align: center; }
}

/* mobile accordion (enabled by sbfs_front.js) */
@media (max-width: 767px) {
  .sbfs-js .sbfs-columns { gap: 0; }
  .sbfs-js .sbfs-section { border-bottom: 1px solid var(--sbfs-line); }
  .sbfs-js .sbfs-title { margin: 0; }
  .sbfs-js .sbfs-toggle { padding: .9rem 0; cursor: pointer; }
  .sbfs-js .sbfs-chevron {
    display: inline-block; width: .6rem; height: .6rem; margin-left: .75rem;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); transition: transform .2s;
  }
  .sbfs-js .sbfs-section.is-open .sbfs-chevron { transform: rotate(-135deg); }
  .sbfs-js .sbfs-section .sbfs-list { display: none; margin: 0; padding-bottom: .9rem; }
  .sbfs-js .sbfs-section.is-open .sbfs-list { display: block; }
}
.sbfs-title a { color: inherit; text-decoration: none; }

.sbfs-entry--module > * { max-width: 100%; }
.sbfs-entry--module [class*="col-"] { flex: 0 0 100%; max-width: 100%; width: 100%; }
