/*------------------------------------------------------------
NAVIGATION
====================================*/

/* Variables Custom */
$menu-account-padding-x: 2rem !default;
$menu-account-padding-y: 2rem !default;
$menu-account-bg: $white !default;
$menu-account-border-width: 0.6rem !default;
$menu-account-border-color: $gray-200 !default;
$menu-account-icon-color: $gray-400 !default;
$menu-account-icon: str-replace(url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 60 60' style='enable-background:new 0 0 60 60;' xml:space='preserve'%3E%3Cpath fill='#{$menu-account-icon-color}' d='M5,43.6l2.8-2.8l1.4,1.4L6.4,45H5V43.6z M5,6.4l2.8,2.8l1.4-1.4L6.4,5H5V6.4L5,6.4z M43.6,45l-2.8-2.8l1.4-1.4l2.8,2.8V45H43.6z M45,6.4l-2.8,2.8l-1.4-1.4L43.6,5H45V6.4z M25,23.6l2.8-2.8l1.4,1.4L26.4,25l2.8,2.8 l-1.4,1.4L25,26.4l-2.8,2.8l-1.4-1.4l2.8-2.8l-2.8-2.8l1.4-1.4L25,23.6L25,23.6z'/%3E%3C/svg%3E%0A"), "#", "%23") !default;
/***************************************/

.account-menu {
  position: relative;
  padding: $menu-account-padding-y $menu-account-padding-x;
  margin-bottom: 5rem;
  background: $menu-account-bg;
  border: $menu-account-border-width solid $menu-account-border-color;
  &:before {
    content: '';
    display: block;
    position: absolute;
    left: -2rem;
    right: -2rem;
    bottom: -4rem;
    z-index: -1;
    height: 100%;
    background: {
      image: $menu-account-icon;
      size: 6rem;
    }
  }

  header {
    margin-bottom: 2.5rem;
    .link-logout {
      display: inline-block;
      position: relative;
      padding-left: 1.2rem;

      svg {
        position: absolute;
        top: 0.3rem;
        left: 0;
        width: 0.8rem;
        height: 0.8rem;
        transition: 0.3s;
      }

      &:hover {
        svg {
          fill: $primary;
          transform: rotate(180deg);
        }
      }
    }
  }
}

/* RESPONSIVE */
/***************************************/
@include media-breakpoint-up(lg) {
  .account-menu {
    &:before {
      left: -3rem;
      right: 2rem;
    }
  }
}
