@import '../../assets/styles/colors';
@import '../../assets/styles/rsfonts';

.drawer-container {
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: $black;
    opacity: 0.5;
  }

  .drawer {
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    min-width: 450px;
    background-color: $white;
    z-index: 999;

    &--medium {
      width: 550px !important;
    }

    &--large {
      width: 850px !important;
    }

    .header {
      background-color: $primary;
      padding: 8px 0px 9px 8px;
      position: relative;

      .title {
        @extend .fontPoppinsSemiboldSm;
        color: $white;
      }

      .button-container {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        gap: 12px;

        .button {
          cursor: pointer;
          background-color: $primary;
          outline: none;
          border: none;
          color: $white;
          margin: 0;
          border: 1px solid transparent;
          height: 24px;
          width: 24px;
          display: flex;
          align-items: center;
          justify-content: center;
        }

        .ff-close-button {
          cursor: pointer;
          outline: none;
          color: $white;
          margin: 0;
          padding: 6px;

          &:hover {
            border: 1px solid $white;
            border-radius: 50%;
            margin: 0;
          }
        }
      }
    }

    .ff-drawer-body {
      background-color: $white;
      padding: 8px;
      height: calc(100vh - 76px);
      overflow-y: auto;
      overflow-x: hidden;
    }

    .no-footer {
      height: calc(100vh);
    }

    .drawer-padding {
      padding: 0px;
    }

    .footer {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background-color: $grey_6;
      padding: 5px 16px 5px 0px;

      .button-container {
        display: flex;
        justify-content: flex-end;
        gap: 16px;
      }
    }
  }
}
