/* Menu Accès rapide */

.acces-rapide {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
}

.acces-rapide__tab {
  display: block;
  background-color: #151515;
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 0.75em;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  padding: 1em 0.5em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  line-height: 1;
}

.acces-rapide__panel {
  display: none;
  width: 280px;
  background-color: #E31E25;
  box-shadow: 2px 2px 20px #f2f2f2;
}

.acces-rapide__header {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
  background-color: #151515;
  color: #ffffff;
  padding: 0.75em 1em;
  text-transform: uppercase;
  font-size: 0.75em;
  font-weight: 700;
}

.acces-rapide__close {
  background: none;
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 1.25em;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.acces-rapide__list {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.acces-rapide__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.acces-rapide__item:last-child {
  border-bottom: none;
}

.acces-rapide__item a {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1em;
  padding: 1em;
  text-decoration: none;
}

.acces-rapide__item a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.acces-rapide__item a::after {
  content: url(/wp-content/themes/alvarez/assets/svg/arrow-left-blanc.svg);
  transform: rotate(180deg);
  margin-left: auto;
  flex-shrink: 0;
}

.acces-rapide__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: 0.75em;
  flex-shrink: 0;
}

.acces-rapide__label {
  flex: 1;
}

.acces-rapide.is-open .acces-rapide__tab {
  display: none;
}

.acces-rapide.is-open .acces-rapide__panel {
  display: block;
}

@media screen and (max-width: 1282px) {
  .acces-rapide {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
  }

  .acces-rapide__tab,
  .acces-rapide__header,
  .acces-rapide__close {
    display: none !important;
  }

  .acces-rapide__panel {
    display: block;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(21, 21, 21, 0.15);
  }

  .acces-rapide__list {
    display: flex;
    flex-flow: row nowrap;
  }

  .acces-rapide__item {
    flex: 1;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }

  .acces-rapide__item:last-child {
    border-right: none;
  }

  .acces-rapide__item a {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0.6em 0.25em;
    font-size: 0.75em;
  }

  .acces-rapide__item a::after {
    display: none;
  }

  .acces-rapide__icon {
    width: 28px;
    height: 28px;
    margin-right: 0;
    margin-bottom: 0.25em;
  }

  body.has-acces-rapide {
    padding-bottom: 72px;
  }

  body.has-acces-rapide .progress-wrap {
    bottom: 80px;
  }
}
