@import '../../styles/abstracts/variables';

.profile-social-link-list {
  &__add-btn {
    width: 100%;
    max-width: 366px;
    box-sizing: border-box;
    border-radius: 16px;
    cursor: pointer;
    &.modal {
      max-width: 270px;
    }
    &.active {
      border: none;
      background: rgba(37, 127, 252, 0.05);
    }
  }
}
.profile-social-link-list__dropdown {
  .ant-dropdown-menu {
    padding: 0;
    margin: 9px 0;
    border-radius: 16px;
    background: $white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.18);
    width: 100% !important;

    .ant-dropdown-menu-submenu,
    .ant-dropdown-menu-item {
      padding: 16px 20px;
      border-bottom: 1px solid $gray5;
      font-weight: $semi-bold;
      font-size: $medium1;
      line-height: 24px;
      &:first-child {
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
      }
      &:last-child {
        border-bottom: none;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
      }
      &.active {
        background: rgba(37, 127, 252, 0.05);
      }
      &:hover {
        background: rgba(37, 127, 252, 0.05);
      }
      &.ant-dropdown-menu-submenu-active {
        background: rgba(37, 127, 252, 0.05);
      }
      .ant-dropdown-menu-submenu-expand-icon {
        width: 24px;
        height: 24px;
        display: flex;
        top: 16px;
        right: 20px;
        margin-top: 0;
        align-items: center;
        .ant-dropdown-menu-submenu-arrow-icon {
          width: 24px;
          height: 24px;
          background: url('#{$icons-url}/dark/arrow-right.svg') no-repeat;
          svg {
            display: none;
          }
        }
      }
      .ant-dropdown-menu-submenu-title {
        padding: 0;
        font-weight: $semi-bold;
        font-size: $medium1;
        line-height: 24px;
        background: transparent !important;
      }
    }
  }
  // &.modal {
  //   .ant-dropdown-menu {
  //     width: 100% !important;
  //   }
  // }
}
.profile-social-link-list__sub-menu {
  .ant-dropdown-menu {
    overflow-x: hidden;
    border-radius: 16px;
    padding: 0;
    background: $white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.18);

    .ant-dropdown-menu-item {
      width: 366px;
      padding: 16px 20px;
      border-bottom: 1px solid $gray5;
      font-weight: $semi-bold;
      font-size: $medium1;
      line-height: 24px;
      &.active {
        background: rgba(37, 127, 252, 0.05);
      }
      &.ant-dropdown-menu-submenu-active {
        background: rgba(37, 127, 252, 0.05);
      }
      &:hover {
        background: rgba(37, 127, 252, 0.05);
      }
      &:first-child {
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
      }
      &:last-child {
        border-bottom: none;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
      }
    }
  }
  &.modal {
    .ant-dropdown-menu {
      &::-webkit-scrollbar {
        width: 3px !important;
      }
      .ant-dropdown-menu-item {
        width: 278px;
      }

      max-height: 400px;
      overflow-y: auto;

      @include smallHeight {
        max-height: 230px;
      }
    }
  }
}
